student-att-day-legacy.197664b7.js 8.5 KB

1
  1. !function(){function e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){a(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 a(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t,a,n,r,i,o){try{var u=e[i](o),c=u.value}catch(l){return void a(l)}u.done?t(c):Promise.resolve(c).then(n,r)}function r(e){return function(){var t=this,a=arguments;return new Promise((function(r,i){var o=e.apply(t,a);function u(e){n(o,r,i,u,c,"next",e)}function c(e){n(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.90c82f08.js","./index-legacy.e11fad33.js","./index-legacy.02f13b7a.js","./index.module-legacy.dbcf0bf0.js","./student-icon-legacy.91b6689d.js","./msg-icon-legacy.53a0c92f.js","./index-legacy.4e015ad0.js","./index-legacy.84457c4c.js","./index-legacy.789a0824.js","./index-legacy.537e6dca.js","./index-legacy.3c5580aa.js","./index-legacy.f3e5e283.js","./use-tab-status-legacy.bafe466c.js","./utils-legacy.8e06f916.js","./Picker-legacy.aeff9f1a.js","./index-legacy.fe10c814.js","./index-legacy.64e3b474.js","./index-legacy.f9492e3a.js","./index-legacy.c8871c95.js"],(function(e){"use strict";var a,n,i,o,u,c,l,s,f,m,d,p,_,g,h,b,v,y,A,w,x,j,W,O,R,E,T;return{setters:[function(e){a=e.d,n=e.ag,i=e.c,o=e.F,u=e.e,c=e.o,l=e.ah,s=e.r,f=e.R,m=e.ai,d=e.$,p=e.aj,_=e.ak,g=e.P,h=e.a_,b=e.al,v=e.m,y=e.g},function(e){A=e.O},function(e){w=e.O},function(e){x=e.s},function(e){j=e.s},function(e){W=e.m},function(e){O=e.a},function(e){R=e.O},function(e){E=e.L},function(e){T=e.D},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var D={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"},P=a({props:["item"],name:"student-cell",setup:function(e){n();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:D.itemWrap,onClick:t},[i("div",{class:D.itemLeft},[i("div",{class:D.headerWrap},[i("img",{src:e.item.studentAvatar?e.item.studentAvatar:j,alt:""},null)])]),i("div",{class:D.itemRight},[i("div",{class:D.infoWrap},[i("p",null,[e.item.nickName]),i("div",{class:[D[e.item.status],D.statusTag]},[O[e.item.status]])]),i("img",{class:D.msgIcon,src:W,alt:""},null)])])])}}});e("default",a({name:"student-att-day",setup:function(){n();var e=l().query.time;console.log(e);var a=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"}),j=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 W=f(!1),O=f(!1),D=f(!1),k=f(!1),L=f([]),N=function(){var e=r(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O.value=!0,e.prev=1,W.value&&(u.page=1,L.value=[],W.value=!1),e.next=5,v.post("".concat(y.platformApi,"/courseScheduleStudentAttendance/page"),{data:t({},u)});case 5:if(a=e.sent,!(L.value.length>0&&1===a.data.pages)){e.next=8;break}return e.abrupt("return");case 8:u.page=a.data.current+1,L.value=L.value.concat(a.data.rows||[]),k.value=L.value.length>0,O.value=!1,D.value=a.data.current>=a.data.pages,e.next=21;break;case 15:e.prev=15,e.t0=e.catch(1),n=e.t0.message,c(n),k.value=!1,D.value=!0;case 21:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(){return e.apply(this,arguments)}}(),C=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]+"日",a.showPopoverTime=!1,W.value=!0,N()};d((function(){N()}));var V=function(){D.value=!1,O.value=!0,N()};return function(){var e;return i(o,null,[i(R,{position:"top",onGetHeight:function(e){document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[i(p,{border:!1},{title:function(){return i("div",{class:x.NavTitle,onClick:function(){return a.showPopoverTime=!0}},[u.timeName," ",i("img",{class:[x.sanIcons,a.showPopoverTime?x.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(A,{placeholder:"请输入学员姓名",onSearch:function(e){u.nickName=e,W.value=!0,N()},modelValue:u.nickName},null)]}}),k.value?i(w,{modelValue:W.value,"onUpdate:modelValue":function(e){return W.value=e},onRefresh:V,style:"min-height: calc(100vh - var(--header-height));"},{default:function(){return[i(E,{"loading-text":" ",finished:D.value,"finished-text":"没有更多了",style:{paddingTop:"12px"},onLoad:N},(t=e=L.value.map((function(e){return i(P,{item:e},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!b(t)?e:{default:function(){return[e]}}))];var t}}):i(_,null,null),i(g,{show:a.showPopoverTime,"onUpdate:show":function(e){return a.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[i(T,{onCancel:function(){a.showPopoverTime=!1},onConfirm:C,modelValue:a.currentDate,"onUpdate:modelValue":function(e){return a.currentDate=e},formatter:h,columnsType:j.value},null)]}})])}}}))}}}))}();