student-att-day-legacy.b0601354.js 8.7 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.a9944503.js","./index-legacy.81fd4e6f.js","./index-legacy.c7f919fb.js","./index-legacy.0e551442.js","./student-icon-legacy.91b6689d.js","./msg-icon-legacy.53a0c92f.js","./index-legacy.5ee1edf1.js","./index-legacy.00d82922.js","./index-legacy.8271e59c.js","./index-legacy.55bd130c.js","./index-legacy.819d05e3.js","./index-legacy.0256f666.js","./index-legacy.16d013c6.js","./use-tab-status-legacy.7b80393c.js","./utils-legacy.0c949fd0.js","./index-legacy.40afcdaf.js","./index-legacy.e997fd26.js","./index-legacy.8bfb99fc.js","./index-legacy.2a9471c6.js"],(function(e){"use strict";var r,n,a,o,s,c,u,f,l,m,_,d,p,g,h,v,y,b,x,w,A,j,W,O;return{setters:[function(e){r=e.d,n=e.ag,a=e.c,o=e.F,s=e.k,c=e.o,u=e.aU,f=e.r,l=e.R,m=e.ah,_=e.$,d=e.ai,p=e.P,g=e.aj,h=e.m},function(e){v=e.O},function(e){y=e.O},function(e){b=e.O},function(e){x=e.s},function(e){w=e.m},function(e){A=e.e},function(e){j=e.O},function(e){W=e.L},function(e){O=e.D},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var T="_NavTitle_1yhfz_1",P="_sanIcons_1yhfz_6",N="_isReversal_1yhfz_11",R={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:R.itemWrap,onClick:t},[a("div",{class:R.itemLeft},[a("div",{class:R.headerWrap},[a("img",{src:e.item.studentAvatar?e.item.studentAvatar:x,alt:""},null)])]),a("div",{class:R.itemRight},[a("div",{class:R.infoWrap},[a("p",null,[e.item.nickName]),a("div",{class:[R[e.item.status],R.statusTag]},[A[e.item.status]])]),a("img",{class:R.msgIcon,src:w,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"}),x=l(["year","month","day"]);l(new Date(m().subtract(10,"year").format("YYYY-MM-DD"))),l(new Date(m().add(10,"year").format("YYYY-MM-DD")));var w=l(!1),A=l(!1),R=l(!1),E=l(!1),L=l([]),C=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 A.value=!0,e.prev=1,w.value&&(s.page=1,L.value=[],w.value=!1),e.next=5,h.post("/api-school/courseScheduleStudentAttendance/page",{data:t({},s)});case 5:if(r=e.sent,!(L.value.length>0&&1===r.data.pages)){e.next=8;break}return e.abrupt("return");case 8:s.page=r.data.current+1,L.value=L.value.concat(r.data.rows||[]),E.value=L.value.length>0,A.value=!1,R.value=r.data.current>=r.data.pages,e.next=21;break;case 15:e.prev=15,e.t0=e.catch(1),n=e.t0.message,c(n),E.value=!1,R.value=!0;case 21:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(){return e.apply(this,arguments)}}(),V=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,w.value=!0,C()};_((function(){C()}));var Y=function(){R.value=!1,A.value=!0,C()};return function(){var e;return a(o,null,[a(j,{position:"top",onGetHeight:function(e){document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[a(v,{border:!1},{title:function(){return a("div",{class:T,onClick:function(){return r.showPopoverTime=!0}},[s.timeName," ",a("img",{class:[P,r.showPopoverTime?N:""],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:"请输入学生姓名",onSearch:function(e){s.nickName=e,w.value=!0,C()},modelValue:s.nickName},null)]}}),E.value?a(b,{modelValue:w.value,"onUpdate:modelValue":function(e){return w.value=e},onRefresh:Y,style:"min-height: calc(100vh - var(--header-height));"},{default:function(){return[a(W,{"loading-text":" ",finished:R.value,"finished-text":"没有更多了",style:{paddingTop:"12px"},onLoad:C},(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",round:!0,class:"popupBottomSearch"},{default:function(){return[a(O,{onCancel:function(){r.showPopoverTime=!1},onConfirm:V,modelValue:r.currentDate,"onUpdate:modelValue":function(e){return r.currentDate=e},title:"选择日期",columnsType:x.value},null)]}})])}}}))}}}))}();