student-att-day-legacy.a7befa60.js 8.3 KB

1
  1. !function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t,r,n,i,a,o){try{var s=e[a](o),c=s.value}catch(u){return void r(u)}s.done?t(c):Promise.resolve(c).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,c,"next",e)}function c(e){n(o,i,a,s,c,"throw",e)}s(void 0)}))}}var a=document.createElement("style");a.innerHTML="._NavTitle_1yhfz_1{display:flex;flex-direction:row;align-items:center}._NavTitle_1yhfz_1 ._sanIcons_1yhfz_6{width:.4rem;height:.4rem;margin-left:.10667rem}._isReversal_1yhfz_11{transition:all .1;transform:rotate(180deg)}._itemWrap_1sirf_1{background-color:#fff;padding:.48rem 0 0 .34667rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_1sirf_1:nth-last-child(1) ._itemRight_1sirf_9{border-bottom:none!important}._itemWrap_1sirf_1 ._itemLeft_1sirf_12{display:flex;flex-direction:row;align-items:center;padding-bottom:.48rem}._itemWrap_1sirf_1 ._itemLeft_1sirf_12 ._headerWrap_1sirf_18{width:1.28rem;height:1.28rem;border-radius:50%;margin-right:.26667rem;overflow:hidden}._itemWrap_1sirf_1 ._itemLeft_1sirf_12 ._headerWrap_1sirf_18 img{width:100%;height:100%}._itemWrap_1sirf_1 ._itemRight_1sirf_9{height:1.28rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:.02667rem solid #f2f2f2;padding-bottom:.48rem;padding-right:.34667rem;width:8.05333rem}._itemWrap_1sirf_1 ._itemRight_1sirf_9 ._infoWrap_1sirf_40 p{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._itemWrap_1sirf_1 ._itemRight_1sirf_9 ._infoWrap_1sirf_40 ._statusTag_1sirf_46{width:1.28rem;height:.53333rem;border-radius:.10667rem;font-size:.37333rem;font-weight:500;line-height:.53333rem;color:#fff;text-align:center}._itemWrap_1sirf_1 ._itemRight_1sirf_9 ._infoWrap_1sirf_40 ._LATE_1sirf_56{background-color:#8f80ff}._itemWrap_1sirf_1 ._itemRight_1sirf_9 ._infoWrap_1sirf_40 ._LEAVE_1sirf_59{background-color:#64a9ff}._itemWrap_1sirf_1 ._itemRight_1sirf_9 ._infoWrap_1sirf_40 ._TRUANCY_1sirf_62{background-color:#ff5c5f}._itemWrap_1sirf_1 ._itemRight_1sirf_9 ._msgIcon_1sirf_65{width:.64rem;height:.64rem}\n",document.head.appendChild(a),System.register(["./index-legacy.2ae28dc5.js","./index-legacy.c52b7cbb.js","./index-legacy.fb25da3a.js","./default-icon-legacy.ee8113d0.js","./msg-icon-legacy.53a0c92f.js","./index-legacy.ca3a829d.js","./index-legacy.9fb17640.js","./index-legacy.261ae52e.js","./index-legacy.51e5b886.js","./index-legacy.97665c37.js","./index-legacy.1fccc4ce.js","./use-tab-status-legacy.17f6d490.js","./index-legacy.13f9f10f.js","./index-legacy.f900000d.js"],(function(e){"use strict";var r,n,a,o,s,c,u,f,l,_,m,d,p,g,h,v,y,b,w,A,x,j,W;return{setters:[function(e){r=e.d,n=e.aQ,a=e.k,o=e.F,s=e.p,c=e.j,u=e.b8,f=e.R,l=e.S,_=e.ac,m=e.X,d=e.be,p=e.P,g=e.ad,h=e.g},function(e){v=e.O},function(e){y=e.O},function(e){b=e.d,w=e.P,A=e.D},function(e){x=e.m},function(e){j=e.b},function(e){W=e.L},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var O="_NavTitle_1yhfz_1",T="_sanIcons_1yhfz_6",P="_isReversal_1yhfz_11",N={itemWrap:"_itemWrap_1sirf_1",itemRight:"_itemRight_1sirf_9",itemLeft:"_itemLeft_1sirf_12",headerWrap:"_headerWrap_1sirf_18",infoWrap:"_infoWrap_1sirf_40",statusTag:"_statusTag_1sirf_46",LATE:"_LATE_1sirf_56",LEAVE:"_LEAVE_1sirf_59",TRUANCY:"_TRUANCY_1sirf_62",msgIcon:"_msgIcon_1sirf_65"},k=r({props:["item"],name:"student-cell",setup:function(e){n();var t=function(){var t=i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s({api:"joinChatGroup",content:{type:"single",id:e.item.studentImId}});case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),c("发起聊天失败");case 8:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}();return function(){return a(o,null,[a("div",{class:N.itemWrap,onClick:t},[a("div",{class:N.itemLeft},[a("div",{class:N.headerWrap},[a("img",{src:e.item.studentAvatar?e.item.studentAvatar:b,alt:""},null)])]),a("div",{class:N.itemRight},[a("div",{class:N.infoWrap},[a("p",null,[e.item.nickName]),a("div",{class:[N[e.item.status],N.statusTag]},[j[e.item.status]])]),a("img",{class:N.msgIcon,src:x,alt:""},null)])])])}}});e("default",r({name:"student-att-day",setup:function(){n();var e=u().query.time,r=f({showPopoverTime:!1,currentDate:e?e.split("-"):[2022,12,19],currentDateName:""}),s=f({nickName:"",time:e,timeName:e.split("-")[0]+"年"+e.split("-")[1]+"月"+e.split("-")[2]+"日",page:1,rows:20,timeType:"DAY"}),b=l(["year","month","day"]);l(new Date(_().subtract(5,"year").format("YYYY-MM-DD"))),l(new Date(_().add(5,"year").format("YYYY-MM-DD")));var x=l(!1),j=l(!1),N=l(!1),R=l(!1),L=l([]),E=function(){var e=i(regeneratorRuntime.mark((function e(){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("getList"),j.value=!0,e.prev=2,x.value&&(s.page=1,L.value=[],x.value=!1),e.next=6,h.post("/api-school/courseScheduleStudentAttendance/page",{data:t({},s)});case 6:if(r=e.sent,!(L.value.length>0&&1===r.data.pages)){e.next=9;break}return e.abrupt("return");case 9:s.page=r.data.current+1,L.value=L.value.concat(r.data.rows||[]),R.value=L.value.length>0,j.value=!1,N.value=r.data.current>=r.data.pages,e.next=22;break;case 16:e.prev=16,e.t0=e.catch(2),n=e.t0.message,c(n),R.value=!1,N.value=!0;case 22:case"end":return e.stop()}}),e,null,[[2,16]])})));return function(){return e.apply(this,arguments)}}(),C=function(e){console.log(e,"val"),s.time=e.selectedValues[0]+e.selectedValues[1]+e.selectedValues[2],s.timeName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月"+e.selectedValues[2]+"日",r.showPopoverTime=!1,E()};m((function(){E()}));var V=function(){N.value=!1,j.value=!0,E()};return function(){var e;return a(o,null,[a(v,{isBack:!0},{title:function(){return a("div",{class:O,onClick:function(){return r.showPopoverTime=!0}},[s.timeName," ",a("img",{class:[T,r.showPopoverTime?P:""],src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAdZJREFUSEvtlc9vTFEUxz/fmqILmlTEr6WlSBdCYoUEO6EL8zSxsBKEWImUxLtPQsVOSCVdWRB9symxQ0IsLFg14k9AJtINkqrWHOmbTjKPmb77xosuzFned+73c8/3nneuWKbQMnHpgv+Z812r/0OrLSoPY7oFrC+o/CrSeYUTcbNeqrns5I5eNm+dBq0pCFqXEV+x6oDcy/mGbhrs9pZgwzSwtlAwfONj/4DGx+daghcWLQouYNwsFGx2UVElpfnHf2yGiIKnwP6C4M8J44MS1vaOGx/s2vFNzM9NYX/ZYOIzpd5BXb7/6fci2k4ui8qHMD1OWqOzMGSHFVaetNq+pKi54DZwtjMud+Tic+32ZoBPrIaZN8D2nPB30LdL7t73jsBJl18d3kat9hbo84TP0NOzU1cevl8q3+v+LApOY4x5gcUZhfHdrFwvcFK5CyaBIxmCj+TioSxofZh5ho0MrWPVyilgS5stH5j9MajRyYXJlxne4PpUK+8DPcNYkVIWP8EOKKy8yCQuJuQC1y0/dh1sJA3QqNzEJV9oLqsbopY8JBtfge1eXHsN1T3NL4/PAXJXnFR942g/szpFTUKlMbkHX3xgzTkdgfNCWuV3wUW46KXxCzkPeh9+zUjuAAAAAElFTkSuQmCC",alt:""},null)])}}),a(y,{placeholder:"请输入学生姓名",inputBackground:"white",background:"#f6f6f6",onSearch:function(e){s.nickName=e,E()},modelValue:s.nickName},null),R.value?a(w,{modelValue:x.value,"onUpdate:modelValue":function(e){return x.value=e},onRefresh:V},{default:function(){return[a(W,{loading:j.value,"onUpdate:loading":function(e){return j.value=e},finished:N.value,"finished-text":"没有更多了",onLoad:E},(t=e=L.value.map((function(e){return a(k,{item:e},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!g(t)?e:{default:function(){return[e]}}))];var t}}):a(d,null,null),a(p,{show:r.showPopoverTime,"onUpdate:show":function(e){return r.showPopoverTime=e},position:"bottom",style:"{ height: '30%' }"},{default:function(){return[a(A,{onCancel:function(){r.showPopoverTime=!1},onConfirm:C,modelValue:r.currentDate,"onUpdate:modelValue":function(e){return r.currentDate=e},title:"选择日期",columnsType:b.value},null)]}})])}}}))}}}))}();