index-legacy.aa7c20a8.js 12 KB

1
  1. !function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function t(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?e(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,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 o(e,t,r,o,n,a,i){try{var s=e[a](i),p=s.value}catch(c){return void r(c)}s.done?t(p):Promise.resolve(p).then(o,n)}function n(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function s(e){o(i,n,a,s,p,"next",e)}function p(e){o(i,n,a,s,p,"throw",e)}s(void 0)}))}}var a=document.createElement("style");a.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(a),System.register(["./index-legacy.90c82f08.js","./index-legacy.02f13b7a.js","./index-legacy.4e015ad0.js","./clock-icon-legacy.2424f549.js","./index-legacy.84457c4c.js","./index-legacy.789a0824.js","./index-legacy.537e6dca.js","./index-legacy.c8871c95.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"],(function(e){"use strict";var r,o,a,i,s,p,c,_,u,m,l,f,y,d,h,j,g,v,w,W,b,x,T,P,O;return{setters:[function(e){r=e.d,o=e.ag,a=e.c,i=e.ai,s=e.q,p=e.a5,c=e.F,_=e.r,u=e.R,m=e.Z,l=e.$,f=e.aj,y=e.ak,d=e.P,h=e.a_,j=e.al,g=e.m,v=e.o},function(e){w=e.O},function(e){W=e.c},function(e){b=e.c},function(e){x=e.O},function(e){T=e.L},function(e){P=e.D},function(e){O=e.P},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var B="_itemWrap_1spjy_1",D="_itemWrapTop_1spjy_7",I="_itemWrapTopLeft_1spjy_15",S="_clockWrap_1spjy_20",M="_leftTimer_1spjy_29",k="_itemWrapTopRight_1spjy_35",R="_itemWrapBottom_1spjy_39",N="_courseInfo_1spjy_46",Y="_infoMsg_1spjy_62",L="_infoMsgMain_1spjy_62",C="_infoMsgSub_1spjy_68",z="_itemWrapBottomRight_1spjy_97",H="_attInfo_1spjy_102",V="_goWrap_1spjy_130",E="_goWrapMain_1spjy_138",F="_goWrapSub_1spjy_144",U=r({props:["item"],name:"teacherAtt-item",setup:function(e){var t=o(),r=function(){t.push({path:"/teacher-attendDetail",query:{courseScheduleId:e.item.courseScheduleId}})};return function(){return a(c,null,[a("div",{class:B,onClick:r},[a("div",{class:D},[a("div",{class:I},[a("div",{class:S},[a("img",{src:b,alt:""},null)]),a("p",{class:M},[i(e.item.startTime).format("YYYY-MM-DD HH:mm"),"-",i(e.item.endTime).format("HH:mm")])])]),a("div",{class:R},[a("div",{class:N},[a("div",{class:Y},[a("p",{class:L},[e.item.classGroupName]),a("p",{class:C},[e.item.orchestraName])])]),a("div",{class:z},[a("div",{class:H},[a("div",{class:V},[a("p",{class:E},["NORMAL"===e.item.signInStatus?a("span",null,[s("正常")]):a("span",{style:{color:"#F44541"}},[s("异常")])]),a("p",{class:F},[s("签到")])]),a("div",{class:V},[a("p",{class:E},["NORMAL"===e.item.signOutStatus?a("span",null,[s("正常")]):a("span",{style:{color:"#F44541"}},[s("异常")])]),a("p",{class:F},[s("签退")])])]),a("div",{class:k},[a(p,{name:"arrow"},null)])])])])])}}});e("default",r({name:"attend-student",props:{toHeight:{type:Number,default:0}},setup:function(e){o();var r=_({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,actions:[],courseList:[],currentDate:[i().format("YYYY"),i().format("MM")]}),s=_({time:r.currentDate[0]+"-"+r.currentDate[1],timeName:r.currentDate[0]+"年"+r.currentDate[1]+"月",keyword:"",orchestraId:"",orchestraName:"全部乐团",courseType:"",courseTypeName:"所有课程",page:1,rows:20}),p=u(e.toHeight),c=u(new Date(i().subtract(10,"year").format("YYYY-MM-DD"))),b=u(new Date(i().add(10,"year").format("YYYY-MM-DD"))),B=u(["year","month"]),D=u(!1),I=u(!1),S=u(!1),M=u(!0),k=u([]),R=function(){var e=n(regeneratorRuntime.mark((function e(){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I.value=!0,e.prev=1,D.value&&(s.page=1,k.value=[],D.value=!1),e.next=5,g.post("/api-teacher/courseSchedule/teacherAttendance",{data:t({},s)});case 5:if(r=e.sent,!(k.value.length>0&&1===r.data.pages)){e.next=8;break}return e.abrupt("return");case 8:s.page=r.data.current+1,k.value=k.value.concat(r.data.rows||[]),M.value=k.value.length>0,I.value=!1,S.value=r.data.current>=r.data.pages,e.next=21;break;case 15:e.prev=15,e.t0=e.catch(1),o=e.t0.message,v(o),M.value=!1,S.value=!0;case 21:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(){return e.apply(this,arguments)}}(),N=function(e){s.time=e.selectedValues[0]+"-"+e.selectedValues[1],s.timeName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",r.showPopoverTime=!1,D.value=!0,R()},Y=function(){var e=n(regeneratorRuntime.mark((function e(){var t,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.post("/api-teacher/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),o=e.t0.message,v(o);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();m((function(){return e.toHeight}),(function(e){p.value=e,console.log(p.value,"老师的")})),l((function(){Y(),R(),function(){for(var e in r.courseList=[],W)r.courseList.push({name:W[e],value:e});r.courseList.unshift({name:"全部课程",value:""})}()}));var L=function(){S.value=!1,I.value=!0,R()};return function(){var e;return a("div",{class:!M.value&&"emptyRootContainer"},[a(x,{position:"top",onGetHeight:function(e){document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[a(f,{border:!1},null),a("div",{class:"searchGroup"},[a("div",{class:["searchItem searchItem-normal",r.showPopoverTime?"searchItem-active":""],onClick:function(){r.showPopoverTime=!0}},[a("span",null,[s.timeName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem",r.showPopoverOrchestra?"searchItem-active":""],onClick:function(){r.showPopoverOrchestra=!0}},[a("span",null,[s.orchestraName]),a("i",{class:"arrow"},null)]),a("div",{class:["searchItem",r.showPopoverSubject?"searchItem-active":""],onClick:function(){r.showPopoverSubject=!0}},[a("span",null,[s.courseTypeName]),a("i",{class:"arrow"},null)])])]}}),M.value?a(w,{modelValue:D.value,"onUpdate:modelValue":function(e){return D.value=e},onRefresh:L,style:"min-height: calc(100vh - var(--header-height));"},{default:function(){return[a(T,{"loading-text":" ",finished:S.value,"finished-text":" ",style:{paddingTop:"12px"},onLoad:R},(t=e=k.value.map((function(e){return a(U,{item:e},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!j(t)?e:{default:function(){return[e]}}))];var t}}):a(y,{tips:"暂无考勤"},null),a(d,{show:r.showPopoverTime,"onUpdate:show":function(e){return r.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(P,{onCancel:function(){r.showPopoverTime=!1},onConfirm:N,modelValue:r.currentDate,"onUpdate:modelValue":function(e){return r.currentDate=e},formatter:h,minDate:c.value,maxDate:b.value,columnsType:B.value},null)]}}),a(d,{show:r.showPopoverOrchestra,"onUpdate:show":function(e){return r.showPopoverOrchestra=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(O,{columns:r.actions,onCancel:function(){return r.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};s.orchestraId=t.value,s.orchestraName=t.name,r.showPopoverOrchestra=!1,D.value=!0,R()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),a(d,{show:r.showPopoverSubject,"onUpdate:show":function(e){return r.showPopoverSubject=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(O,{columns:r.courseList,onCancel:function(){return r.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};s.courseType=t.value,s.courseTypeName=t.name,r.showPopoverSubject=!1,D.value=!0,R()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}}))}}}))}();