1 |
- !function(){var e=document.createElement("style");e.innerHTML="._itemWrap_1spjy_1{padding:.32rem .4rem .4rem;border-radius:.26667rem;background-color:#fff;margin:0 .34667rem .32rem}._itemWrap_1spjy_1 ._itemWrapTop_1spjy_7{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-bottom:.32rem;border-bottom:.02667rem solid #f2f2f2}._itemWrap_1spjy_1 ._itemWrapTop_1spjy_7 ._itemWrapTopLeft_1spjy_15{display:flex;flex-direction:row;align-items:center}._itemWrap_1spjy_1 ._itemWrapTop_1spjy_7 ._itemWrapTopLeft_1spjy_15 ._clockWrap_1spjy_20{width:.48rem;height:.48rem;margin-right:.16rem}._itemWrap_1spjy_1 ._itemWrapTop_1spjy_7 ._itemWrapTopLeft_1spjy_15 ._clockWrap_1spjy_20 img{width:100%;height:100%}._itemWrap_1spjy_1 ._itemWrapTop_1spjy_7 ._itemWrapTopLeft_1spjy_15 ._leftTimer_1spjy_29{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._itemWrap_1spjy_1 ._itemWrapTop_1spjy_7 ._itemWrapTopRight_1spjy_35{font-size:.32rem;color:#777}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39{padding-top:.4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._courseInfo_1spjy_46{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;overflow:hidden;text-overflow:ellipsis}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._courseInfo_1spjy_46 ._headImgs_1spjy_55{width:1.12rem;height:1.12rem;border-radius:50%;overflow:hidden;margin-right:.32rem}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._courseInfo_1spjy_46 ._infoMsg_1spjy_62 ._infoMsgMain_1spjy_62{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._courseInfo_1spjy_46 ._infoMsg_1spjy_62 ._infoMsgSub_1spjy_68{padding-top:.10667rem;width:4.66667rem;font-size:.32rem;font-weight:400;color:#777;line-height:.53333rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._typeTag_1spjy_79{padding:0 .16rem;color:#fff;background:#ff8057;border-radius:.10667rem;line-height:.53333rem;font-weight:500;font-size:.32rem}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._typeTagNo_1spjy_88{font-size:.32rem;padding:0 .16rem;color:#fff;background:#d2d2d2;border-radius:.10667rem;line-height:.53333rem;font-weight:500}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._itemWrapBottomRight_1spjy_97{display:flex;flex-direction:row;align-items:center}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._itemWrapBottomRight_1spjy_97 ._attInfo_1spjy_102{display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._itemWrapBottomRight_1spjy_97 ._attInfo_1spjy_102 ._attInfoDot_1spjy_108{text-align:left;padding:.32rem}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._itemWrapBottomRight_1spjy_97 ._attInfo_1spjy_102 ._attInfoDot_1spjy_108 ._attInfoDotTitle_1spjy_112{width:100%;display:flex;flex-direction:row;margin-bottom:.18667rem;align-items:center}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._itemWrapBottomRight_1spjy_97 ._attInfo_1spjy_102 ._attInfoDot_1spjy_108 ._attInfoDotTitle_1spjy_112 img{width:.48rem;height:.48rem;margin-left:1.6rem}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._itemWrapBottomRight_1spjy_97 ._attInfo_1spjy_102 ._attInfoDot_1spjy_108 ._signTime_1spjy_124{font-size:.53333rem;font-weight:600;color:#333;line-height:.74667rem}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._itemWrapBottomRight_1spjy_97 ._goWrap_1spjy_130{align-items:center;text-align:center;border-radius:.18667rem;padding:.21333rem .34667rem;background:#f6f6f6;margin-right:.21333rem}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._itemWrapBottomRight_1spjy_97 ._goWrap_1spjy_130 ._goWrapMain_1spjy_138{font-size:.37333rem;font-weight:600;color:#3891ff;line-height:.53333rem}._itemWrap_1spjy_1 ._itemWrapBottom_1spjy_39 ._itemWrapBottomRight_1spjy_97 ._goWrap_1spjy_130 ._goWrapSub_1spjy_144{font-size:.32rem;font-weight:400;color:#777;line-height:.45333rem}\n",document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.d64e5695.js","./index-legacy.4e015ad0.js","./clock-icon-legacy.2424f549.js","./index-legacy.ad813f4d.js","./index-legacy.fad72574.js","./index-legacy.5f462740.js","./index-legacy.38b799d5.js","./use-tab-status-legacy.91417466.js","./utils-legacy.6e8de97c.js","./Picker-legacy.95f03705.js","./index-legacy.ac7c51db.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js"],(function(e){"use strict";var t,o,a,s,r,i,p,_,n,m,l,c,u,d,y,h,f,j,g,v,W,w,b,T,x;return{setters:[function(e){t=e.d,o=e.ag,a=e.c,s=e.ai,r=e.q,i=e.a5,p=e.F,_=e.r,n=e.R,m=e.Z,l=e.$,c=e.aj,u=e.ak,d=e.P,y=e.b2,h=e.al,f=e.m,j=e.o},function(e){g=e.O},function(e){v=e.c},function(e){W=e.c},function(e){w=e.O},function(e){b=e.L},function(e){T=e.D},function(e){x=e.P},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var B="_itemWrap_1spjy_1",I="_itemWrapTop_1spjy_7",D="_itemWrapTopLeft_1spjy_15",P="_clockWrap_1spjy_20",M="_leftTimer_1spjy_29",S="_itemWrapTopRight_1spjy_35",N="_itemWrapBottom_1spjy_39",O="_courseInfo_1spjy_46",R="_infoMsg_1spjy_62",Y="_infoMsgMain_1spjy_62",k="_infoMsgSub_1spjy_68",L="_itemWrapBottomRight_1spjy_97",C="_attInfo_1spjy_102",z="_goWrap_1spjy_130",H="_goWrapMain_1spjy_138",V="_goWrapSub_1spjy_144",F=t({props:["item"],name:"teacherAtt-item",setup(e){const t=o(),_=()=>{t.push({path:"/teacher-attendDetail",query:{courseScheduleId:e.item.courseScheduleId}})};return()=>a(p,null,[a("div",{class:B,onClick:_},[a("div",{class:I},[a("div",{class:D},[a("div",{class:P},[a("img",{src:W,alt:""},null)]),a("p",{class:M},[s(e.item.startTime).format("YYYY-MM-DD HH:mm"),"-",s(e.item.endTime).format("HH:mm")])])]),a("div",{class:N},[a("div",{class:O},[a("div",{class:R},[a("p",{class:Y},[e.item.classGroupName]),a("p",{class:k},[e.item.orchestraName])])]),a("div",{class:L},[a("div",{class:C},[a("div",{class:z},[a("p",{class:H},["NORMAL"===e.item.signInStatus?a("span",null,[r("正常")]):a("span",{style:{color:"#F44541"}},[r("异常")])]),a("p",{class:V},[r("签到")])]),a("div",{class:z},[a("p",{class:H},["NORMAL"===e.item.signOutStatus?a("span",null,[r("正常")]):a("span",{style:{color:"#F44541"}},[r("异常")])]),a("p",{class:V},[r("签退")])])]),a("div",{class:S},[a(i,{name:"arrow"},null)])])])])])}});e("default",t({name:"attend-student",props:{toHeight:{type:Number,default:0}},setup(e){o();const t=_({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],courseList:[],currentDate:[s().format("YYYY"),s().format("MM")]}),r=_({time:t.currentDate[0]+"-"+t.currentDate[1],timeName:t.currentDate[0]+"年"+t.currentDate[1]+"月",keyword:"",orchestraId:"",orchestraName:"全部乐团",courseType:"",courseTypeName:"所有课程",page:1,rows:20}),i=n(e.toHeight),p=n(new Date(s().subtract(10,"year").format("YYYY-MM-DD"))),W=n(new Date(s().add(10,"year").format("YYYY-MM-DD"))),B=n(["year","month"]),I=n(!1),D=n(!1),P=n(!1),M=n(!0),S=n([]),N=async()=>{D.value=!0;try{I.value&&(r.page=1,S.value=[],I.value=!1);const e=await f.post("/api-teacher/courseSchedule/teacherAttendance",{data:{...r}});if(S.value.length>0&&1===e.data.pages)return;r.page=e.data.current+1,S.value=S.value.concat(e.data.rows||[]),M.value=S.value.length>0,D.value=!1,P.value=e.data.current>=e.data.pages}catch(e){const t=e.message;j(t),M.value=!1,P.value=!0}},O=e=>{r.time=e.selectedValues[0]+"-"+e.selectedValues[1],r.timeName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",t.showPopoverTime=!1,I.value=!0,N()};m((()=>e.toHeight),(e=>{i.value=e,console.log(i.value,"老师的")})),l((()=>{(async()=>{try{const e=await f.post("/api-teacher/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;j(t)}})(),N(),(()=>{t.courseList=[];for(const e in v)t.courseList.push({name:v[e],value:e});t.courseList.unshift({name:"全部课程",value:""})})()}));const R=()=>{P.value=!1,D.value=!0,N()};return()=>{let e;return a("div",{class:!M.value&&"emptyRootContainer"},[a(w,{position:"top",onGetHeight:e=>{document.documentElement.style.setProperty("--header-height",e+"px")}},{default:()=>[a(c,{border:!1},null),a("div",{class:"searchGroup"},[a("div",{class:["searchItem searchItem-normal",t.showPopoverTime?"searchItem-active":""],onClick:()=>{t.showPopoverTime=!0}},[a("span",null,[r.timeName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem",t.showPopoverOrchestra?"searchItem-active":""],onClick:()=>{t.showPopoverOrchestra=!0}},[a("span",null,[r.orchestraName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem",t.showPopoverSubject?"searchItem-active":""],onClick:()=>{t.showPopoverSubject=!0}},[a("span",null,[r.courseTypeName]),a("i",{class:"arrow"},null)])])]}),M.value?a(g,{modelValue:I.value,"onUpdate:modelValue":e=>I.value=e,onRefresh:R,style:"min-height: calc(100vh - var(--header-height));"},{default:()=>{return[a(b,{"loading-text":" ",finished:P.value,"finished-text":" ",style:{paddingTop:"12px"},onLoad:N},(t=e=S.value.map((e=>a(F,{item:e},null))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!h(t)?e:{default:()=>[e]}))];var t}}):a(u,{tips:"暂无考勤"},null),a(d,{show:t.showPopoverTime,"onUpdate:show":e=>t.showPopoverTime=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[a(T,{onCancel:()=>{t.showPopoverTime=!1},onConfirm:O,modelValue:t.currentDate,"onUpdate:modelValue":e=>t.currentDate=e,formatter:y,minDate:p.value,maxDate:W.value,columnsType:B.value},null)]}),a(d,{show:t.showPopoverOrchestra,"onUpdate:show":e=>t.showPopoverOrchestra=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[a(x,{columns:t.actions,onCancel:()=>t.showPopoverOrchestra=!1,onConfirm:e=>(e=>{const o=e.selectedOptions[0]||{};r.orchestraId=o.value,r.orchestraName=o.name,t.showPopoverOrchestra=!1,I.value=!0,N()})(e),columnsFieldNames:{text:"name",value:"value"}},null)]}),a(d,{show:t.showPopoverSubject,"onUpdate:show":e=>t.showPopoverSubject=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[a(x,{columns:t.courseList,onCancel:()=>t.showPopoverSubject=!1,onConfirm:e=>(e=>{const o=e.selectedOptions[0]||{};r.courseType=o.value,r.courseTypeName=o.name,t.showPopoverSubject=!1,I.value=!0,N()})(e),columnsFieldNames:{text:"name",value:"value"}},null)]})])}}}))}}}))}();
|