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 o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,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,o,a,i){try{var c=e[a](i),s=c.value}catch(_){return void r(_)}c.done?t(s):Promise.resolve(s).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function c(e){n(i,o,a,c,s,"next",e)}function s(e){n(i,o,a,c,s,"throw",e)}c(void 0)}))}}var a=document.createElement("style");a.innerHTML="._chioseWrap_1n0dz_1{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;background-color:#f8f8f8;color:#333;font-weight:500;font-size:.37333rem;line-height:1.01333rem}._chioseWrap_1n0dz_1 ._orchestraBand_1n0dz_12{display:flex;flex-direction:row;align-items:center}._chioseWrap_1n0dz_1 ._orchestraBand_1n0dz_12 p{max-width:3.2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._chioseWrap_1n0dz_1>div{padding:0 .34667rem}._searchInput_1n0dz_26 .van-search{padding-bottom:0}._itemWrap_1d6rq_1{padding:.32rem .4rem .4rem;border-radius:.26667rem;background-color:#fff;margin:0 .34667rem .32rem}._itemWrap_1d6rq_1 ._itemWrapTop_1d6rq_7{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-bottom:.32rem;border-bottom:.02667rem solid #f2f2f2}._itemWrap_1d6rq_1 ._itemWrapTop_1d6rq_7 ._itemWrapTopLeft_1d6rq_15{display:flex;flex-direction:row;align-items:center}._itemWrap_1d6rq_1 ._itemWrapTop_1d6rq_7 ._itemWrapTopLeft_1d6rq_15 ._clockWrap_1d6rq_20{width:.48rem;height:.48rem;margin-right:.16rem}._itemWrap_1d6rq_1 ._itemWrapTop_1d6rq_7 ._itemWrapTopLeft_1d6rq_15 ._clockWrap_1d6rq_20 img{width:100%;height:100%}._itemWrap_1d6rq_1 ._itemWrapTop_1d6rq_7 ._itemWrapTopLeft_1d6rq_15 ._leftTimer_1d6rq_29{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._itemWrap_1d6rq_1 ._itemWrapTop_1d6rq_7 ._itemWrapTopRight_1d6rq_35{font-size:.32rem;color:#777}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39{padding-top:.4rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._courseInfo_1d6rq_42{display:flex;flex-direction:row;align-items:center;padding-bottom:.4rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._courseInfo_1d6rq_42 ._headImgs_1d6rq_48{width:1.12rem;height:1.12rem;border-radius:50%;overflow:hidden;margin-right:.32rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._courseInfo_1d6rq_42 ._infoMsg_1d6rq_55 ._infoMsgMain_1d6rq_55{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._courseInfo_1d6rq_42 ._infoMsg_1d6rq_55 ._infoMsgSub_1d6rq_61{width:6.93333rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.34667rem;padding-top:.05333rem;font-weight:400;color:#777;line-height:.45333rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._attInfo_1d6rq_72{display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._attInfo_1d6rq_72 ._attInfoDot_1d6rq_78{text-align:left;padding:.32rem;width:100%}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._attInfo_1d6rq_72 ._attInfoDot_1d6rq_78 ._attInfoDotTitle_1d6rq_83{width:100%;display:flex;flex-direction:row;justify-content:space-between;margin-bottom:.18667rem;align-items:center;font-size:.37333rem;color:#333}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._attInfo_1d6rq_72 ._attInfoDot_1d6rq_78 ._attInfoDotTitle_1d6rq_83 img{width:.48rem;height:.48rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._attInfo_1d6rq_72 ._attInfoDot_1d6rq_78 ._signTime_1d6rq_97{height:.82667rem;line-height:.82667rem;font-size:.45333rem;font-weight:600;color:#333;line-height:.74667rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._passWrap_1d6rq_105,._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._goWrap_1d6rq_106{flex:1;display:flex;flex-direction:row;align-items:center;border-radius:.26667rem;justify-content:space-between;text-align:center}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._passWrap_1d6rq_105:first-child,._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._goWrap_1d6rq_106:first-child{margin-right:.13333rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._passWrap_1d6rq_105:last-child,._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._goWrap_1d6rq_106:last-child{margin-left:.13333rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._passWrap_1d6rq_105 ._itemBottomMain_1d6rq_123,._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._goWrap_1d6rq_106 ._itemBottomMain_1d6rq_123{font-size:.8rem;font-weight:700;color:#333;line-height:.93333rem;margin-bottom:.05333rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._passWrap_1d6rq_105 ._itemBottomSub_1d6rq_131,._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._goWrap_1d6rq_106 ._itemBottomSub_1d6rq_131{font-size:.37333rem;font-weight:400;color:#333;line-height:.53333rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._passWrap_1d6rq_105,._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._goWrap_1d6rq_106{background-color:#f2f2f2}\n",document.head.appendChild(a),System.register(["./index-legacy.90c82f08.js","./index-legacy.84457c4c.js","./attend-student-legacy.8d9ebf32.js","./index-legacy.e11fad33.js","./index-legacy.4e015ad0.js","./clock-icon-legacy.2424f549.js","./success-icon-legacy.569ddbea.js","./default-icon-legacy.59172ab1.js","./index-legacy.02f13b7a.js","./index-legacy.789a0824.js","./index-legacy.537e6dca.js","./index-legacy.c8871c95.js","./index.module-legacy.dbcf0bf0.js","./index-legacy.fe10c814.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.64e3b474.js","./index-legacy.f9492e3a.js"],(function(e){"use strict";var r,n,a,i,c,s,_,l,u,d,m,p,f,h,g,v,q,w,W,y,b,x,j,O,T,I,P,B,D,k,S,M,N;return{setters:[function(e){r=e.d,n=e.ag,a=e.c,i=e.ai,c=e.a5,s=e.q,_=e.F,l=e.r,u=e.R,d=e.Z,m=e.$,p=e.ak,f=e.P,h=e.a_,g=e.al,v=e.m,q=e.o,w=e.aj},function(e){W=e.O},function(e){y=e.A},function(e){b=e.O},function(e){x=e.c},function(e){j=e.c},function(e){O=e.s,T=e.e},function(e){I=e.d},function(e){P=e.O},function(e){B=e.L},function(e){D=e.D},function(e){k=e.P},function(e){S=e.s},function(e){M=e.T,N=e.a},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var L="_searchInput_1n0dz_26",z="_itemWrap_1d6rq_1",Y="_itemWrapTop_1d6rq_7",C="_itemWrapTopLeft_1d6rq_15",R="_clockWrap_1d6rq_20",V="_leftTimer_1d6rq_29",H="_itemWrapTopRight_1d6rq_35",A="_itemWrapBottom_1d6rq_39",F="_courseInfo_1d6rq_42",U="_headImgs_1d6rq_48",E="_infoMsg_1d6rq_55",G="_infoMsgMain_1d6rq_55",Z="_infoMsgSub_1d6rq_61",$="_attInfo_1d6rq_72",J="_attInfoDot_1d6rq_78",K="_attInfoDotTitle_1d6rq_83",Q="_signTime_1d6rq_97",X="_passWrap_1d6rq_105",ee="_goWrap_1d6rq_106",te=r({props:["item"],name:"teacherAtt-item",setup:function(e){var t=n(),r=function(){t.push({path:"/teacher-attendDetail",query:{courseScheduleId:e.item.courseScheduleId}})};return function(){return a(_,null,[a("div",{class:z,onClick:r},[a("div",{class:Y},[a("div",{class:C},[a("div",{class:R},[a("img",{src:j,alt:""},null)]),a("p",{class:V},[i(e.item.startTime).format("YYYY-MM-DD HH:mm"),"~",i(e.item.endTime).format("HH:mm")])]),a("div",{class:H},[a(c,{name:"arrow"},null)])]),a("div",{class:A},[a("div",{class:F},[a("img",{class:U,src:I,alt:""},null),a("div",{class:E},[a("p",{class:G},[e.item.classGroupName,s("-"),e.item.teacherName]),a("p",{class:Z},[e.item.orchestraName])])]),a("div",{class:$},[a("div",{class:"NORMAL"===e.item.signInStatus?X:ee},[a("div",{class:J},[a("div",{class:K},[a("span",null,[s("签到状态")]),a("img",{src:"NORMAL"===e.item.signInStatus?O:T,alt:""},null)]),a("p",{class:Q},["NORMAL"===e.item.signInStatus?"正常":a("span",{style:{color:"#F44541"}},[s("异常")])])])]),a("div",{class:"NORMAL"===e.item.signOutStatus?X:ee},[a("div",{class:J},[a("div",{class:K},[a("span",null,[s("签退状态")]),a("img",{src:"NORMAL"===e.item.signOutStatus?O:T,alt:""},null)]),a("p",{class:Q},["NORMAL"===e.item.signOutStatus?"正常":a("span",{style:{color:"#F44541"}},[s("异常")])])])])])])])])}}});var re=r({name:"attend-student",props:{toHeight:{type:Number,default:0}},setup:function(e){n();var r=l({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,isClick:!1,actions:[],courseList:[],currentDate:[i().format("YYYY"),i().format("MM")]}),c=l({time:r.currentDate[0]+"-"+r.currentDate[1],timeName:r.currentDate[0]+"年"+r.currentDate[1]+"月",keyword:"",orchestraId:"",orchestraName:"全部乐团",courseType:"",courseTypeName:"所有课程",page:1,rows:20}),s=u(e.toHeight),w=u(new Date(i().subtract(10,"year").format("YYYY-MM-DD"))),W=u(new Date(i().add(10,"year").format("YYYY-MM-DD"))),y=u(["year","month"]),j=u(!1),O=u(!1),T=u(!1),I=u(!1),S=u([]),M=function(){var e=o(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.isClick){e.next=2;break}return e.abrupt("return");case 2:return r.isClick=!0,O.value=!0,e.prev=4,j.value&&(c.page=1,S.value=[],j.value=!1),e.next=8,v.post("/api-school/courseSchedule/teacherAttendance",{data:t({},c)});case 8:if(n=e.sent,!(S.value.length>0&&1===n.data.pages)){e.next=11;break}return e.abrupt("return");case 11:c.page=n.data.current+1,S.value=S.value.concat(n.data.rows||[]),I.value=S.value.length>0,O.value=!1,T.value=n.data.current>=n.data.pages,e.next=24;break;case 18:e.prev=18,e.t0=e.catch(4),o=e.t0.message,q(o),I.value=!1,T.value=!0;case 24:r.isClick=!1;case 25:case"end":return e.stop()}}),e,null,[[4,18]])})));return function(){return e.apply(this,arguments)}}(),N=function(e){c.time=e.selectedValues[0]+"-"+e.selectedValues[1],c.timeName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",r.showPopoverTime=!1,j.value=!0,M()},z=function(){var e=o(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.post("/api-school/orchestra/page",{data:{page:1,rows:9999,status:"DONE"}});case 3:t=e.sent,r.actions=t.data.rows.map((function(e){return{name:e.name,value:e.id}})),r.actions.unshift({name:"全部乐团",value:""}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),n=e.t0.message,q(n);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();d((function(){return e.toHeight}),(function(e){s.value=e,console.log(s.value,"老师的")})),m((function(){z(),M(),function(){for(var e in r.courseList=[],x)r.courseList.push({name:x[e],value:e});r.courseList.unshift({name:"全部课程",value:""})}()}));var Y=function(){T.value=!1,O.value=!0,M()};return function(){var e;return a("div",null,[a(_,null,[a(b,{placeholder:"请输入伴学老师姓名",class:L,onSearch:function(e){console.log(e,"onSearch"),c.keyword=e,j.value=!0,M()}},null),a("div",{class:"searchGroup"},[a("div",{class:["searchItem",r.showPopoverTime&&"searchItem-active"],onClick:function(){r.showPopoverTime=!0}},[c.timeName,a("i",{class:"arrow"},null)]),a("div",{class:["searchItem",r.showPopoverOrchestra&&"searchItem-active"],onClick:function(){r.showPopoverOrchestra=!0}},[a("span",null,[c.orchestraName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem",r.showPopoverSubject&&"searchItem-active"],onClick:function(){r.showPopoverSubject=!0}},[c.courseTypeName,a("i",{class:"arrow"},null)])])]),a("div",{style:{overflowY:"auto",height:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 2.61334rem)"}},[I.value?a(P,{modelValue:j.value,"onUpdate:modelValue":function(e){return j.value=e},onRefresh:Y,style:"min-height: calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 2.61334rem)"},{default:function(){return[a(B,{"loading-text":" ",finished:T.value,"finished-text":" ",onLoad:M,style:{paddingTop:"12px"}},(t=e=S.value.map((function(e){return a(te,{item:e},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!g(t)?e:{default:function(){return[e]}}))];var t}}):a(p,{tips:"暂无考勤"},null)]),a(f,{show:r.showPopoverTime,"onUpdate:show":function(e){return r.showPopoverTime=e},position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:function(){return[a(D,{onCancel:function(){r.showPopoverTime=!1},onConfirm:N,modelValue:r.currentDate,"onUpdate:modelValue":function(e){return r.currentDate=e},formatter:h,minDate:w.value,maxDate:W.value,columnsType:y.value},null)]}}),a(f,{show:r.showPopoverOrchestra,"onUpdate:show":function(e){return r.showPopoverOrchestra=e},position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:function(){return[a(k,{columns:r.actions,onCancel:function(){return r.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};c.orchestraId=t.value,c.orchestraName=t.name,r.showPopoverOrchestra=!1,j.value=!0,M()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),a(f,{show:r.showPopoverSubject,"onUpdate:show":function(e){return r.showPopoverSubject=e},position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:function(){return[a(k,{columns:r.courseList,onCancel:function(){return r.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};c.courseType=t.value,c.courseTypeName=t.name,r.showPopoverSubject=!1,j.value=!0,M()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}}),ne=u("student");e("default",r({name:"school-attendance",setup:function(){var e=n(),t=l({heightV:0}),r=u(),o=function(e){t.heightV=e,console.log(t.heightV,"获取高度"),document.documentElement.style.setProperty("--header-height",e+"px")};return function(){return a(_,null,[a(W,{position:"top",background:"#F8F8F8",onGetHeight:o,ref:r},{default:function(){return[a(w,{border:!1},{right:function(){return a("span",{class:S.iconSetting,onClick:function(){e.push("/attendance-rules")}},null)}})]}}),a(M,{active:ne.value,"onUpdate:active":function(e){return ne.value=e},sticky:!0,swipeable:!0,offsetTop:t.heightV,lineHeight:4,lineWidth:16,class:S.stickyAttendance},{default:function(){return[a(N,{name:"student",title:"学员考勤"},{default:function(){return[a(y,{toHeight:t.heightV},null)]}}),a(N,{name:"teacher",title:"伴学老师考勤"},{default:function(){return[a(re,{toHeight:t.heightV},null)]}})]}})])}}}))}}}))}();
|