student-att-day-legacy.c1209670.js 8.5 KB

1
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function t(t){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,a,r,i,o){try{var u=e[i](o),c=u.value}catch(l){return void n(l)}u.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function u(e){a(o,r,i,u,c,"next",e)}function c(e){a(o,r,i,u,c,"throw",e)}u(void 0)}))}}var i=document.createElement("style");i.innerHTML="._itemWrap_1uba2_1{background-color:#fff;padding:.48rem 0 0 .34667rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_1uba2_1:nth-last-child(1) ._itemRight_1uba2_9{border-bottom:none!important}._itemWrap_1uba2_1 ._itemLeft_1uba2_12{display:flex;flex-direction:row;align-items:center;padding-bottom:.48rem}._itemWrap_1uba2_1 ._itemLeft_1uba2_12 ._headerWrap_1uba2_18{width:1.28rem;height:1.28rem;border-radius:50%;margin-right:.26667rem;overflow:hidden}._itemWrap_1uba2_1 ._itemLeft_1uba2_12 ._headerWrap_1uba2_18 img{width:100%;height:100%}._itemWrap_1uba2_1 ._itemRight_1uba2_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_1uba2_1 ._itemRight_1uba2_9 ._infoWrap_1uba2_40 p{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._itemWrap_1uba2_1 ._itemRight_1uba2_9 ._infoWrap_1uba2_40 ._statusTag_1uba2_46{width:1.06667rem;height:.53333rem;border-radius:.10667rem;font-size:.32rem;font-weight:500;line-height:.53333rem;color:#f67146;margin-top:.08rem;background-color:#ffe8e0;text-align:center}._itemWrap_1uba2_1 ._itemRight_1uba2_9 ._infoWrap_1uba2_40 ._LATE_1uba2_58{background-color:#eeeafe;color:#7d41ea}._itemWrap_1uba2_1 ._itemRight_1uba2_9 ._infoWrap_1uba2_40 ._LEAVE_1uba2_62{background-color:#e2efff;color:#529efe}._itemWrap_1uba2_1 ._itemRight_1uba2_9 ._infoWrap_1uba2_40 ._TRUANCY_1uba2_66{background-color:#ffe2e2;color:#ff5c5f}._itemWrap_1uba2_1 ._itemRight_1uba2_9 ._msgIcon_1uba2_70{width:.64rem;height:.64rem}\n",document.head.appendChild(i),System.register(["./index-legacy.48c8d62c.js","./index-legacy.f3037807.js","./index-legacy.87ef53c1.js","./index-legacy.b00f6427.js","./index.module-legacy.b4ba9f58.js","./student-icon-legacy.91b6689d.js","./msg-icon-legacy.53a0c92f.js","./index-legacy.8895675d.js","./index-legacy.8cf5f94f.js","./index-legacy.04f465c8.js","./index-legacy.a53f47a7.js","./index-legacy.ac553194.js","./index-legacy.55fe5b03.js","./index-legacy.087e0425.js","./use-tab-status-legacy.6949b1de.js","./utils-legacy.60f652b8.js","./index-legacy.384d768f.js","./index-legacy.ef66d7bb.js","./index-legacy.71047e87.js","./index-legacy.a2ac81dd.js"],(function(e){"use strict";var n,a,i,o,u,c,l,s,f,m,d,p,_,g,b,h,v,y,A,w,x,j,O,W,R,E;return{setters:[function(e){n=e.d,a=e.ag,i=e.c,o=e.F,u=e.k,c=e.o,l=e.aV,s=e.r,f=e.R,m=e.ah,d=e.$,p=e.ai,_=e.P,g=e.aj,b=e.ak,h=e.m},function(e){v=e.O},function(e){y=e.O},function(e){A=e.O},function(e){w=e.s},function(e){x=e.s},function(e){j=e.m},function(e){O=e.e},function(e){W=e.O},function(e){R=e.L},function(e){E=e.D},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var T={itemWrap:"_itemWrap_1uba2_1",itemRight:"_itemRight_1uba2_9",itemLeft:"_itemLeft_1uba2_12",headerWrap:"_headerWrap_1uba2_18",infoWrap:"_infoWrap_1uba2_40",statusTag:"_statusTag_1uba2_46",LATE:"_LATE_1uba2_58",LEAVE:"_LEAVE_1uba2_62",TRUANCY:"_TRUANCY_1uba2_66",msgIcon:"_msgIcon_1uba2_70"},D=n({props:["item"],name:"student-cell",setup:function(e){a();var t=function(){var t=r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u({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 i(o,null,[i("div",{class:T.itemWrap,onClick:t},[i("div",{class:T.itemLeft},[i("div",{class:T.headerWrap},[i("img",{src:e.item.studentAvatar?e.item.studentAvatar:x,alt:""},null)])]),i("div",{class:T.itemRight},[i("div",{class:T.infoWrap},[i("p",null,[e.item.nickName]),i("div",{class:[T[e.item.status],T.statusTag]},[O[e.item.status]])]),i("img",{class:T.msgIcon,src:j,alt:""},null)])])])}}});e("default",n({name:"student-att-day",setup:function(){a();var e=l().query.time;console.log(e);var n=s({showPopoverTime:!1,currentDate:e?e.split("-"):[2022,12,19],currentDateName:""}),u=s({nickName:"",time:e,timeName:e.split("-")[0]+"年"+e.split("-")[1]+"月"+e.split("-")[2]+"日",page:1,rows:20,timeType:"DAY"}),x=f(["year","month","day"]);f(new Date(m().subtract(10,"year").format("YYYY-MM-DD"))),f(new Date(m().add(10,"year").format("YYYY-MM-DD")));var j=f(!1),O=f(!1),T=f(!1),k=f(!1),P=f([]),L=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O.value=!0,e.prev=1,j.value&&(u.page=1,P.value=[],j.value=!1),e.next=5,h.post("/api-school/courseScheduleStudentAttendance/page",{data:t({},u)});case 5:if(n=e.sent,!(P.value.length>0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:u.page=n.data.current+1,P.value=P.value.concat(n.data.rows||[]),k.value=P.value.length>0,O.value=!1,T.value=n.data.current>=n.data.pages,e.next=21;break;case 15:e.prev=15,e.t0=e.catch(1),a=e.t0.message,c(a),k.value=!1,T.value=!0;case 21:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(){return e.apply(this,arguments)}}(),N=function(e){console.log(e,"val"),u.time=e.selectedValues[0]+"-"+e.selectedValues[1]+"-"+e.selectedValues[2],u.timeName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月"+e.selectedValues[2]+"日",n.showPopoverTime=!1,j.value=!0,L()};d((function(){L()}));var V=function(){T.value=!1,O.value=!0,L()};return function(){var e;return i(o,null,[i(W,{position:"top",onGetHeight:function(e){document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[i(v,{border:!1},{title:function(){return i("div",{class:w.NavTitle,onClick:function(){return n.showPopoverTime=!0}},[u.timeName," ",i("img",{class:[w.sanIcons,n.showPopoverTime?w.isReversal:""],src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAadJREFUSEvtlb1OAkEUhc9lVhNCg9jYGTtjrYnRQhJNjC27OxTEKBWNzyDgC1hTIbHaAUJpLIw0GhOtjZ2xsxFstnFZxmyCiaAs+4NayLQz53x3Tu7cIfzRoj/iYgL+teQnUf/DqBuNRrzT6dQAbEgplZARdAA0LcvimUym/dnrS3MZhlEgonxIYJ+ciAq6rhddwUKIQwB9h8IWIaUsptPpgiu4UqnMRqPRWwALYYE9/aOiKCupVOrFFexs1mq1Rdu2r4loJgxcStlmjK1pmvYw6DN0gFSr1aSU8hzAdED4GxFt67re/E7vOrmEELsAKoDvz0QC2OOcnw4reuTIDNhsec75kVtSI8GOWAhRBrDvMfITznl21FlP4FKpNJVIJM6klJuutyC6aLVaO7lczhoL2DEpl8vxWCx2BWBpiOm9aZrr2Wz2dRTU2fd04w+jer0+b9v2DYC5AfNnxtiqqqpPXqC+wb03vtztdp0nEutBzEgkktQ07c4rNBDYERmGsUVExwAijLEDVVUv/UADg/1CfA+QcQACD5Cfgvvq6nEWMQGPM01Xr3f3ZHQffB+powAAAABJRU5ErkJggg==",alt:""},null)])}}),i(y,{placeholder:"请输入学生姓名",onSearch:function(e){u.nickName=e,j.value=!0,L()},modelValue:u.nickName},null)]}}),k.value?i(A,{modelValue:j.value,"onUpdate:modelValue":function(e){return j.value=e},onRefresh:V,style:"min-height: calc(100vh - var(--header-height));"},{default:function(){return[i(R,{"loading-text":" ",finished:T.value,"finished-text":"没有更多了",style:{paddingTop:"12px"},onLoad:L},(t=e=P.value.map((function(e){return i(D,{item:e},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!b(t)?e:{default:function(){return[e]}}))];var t}}):i(p,null,null),i(_,{show:n.showPopoverTime,"onUpdate:show":function(e){return n.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[i(E,{onCancel:function(){n.showPopoverTime=!1},onConfirm:N,modelValue:n.currentDate,"onUpdate:modelValue":function(e){return n.currentDate=e},formatter:g,columnsType:x.value},null)]}})])}}}))}}}))}();