index-legacy.638e74c2.js 12 KB

1
  1. !function(){var e=document.createElement("style");e.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(e),System.register(["./index-legacy.eb062188.js","./index-legacy.ad813f4d.js","./attend-student-legacy.911387ce.js","./index-legacy.a530d593.js","./index-legacy.4e015ad0.js","./clock-icon-legacy.2424f549.js","./success-icon-legacy.569ddbea.js","./default-icon-legacy.59172ab1.js","./index-legacy.d64e5695.js","./index-legacy.fad72574.js","./index-legacy.5f462740.js","./index-legacy.38b799d5.js","./index.module-legacy.dbcf0bf0.js","./index-legacy.ac7c51db.js","./index-legacy.3a3e070a.js","./index-legacy.918b8c74.js","./use-tab-status-legacy.91417466.js","./utils-legacy.6e8de97c.js","./Picker-legacy.95f03705.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js"],(function(e){"use strict";var t,r,a,o,i,n,_,s,d,l,c,m,p,u,h,f,g,q,v,W,w,y,b,x,T,j,I,B,D,S,M,P,O;return{setters:[function(e){t=e.d,r=e.ag,a=e.c,o=e.ai,i=e.a5,n=e.q,_=e.F,s=e.r,d=e.R,l=e.Z,c=e.$,m=e.ak,p=e.P,u=e.b2,h=e.al,f=e.m,g=e.o,q=e.aj},function(e){v=e.O},function(e){W=e.A},function(e){w=e.O},function(e){y=e.c},function(e){b=e.c},function(e){x=e.s,T=e.e},function(e){j=e.d},function(e){I=e.O},function(e){B=e.L},function(e){D=e.D},function(e){S=e.P},function(e){M=e.s},function(e){P=e.T,O=e.a},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var k="_searchInput_1n0dz_26";var N="_itemWrap_1d6rq_1",L="_itemWrapTop_1d6rq_7",z="_itemWrapTopLeft_1d6rq_15",Y="_clockWrap_1d6rq_20",C="_leftTimer_1d6rq_29",V="_itemWrapTopRight_1d6rq_35",H="_itemWrapBottom_1d6rq_39",A="_courseInfo_1d6rq_42",R="_headImgs_1d6rq_48",F="_infoMsg_1d6rq_55",U="_infoMsgMain_1d6rq_55",E="_infoMsgSub_1d6rq_61",G="_attInfo_1d6rq_72",Z="_attInfoDot_1d6rq_78",$="_attInfoDotTitle_1d6rq_83",J="_signTime_1d6rq_97",K="_passWrap_1d6rq_105",Q="_goWrap_1d6rq_106",X=t({props:["item"],name:"teacherAtt-item",setup(e){const t=r(),s=()=>{t.push({path:"/teacher-attendDetail",query:{courseScheduleId:e.item.courseScheduleId}})};return()=>a(_,null,[a("div",{class:N,onClick:s},[a("div",{class:L},[a("div",{class:z},[a("div",{class:Y},[a("img",{src:b,alt:""},null)]),a("p",{class:C},[o(e.item.startTime).format("YYYY-MM-DD HH:mm"),"~",o(e.item.endTime).format("HH:mm")])]),a("div",{class:V},[a(i,{name:"arrow"},null)])]),a("div",{class:H},[a("div",{class:A},[a("img",{class:R,src:j,alt:""},null),a("div",{class:F},[a("p",{class:U},[e.item.classGroupName,n("-"),e.item.teacherName]),a("p",{class:E},[e.item.orchestraName])])]),a("div",{class:G},[a("div",{class:"NORMAL"===e.item.signInStatus?K:Q},[a("div",{class:Z},[a("div",{class:$},[a("span",null,[n("签到状态")]),a("img",{src:"NORMAL"===e.item.signInStatus?x:T,alt:""},null)]),a("p",{class:J},["NORMAL"===e.item.signInStatus?"正常":a("span",{style:{color:"#F44541"}},[n("异常")])])])]),a("div",{class:"NORMAL"===e.item.signOutStatus?K:Q},[a("div",{class:Z},[a("div",{class:$},[a("span",null,[n("签退状态")]),a("img",{src:"NORMAL"===e.item.signOutStatus?x:T,alt:""},null)]),a("p",{class:J},["NORMAL"===e.item.signOutStatus?"正常":a("span",{style:{color:"#F44541"}},[n("异常")])])])])])])])])}});var ee=t({name:"attend-student",props:{toHeight:{type:Number,default:0}},setup(e){r();const t=s({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,isClick:!1,actions:[],courseList:[],currentDate:[o().format("YYYY"),o().format("MM")]}),i=s({time:t.currentDate[0]+"-"+t.currentDate[1],timeName:t.currentDate[0]+"年"+t.currentDate[1]+"月",keyword:"",orchestraId:"",orchestraName:"全部乐团",courseType:"",courseTypeName:"所有课程",page:1,rows:20}),n=d(e.toHeight),q=d(new Date(o().subtract(10,"year").format("YYYY-MM-DD"))),v=d(new Date(o().add(10,"year").format("YYYY-MM-DD"))),W=d(["year","month"]),b=d(!1),x=d(!1),T=d(!1),j=d(!1),M=d([]),P=async()=>{if(!t.isClick){t.isClick=!0,x.value=!0;try{b.value&&(i.page=1,M.value=[],b.value=!1);const e=await f.post("/api-school/courseSchedule/teacherAttendance",{data:{...i}});if(M.value.length>0&&1===e.data.pages)return;i.page=e.data.current+1,M.value=M.value.concat(e.data.rows||[]),j.value=M.value.length>0,x.value=!1,T.value=e.data.current>=e.data.pages}catch(e){const t=e.message;g(t),j.value=!1,T.value=!0}t.isClick=!1}},O=e=>{i.time=e.selectedValues[0]+"-"+e.selectedValues[1],i.timeName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",t.showPopoverTime=!1,b.value=!0,P()};l((()=>e.toHeight),(e=>{n.value=e,console.log(n.value,"老师的")})),c((()=>{(async()=>{try{const e=await f.post("/api-school/orchestra/page",{data:{page:1,rows:9999,status:"DONE"}});t.actions=e.data.rows.map((e=>({name:e.name,value:e.id}))),t.actions.unshift({name:"全部乐团",value:""})}catch(e){const t=e.message;g(t)}})(),P(),(()=>{t.courseList=[];for(const e in y)t.courseList.push({name:y[e],value:e});t.courseList.unshift({name:"全部课程",value:""})})()}));const N=()=>{T.value=!1,x.value=!0,P()};return()=>{let e;return a("div",null,[a(_,null,[a(w,{placeholder:"请输入伴学老师姓名",class:k,onSearch:e=>{console.log(e,"onSearch"),i.keyword=e,b.value=!0,P()}},null),a("div",{class:"searchGroup"},[a("div",{class:["searchItem",t.showPopoverTime&&"searchItem-active"],onClick:()=>{t.showPopoverTime=!0}},[i.timeName,a("i",{class:"arrow"},null)]),a("div",{class:["searchItem",t.showPopoverOrchestra&&"searchItem-active"],onClick:()=>{t.showPopoverOrchestra=!0}},[a("span",null,[i.orchestraName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem",t.showPopoverSubject&&"searchItem-active"],onClick:()=>{t.showPopoverSubject=!0}},[i.courseTypeName,a("i",{class:"arrow"},null)])])]),a("div",{style:{overflowY:"auto",height:"calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 2.61334rem)"}},[j.value?a(I,{modelValue:b.value,"onUpdate:modelValue":e=>b.value=e,onRefresh:N,style:"min-height: calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 2.61334rem)"},{default:()=>{return[a(B,{"loading-text":" ",finished:T.value,"finished-text":" ",onLoad:P,style:{paddingTop:"12px"}},(t=e=M.value.map((e=>a(X,{item:e},null))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!h(t)?e:{default:()=>[e]}))];var t}}):a(m,{tips:"暂无考勤"},null)]),a(p,{show:t.showPopoverTime,"onUpdate:show":e=>t.showPopoverTime=e,position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:()=>[a(D,{onCancel:()=>{t.showPopoverTime=!1},onConfirm:O,modelValue:t.currentDate,"onUpdate:modelValue":e=>t.currentDate=e,formatter:u,minDate:q.value,maxDate:v.value,columnsType:W.value},null)]}),a(p,{show:t.showPopoverOrchestra,"onUpdate:show":e=>t.showPopoverOrchestra=e,position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:()=>[a(S,{columns:t.actions,onCancel:()=>t.showPopoverOrchestra=!1,onConfirm:e=>(e=>{const r=e.selectedOptions[0]||{};i.orchestraId=r.value,i.orchestraName=r.name,t.showPopoverOrchestra=!1,b.value=!0,P()})(e),columnsFieldNames:{text:"name",value:"value"}},null)]}),a(p,{show:t.showPopoverSubject,"onUpdate:show":e=>t.showPopoverSubject=e,position:"bottom",round:!0,teleport:"body",class:"popupBottomSearch"},{default:()=>[a(S,{columns:t.courseList,onCancel:()=>t.showPopoverSubject=!1,onConfirm:e=>(e=>{const r=e.selectedOptions[0]||{};i.courseType=r.value,i.courseTypeName=r.name,t.showPopoverSubject=!1,b.value=!0,P()})(e),columnsFieldNames:{text:"name",value:"value"}},null)]})])}}});const te=d("student");e("default",t({name:"school-attendance",setup(){const e=r(),t=s({heightV:0}),o=d(),i=e=>{t.heightV=e,console.log(t.heightV,"获取高度"),document.documentElement.style.setProperty("--header-height",e+"px")};return()=>a(_,null,[a(v,{position:"top",background:"#F8F8F8",onGetHeight:i,ref:o},{default:()=>[a(q,{border:!1},{right:()=>a("span",{class:M.iconSetting,onClick:()=>{e.push("/attendance-rules")}},null)})]}),a(P,{active:te.value,"onUpdate:active":e=>te.value=e,sticky:!0,swipeable:!0,offsetTop:t.heightV,lineHeight:4,lineWidth:16,class:M.stickyAttendance},{default:()=>[a(O,{name:"student",title:"学员考勤"},{default:()=>[a(W,{toHeight:t.heightV},null)]}),a(O,{name:"teacher",title:"伴学老师考勤"},{default:()=>[a(ee,{toHeight:t.heightV},null)]})]})])}}))}}}))}();