1 |
- !function(){function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function e(e){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?t(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e,r,o,n,a,i){try{var u=t[a](i),c=u.value}catch(s){return void r(s)}u.done?e(c):Promise.resolve(c).then(o,n)}function n(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function u(t){o(i,n,a,u,c,"next",t)}function c(t){o(i,n,a,u,c,"throw",t)}u(void 0)}))}}var a=document.createElement("style");a.innerHTML="._itemWrap_uqb6t_1{padding:.32rem .4rem .4rem;border-radius:.26667rem;background-color:#fff;margin:0 .34667rem .32rem}._itemWrap_uqb6t_1 ._itemWrapTop_uqb6t_7{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-bottom:.32rem;border-bottom:.02667rem solid #f2f2f2}._itemWrap_uqb6t_1 ._itemWrapTop_uqb6t_7 ._itemWrapTopLeft_uqb6t_15{display:flex;flex-direction:row;align-items:center}._itemWrap_uqb6t_1 ._itemWrapTop_uqb6t_7 ._itemWrapTopLeft_uqb6t_15 ._clockWrap_uqb6t_20{width:.48rem;height:.48rem;margin-right:.16rem}._itemWrap_uqb6t_1 ._itemWrapTop_uqb6t_7 ._itemWrapTopLeft_uqb6t_15 ._clockWrap_uqb6t_20 img{width:100%;height:100%}._itemWrap_uqb6t_1 ._itemWrapTop_uqb6t_7 ._itemWrapTopLeft_uqb6t_15 ._leftTimer_uqb6t_29{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._itemWrap_uqb6t_1 ._itemWrapTop_uqb6t_7 ._itemWrapTopRight_uqb6t_35{font-size:.32rem;color:#777}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39{padding-top:.4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._courseInfo_uqb6t_46{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;overflow:hidden;text-overflow:ellipsis}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._courseInfo_uqb6t_46 ._headImgs_uqb6t_55{width:1.12rem;height:1.12rem;border-radius:50%;overflow:hidden;margin-right:.32rem}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._courseInfo_uqb6t_46 ._infoMsg_uqb6t_62 ._infoMsgMain_uqb6t_62{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._courseInfo_uqb6t_46 ._infoMsg_uqb6t_62 ._infoMsgSub_uqb6t_68{width:4.66667rem;font-size:.32rem;font-weight:400;color:#777;line-height:.45333rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._typeTag_uqb6t_78{padding:0 .16rem;color:#fff;background:#ff8057;border-radius:.10667rem;line-height:.53333rem;font-weight:500;font-size:.32rem}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._typeTagNo_uqb6t_87{font-size:.32rem;padding:0 .16rem;color:#fff;background:#d2d2d2;border-radius:.10667rem;line-height:.53333rem;font-weight:500}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._itemWrapBottomRight_uqb6t_96{display:flex;flex-direction:row;align-items:center}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._itemWrapBottomRight_uqb6t_96 ._attInfo_uqb6t_101{display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._itemWrapBottomRight_uqb6t_96 ._attInfo_uqb6t_101 ._attInfoDot_uqb6t_107{text-align:left;padding:.32rem}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._itemWrapBottomRight_uqb6t_96 ._attInfo_uqb6t_101 ._attInfoDot_uqb6t_107 ._attInfoDotTitle_uqb6t_111{width:100%;display:flex;flex-direction:row;margin-bottom:.18667rem;align-items:center}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._itemWrapBottomRight_uqb6t_96 ._attInfo_uqb6t_101 ._attInfoDot_uqb6t_107 ._attInfoDotTitle_uqb6t_111 img{width:.48rem;height:.48rem;margin-left:1.6rem}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._itemWrapBottomRight_uqb6t_96 ._attInfo_uqb6t_101 ._attInfoDot_uqb6t_107 ._signTime_uqb6t_123{font-size:.53333rem;font-weight:600;color:#333;line-height:.74667rem}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._itemWrapBottomRight_uqb6t_96 ._goWrap_uqb6t_129{align-items:center;text-align:center;border-radius:.18667rem;padding:.21333rem .34667rem;background:#f6f6f6;margin-right:.21333rem}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._itemWrapBottomRight_uqb6t_96 ._goWrap_uqb6t_129 ._goWrapMain_uqb6t_137{font-size:.37333rem;font-weight:600;color:#3891ff;line-height:.53333rem}._itemWrap_uqb6t_1 ._itemWrapBottom_uqb6t_39 ._itemWrapBottomRight_uqb6t_96 ._goWrap_uqb6t_129 ._goWrapSub_uqb6t_143{font-size:.32rem;font-weight:400;color:#777;line-height:.45333rem}\n",document.head.appendChild(a),System.register(["./index-legacy.81fd4e6f.js","./index-legacy.a9944503.js","./index-legacy.0e551442.js","./index-legacy.5ee1edf1.js","./clock-icon-legacy.2424f549.js","./index-legacy.00d82922.js","./index-legacy.8271e59c.js","./index-legacy.55bd130c.js","./index-legacy.40afcdaf.js","./index-legacy.819d05e3.js","./use-tab-status-legacy.7b80393c.js","./utils-legacy.0c949fd0.js","./index-legacy.e997fd26.js","./index-legacy.8bfb99fc.js","./index-legacy.2a9471c6.js"],(function(t){"use strict";var r,o,a,i,u,c,s,_,l,m,p,f,d,b,h,g,v,q,w,W,y,x,j,T;return{setters:[function(t){r=t.O},function(t){o=t.d,a=t.ag,i=t.c,u=t.ah,c=t.q,s=t.a5,_=t.F,l=t.r,m=t.R,p=t.Z,f=t.$,d=t.ai,b=t.P,h=t.aj,g=t.m,v=t.o},function(t){q=t.O},function(t){w=t.c},function(t){W=t.c},function(t){y=t.O},function(t){x=t.L},function(t){j=t.D},function(t){T=t.P},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var O="_itemWrap_uqb6t_1",P="_itemWrapTop_uqb6t_7",B="_itemWrapTopLeft_uqb6t_15",D="_clockWrap_uqb6t_20",I="_leftTimer_uqb6t_29",S="_itemWrapTopRight_uqb6t_35",M="_itemWrapBottom_uqb6t_39",R="_courseInfo_uqb6t_46",k="_infoMsg_uqb6t_62",N="_infoMsgMain_uqb6t_62",Y="_infoMsgSub_uqb6t_68",L="_itemWrapBottomRight_uqb6t_96",C="_attInfo_uqb6t_101",z="_goWrap_uqb6t_129",H="_goWrapMain_uqb6t_137",V="_goWrapSub_uqb6t_143",E=o({props:["item"],name:"teacherAtt-item",setup:function(t){var e=a(),r=function(){e.push({path:"/teacher-attendDetail",query:{courseScheduleId:t.item.courseScheduleId}})};return function(){return i(_,null,[i("div",{class:O,onClick:r},[i("div",{class:P},[i("div",{class:B},[i("div",{class:D},[i("img",{src:W,alt:""},null)]),i("p",{class:I},[u(t.item.startTime).format("YYYY-MM-DD HH:mm"),"-",u(t.item.endTime).format("HH:mm")])])]),i("div",{class:M},[i("div",{class:R},[i("div",{class:k},[i("p",{class:N},[t.item.classGroupName]),i("p",{class:Y},[t.item.orchestraName])])]),i("div",{class:L},[i("div",{class:C},[i("div",{class:z},[i("p",{class:H},["NORMAL"===t.item.signInStatus?i("span",null,[c("正常")]):i("span",{style:{color:"#F44541"}},[c("异常")])]),i("p",{class:V},[c("签到")])]),i("div",{class:z},[i("p",{class:H},["NORMAL"===t.item.signOutStatus?i("span",null,[c("正常")]):i("span",{style:{color:"#F44541"}},[c("异常")])]),i("p",{class:V},[c("签退")])])]),i("div",{class:S},[i(s,{name:"arrow"},null)])])])])])}}});t("default",o({name:"attend-student",props:{toHeight:{type:Number,default:0}},setup:function(t){a();var o=l({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],courseList:[],currentDate:[u().format("YYYY"),u().format("MM")]}),c=l({time:o.currentDate[0]+"-"+o.currentDate[1],timeName:o.currentDate[0]+"年"+o.currentDate[1]+"月",keyword:"",orchestraId:"",orchestraName:"全部乐团",courseType:"",courseTypeName:"所有课程",page:1,rows:20}),s=m(t.toHeight),_=m(new Date(u().subtract(10,"year").format("YYYY-MM-DD"))),W=m(new Date(u().add(10,"year").format("YYYY-MM-DD"))),O=m(["year","month"]),P=m(!1),B=m(!1),D=m(!1),I=m(!0),S=m([]),M=function(){var t=n(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return B.value=!0,t.prev=1,P.value&&(c.page=1,S.value=[],P.value=!1),t.next=5,g.post("/api-teacher/courseSchedule/teacherAttendance",{data:e({},c)});case 5:if(r=t.sent,!(S.value.length>0&&1===r.data.pages)){t.next=8;break}return t.abrupt("return");case 8:c.page=r.data.current+1,S.value=S.value.concat(r.data.rows||[]),I.value=S.value.length>0,B.value=!1,D.value=r.data.current>=r.data.pages,t.next=21;break;case 15:t.prev=15,t.t0=t.catch(1),o=t.t0.message,v(o),I.value=!1,D.value=!0;case 21:case"end":return t.stop()}}),t,null,[[1,15]])})));return function(){return t.apply(this,arguments)}}(),R=function(t){c.time=t.selectedValues[0]+"-"+t.selectedValues[1],c.timeName=t.selectedValues[0]+"年"+t.selectedValues[1]+"月",o.showPopoverTime=!1,P.value=!0,M()},k=function(){var t=n(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,g.post("/api-teacher/orchestra/page",{data:{page:1,rows:9999,status:"DONE"}});case 3:e=t.sent,o.actions=e.data.rows.map((function(t){return{name:t.name,value:t.id}})),o.actions.unshift({name:"全部乐团",value:""}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),r=t.t0.message,v(r);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}();p((function(){return t.toHeight}),(function(t){s.value=t,console.log(s.value,"老师的")})),f((function(){k(),M(),function(){for(var t in o.courseList=[],w)o.courseList.push({name:w[t],value:t});o.courseList.unshift({name:"全部课程",value:""})}()}));var N=function(){D.value=!1,B.value=!0,M()};return function(){var t;return i("div",{class:!I.value&&"emptyRootContainer"},[i(y,{position:"top",onGetHeight:function(t){document.documentElement.style.setProperty("--header-height",t+"px")}},{default:function(){return[i(r,null,null),i("div",{class:"searchGroup"},[i("div",{class:["searchItem searchItem-normal",o.showPopoverTime?"searchItem-active":""],onClick:function(){o.showPopoverTime=!0}},[i("span",null,[c.timeName]),i("i",{class:"arrow"},null)]),i("div",{class:["searchItem",o.showPopoverOrchestra?"searchItem-active":""],onClick:function(){o.showPopoverOrchestra=!0}},[i("span",null,[c.orchestraName]),i("i",{class:"arrow"},null)]),i("div",{class:["searchItem",o.showPopoverSubject?"searchItem-active":""],onClick:function(){o.showPopoverSubject=!0}},[i("span",null,[c.courseTypeName]),i("i",{class:"arrow"},null)])])]}}),I.value?i(q,{modelValue:P.value,"onUpdate:modelValue":function(t){return P.value=t},onRefresh:N,style:"min-height: calc(100vh - var(--header-height));"},{default:function(){return[i(x,{"loading-text":" ",finished:D.value,"finished-text":"没有更多了",style:{paddingTop:"12px"},onLoad:M},(e=t=S.value.map((function(t){return i(E,{item:t},null)})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)?t:{default:function(){return[t]}}))];var e}}):i(d,{tips:"暂无考勤"},null),i(b,{show:o.showPopoverTime,"onUpdate:show":function(t){return o.showPopoverTime=t},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[i(j,{onCancel:function(){o.showPopoverTime=!1},onConfirm:R,modelValue:o.currentDate,"onUpdate:modelValue":function(t){return o.currentDate=t},title:"选择年月",minDate:_.value,maxDate:W.value,columnsType:O.value},null)]}}),i(b,{show:o.showPopoverOrchestra,"onUpdate:show":function(t){return o.showPopoverOrchestra=t},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[i(T,{columns:o.actions,onCancel:function(){return o.showPopoverOrchestra=!1},onConfirm:function(t){return function(t){var e=t.selectedOptions[0]||{};c.orchestraId=e.value,c.orchestraName=e.name,o.showPopoverOrchestra=!1,P.value=!0,M()}(t)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),i(b,{show:o.showPopoverSubject,"onUpdate:show":function(t){return o.showPopoverSubject=t},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[i(T,{columns:o.courseList,onCancel:function(){return o.showPopoverSubject=!1},onConfirm:function(t){return function(t){var e=t.selectedOptions[0]||{};c.courseType=e.value,c.courseTypeName=e.name,o.showPopoverSubject=!1,P.value=!0,M()}(t)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}}))}}}))}();
|