1 |
- !function(){var e=["endTime","startTime"];function r(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,t)}return a}function a(e){for(var a=1;a<arguments.length;a++){var n=null!=arguments[a]?arguments[a]:{};a%2?r(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function t(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function n(e,r){if(null==e)return{};var a,t,n=function(e,r){if(null==e)return{};var a,t,n={},o=Object.keys(e);for(t=0;t<o.length;t++)a=o[t],r.indexOf(a)>=0||(n[a]=e[a]);return n}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)a=o[t],r.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function o(e,r,a,t,n,o,c){try{var s=e[o](c),i=s.value}catch(u){return void a(u)}s.done?r(i):Promise.resolve(i).then(t,n)}function c(e){return function(){var r=this,a=arguments;return new Promise((function(t,n){var c=e.apply(r,a);function s(e){o(c,t,n,s,i,"next",e)}function i(e){o(c,t,n,s,i,"throw",e)}s(void 0)}))}}var s=document.createElement("style");s.innerHTML="._coursewareGroup_1z06z_1{margin:0 .34667rem .34667rem;border-radius:.26667rem;overflow:hidden}._coursewareGroup_1z06z_1 .van-cell:after{transform:scale(1)}._coursewareGroup_1z06z_1 ._top1_1z06z_9{padding:.32rem;font-size:.34667rem;color:#777!important}._coursewareGroup_1z06z_1 ._top2_1z06z_14{font-size:.32rem;color:#777!important;padding:.37333rem .32rem .53333rem}._coursewareGroup_1z06z_1 ._userLogo_1z06z_19{width:1.25333rem;height:1.25333rem;border-radius:50%;overflow:hidden;margin-right:.16rem}._coursewareGroup_1z06z_1 ._courseName_1z06z_26,._coursewareGroup_1z06z_1 ._userName_1z06z_27{max-width:2.93333rem}._coursewareGroup_1z06z_1 ._userName_1z06z_27{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._coursewareGroup_1z06z_1 ._courseRange_1z06z_36{font-size:.42667rem;font-family:DINA;color:#333;line-height:.50667rem}._coursewareGroup_1z06z_1 ._courseRange_1z06z_36 span{color:#f44541}._coursewareGroup_1z06z_1 ._courseName_1z06z_26,._coursewareGroup_1z06z_1 ._courseRangeTips_1z06z_46{line-height:1.2;padding-top:.10667rem}._exerciseRecord_1z06z_50 .van-haptics-feedback:active{opacity:1}._searchMore_1z06z_53{line-height:1.2!important}._searchMore_1z06z_53 .van-dropdown-item{z-index:99}._searchMore_1z06z_53 .van-dropdown-menu__bar{box-shadow:none;height:var(--van-nav-bar-height)}._searchMore_1z06z_53 .van-dropdown-item__content{border-radius:0 0 .32rem .32rem;max-height:100%}._searchMore_1z06z_53 .van-button+.van-button{margin-left:.4rem}._searchMore_1z06z_53 ._searchContainer_1z06z_70{max-height:10.66667rem;overflow-y:auto;box-sizing:border-box;padding-bottom:.42667rem;background:var(--van-popup-background);transition:var(--van-popup-transition)}._searchMore_1z06z_53 ._searchMoreGroup_1z06z_78{display:flex;align-items:center;padding:.48rem .34667rem;background-color:#fff}._searchMore_1z06z_53 ._searchTitle_1z06z_84{padding:.4rem .34667rem .05333rem;font-size:.4rem;font-weight:600;color:#333;line-height:.56rem;text-align:left}._searchMore_1z06z_53 ._searchTypeGroup_1z06z_92{display:flex;align-items:center;padding:0 .34667rem;flex-wrap:wrap;justify-content:space-between}._searchMore_1z06z_53 ._searchTypeFlex_1z06z_99 ._searchTypeItem_1z06z_99{width:49%}._searchMore_1z06z_53 ._searchTypeFlex1_1z06z_102{justify-content:flex-start}._searchMore_1z06z_53 ._searchTypeFlex1_1z06z_102 ._searchTypeItem_1z06z_99{width:31%}._searchMore_1z06z_53 ._searchTypeFlex1_1z06z_102 ._searchTypeItem_1z06z_99:nth-child(3n + 1){margin-right:2.333%}._searchMore_1z06z_53 ._searchTypeFlex1_1z06z_102 ._searchTypeItem_1z06z_99:nth-child(3n + 3){margin-left:2.333%}._searchMore_1z06z_53 ._searchTypeFlex2_1z06z_114 ._searchTypeItem_1z06z_99{width:45%}._searchMore_1z06z_53 ._searchTypeItemLine_1z06z_117{margin-top:.26667rem;width:.42667rem;height:.02667rem;background:#d8d8d8}._searchMore_1z06z_53 ._searchTypeItem_1z06z_99{box-sizing:border-box;margin-top:.26667rem;height:.85333rem;line-height:.85333rem;background:#f6f6f6;border:.02667rem solid #f6f6f6;border-radius:.42667rem;font-size:.34667rem;color:#333;padding:0 .18667rem;text-align:center}._searchMore_1z06z_53 ._searchTypeItem_1z06z_99._is-active_1z06z_136{background:#fff5f2;border:.02667rem solid #ffb097;color:#f67146}._searchPreview_1z06z_141{margin:0 .34667rem;padding-bottom:.32rem;padding-top:.32rem;white-space:nowrap;overflow-y:auto}._searchPreview_1z06z_141 ._searchPreviewItem_1z06z_148{display:inline-flex;align-items:center;line-height:.74667rem;background:#f6f6f6;border-radius:.42667rem;margin-right:.21333rem;padding:.02667rem .26667rem 0;font-size:.34667rem;color:#333}._searchPreview_1z06z_141 ._searchPreviewItem_1z06z_148:last-child{margin-right:0}._searchPreview_1z06z_141 ._searchPreviewItem_1z06z_148 ._cross_1z06z_162{font-size:.21333rem;margin-left:.16rem;color:#aaa}\n",document.head.appendChild(s),System.register(["./index-legacy.c1f63540.js","./index-legacy.7e71b67e.js","./isBetween-legacy.1f391f06.js","./index-legacy.4596d3ae.js","./icon_teacher-legacy.07765f44.js","./index-legacy.ec5d708a.js","./index-legacy.7929dd9f.js","./index-legacy.02ac8dff.js","./index-legacy.3d6462c3.js","./index-legacy.2318e5fa.js","./index-legacy.8a8e9c42.js","./index-legacy.45d07924.js","./index-legacy.aa9b4ef8.js","./use-tab-status-legacy.77a01b2b.js","./index-legacy.49ab1c78.js","./index-legacy.6603017a.js","./utils-legacy.270b3ede.js","./Picker-legacy.5a9c13b9.js"],(function(r){"use strict";var t,o,s,i,u,l,_,m,d,p,h,f,z,v,g,y,T,w,b,x,M,P,Y,j,I,k,O,D,N;return{setters:[function(e){t=e.d,o=e.R,s=e.g,i=e.ag,u=e.r,l=e.ai,_=e.$,m=e.m,d=e.o,p=e.c,h=e.aj,f=e.F,z=e.q,v=e.B,g=e.a5,y=e.ak,T=e.al},function(e){w=e.O},function(e){b=e.i},function(e){x=e.O},function(e){M=e.i},function(e){P=e.c},function(e){Y=e.C},function(e){j=e.D,I=e.a},function(e){k=e.L},function(e){O=e.C},function(e){D=e.C},function(e){N=e.I},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var G={coursewareGroup:"_coursewareGroup_1z06z_1",top1:"_top1_1z06z_9",top2:"_top2_1z06z_14",userLogo:"_userLogo_1z06z_19",courseName:"_courseName_1z06z_26",userName:"_userName_1z06z_27",courseRange:"_courseRange_1z06z_36",courseRangeTips:"_courseRangeTips_1z06z_46",exerciseRecord:"_exerciseRecord_1z06z_50",searchMore:"_searchMore_1z06z_53",searchContainer:"_searchContainer_1z06z_70",searchMoreGroup:"_searchMoreGroup_1z06z_78",searchTitle:"_searchTitle_1z06z_84",searchTypeGroup:"_searchTypeGroup_1z06z_92",searchTypeFlex:"_searchTypeFlex_1z06z_99",searchTypeItem:"_searchTypeItem_1z06z_99",searchTypeFlex1:"_searchTypeFlex1_1z06z_102",searchTypeFlex2:"_searchTypeFlex2_1z06z_114",searchTypeItemLine:"_searchTypeItemLine_1z06z_117","is-active":"_is-active_1z06z_136",searchPreview:"_searchPreview_1z06z_141",searchPreviewItem:"_searchPreviewItem_1z06z_148",cross:"_cross_1z06z_162"};l.extend(b);r("default",t({name:"exercise-record",setup:function(){var r=o(s.platformApi);i();var t=u({showSearchStatus:!0,showPopoverTime:!1,actions:[],subjects:[]}),b=u({startTime:l().day(1).format("YYYY-MM-DD"),endTime:l().day(7).format("YYYY-MM-DD"),orchestraId:"",orchestraName:"",courseType:"",courseTypeName:"",coursewareErr:null,coursewareErrName:"",keyword:"",page:1,rows:20}),C=o(!1),E=o(!1),R=o(!1),S=o(!0),F=o([]),L=function(){var t=c(regeneratorRuntime.mark((function t(){var o,c,s,i,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,C.value&&(b.page=1,F.value=[],C.value=!1),o=b.endTime,c=b.startTime,s=n(b,e),t.next=5,m.post("".concat(r.value,"/courseSchedule/coursewareErrPage"),{data:a(a({},s),{},{endTime:o+" 23:59:59",startTime:c+" 00:00:00"})});case 5:if(i=t.sent,!(F.value.length>0&&1===i.data.pages)){t.next=8;break}return t.abrupt("return");case 8:F.value=F.value.concat(i.data.rows||[]),R.value=i.data.current>=i.data.pages,S.value=F.value.length>0,b.page=i.data.current+1,E.value=!1,t.next=21;break;case 15:t.prev=15,t.t0=t.catch(0),u=t.t0.message,d(u),S.value=!1,R.value=!0;case 21:case"end":return t.stop()}}),t,null,[[0,15]])})));return function(){return t.apply(this,arguments)}}();_((function(){L(),H()}));var H=function(){var e=c(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.post("".concat(r.value,"/orchestra/page"),{data:{page:1,rows:9999,status:"DONE"}});case 3:a=e.sent,t.actions=a.data.rows.map((function(e){return{name:e.name,value:e.id}})),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),n=e.t0.message,d(n);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),U=function(){R.value=!1,E.value=!0,L()},A=function(e){return e.length>11?e.substring(0,6)+"..."+e.substring(e.length-5,e.length):e},B=function(e){if(e){var r=Math.floor(e/60),a=e%60;return(r>=10?r:"0"+r)+":"+(a>=10?a:"0"+a)}return"00:00"},V=o(),q=o(),W=function(){var e;b.startTime=l().day(1).format("YYYY-MM-DD"),b.endTime=l().day(7).format("YYYY-MM-DD"),b.orchestraId="",b.orchestraName="",b.courseType="",b.courseTypeName="",b.coursewareErr=null,b.coursewareErrName="",null===(e=q.value)||void 0===e||e.toggle(),C.value=!0,L()},$=function(){var e;null===(e=q.value)||void 0===e||e.toggle(),C.value=!0,L()};return function(){var e;return p("div",{class:[S.value?"":"emptyRootContainer",G.exerciseRecord]},[p(w,{position:"top",background:"#F8F8F8",onGetHeight:function(e){document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[p(h,{border:!1},{right:function(){return p(j,{class:G.searchMore,closeOnClickOverlay:!1,closeOnClickOutside:!1,ref:V},{default:function(){return[p(I,{title:"筛选",modelValue:t.showSearchStatus,"onUpdate:modelValue":function(e){return t.showSearchStatus=e},ref:q},{default:function(){return[p("div",{class:G.searchContainer},[t.actions.length>0&&p(f,null,[p("div",{class:G.searchTitle},[z("乐团")]),p("div",{class:[G.searchTypeGroup,G.searchTypeFlex]},[t.actions.map((function(e){return p("div",{class:[G.searchTypeItem,e.value===b.orchestraId&&G["is-active"]],onClick:function(){return r=e,b.orchestraId=r.value,void(b.orchestraName=r.name);var r}},[A(e.name)])}))])]),p("div",{class:G.searchTitle},[z("时间段")]),p("div",{class:[G.searchTypeGroup,G.searchTypeFlex2]},[p("div",{class:G.searchTypeItem,onClick:function(){return t.showPopoverTime=!0}},[b.startTime]),p("div",{class:G.searchTypeItemLine,onClick:function(){return t.showPopoverTime=!0}},null),p("div",{class:G.searchTypeItem,onClick:function(){return t.showPopoverTime=!0}},[b.endTime])]),p("div",{class:G.searchTitle},[z("课程类型")]),p("div",{class:[G.searchTypeGroup,G.searchTypeFlex1]},[Object.keys(P).map((function(e){return p("div",{class:[G.searchTypeItem,e===b.courseType&&G["is-active"]],onClick:function(){var r;r={name:P[e],value:e},b.courseType=r.value,b.courseTypeName=r.name}},[P[e]])}))]),p("div",{class:G.searchTitle},[z("课件使用状态")]),p("div",{class:[G.searchTypeGroup,G.searchTypeFlex]},[[{name:"正常",value:!1},{name:"异常",value:!0}].map((function(e){return p("div",{class:[G.searchTypeItem,b.coursewareErr===e.value&&G["is-active"]],onClick:function(){return r=e,console.log(r,"val"),b.coursewareErr=r.value,void(b.coursewareErrName=r.name);var r}},[e.name])}))])]),p("div",{class:[G.searchMoreGroup,"van-hairline--top"]},[p(v,{type:"default",block:!0,round:!0,onClick:W},{default:function(){return[z("重置")]}}),p(v,{type:"primary",block:!0,round:!0,onClick:$},{default:function(){return[z("查询")]}})])]}})]}})}}),p("div",{style:{backgroundColor:"#fff"}},[p("div",{class:G.searchPreview},[p("div",{class:G.searchPreviewItem,onClick:function(){}},[b.startTime,z("~"),b.endTime]),b.orchestraId&&p("div",{class:G.searchPreviewItem},[A(b.orchestraName),p(g,{name:"cross",class:G.cross,onClick:function(e){b.orchestraId="",b.orchestraName="",e.stopPropagation(),C.value=!0,L()}},null)]),b.courseType&&p("div",{class:G.searchPreviewItem},[b.courseTypeName,p(g,{name:"cross",class:G.cross,onClick:function(e){b.courseType="",b.courseTypeName="",e.stopPropagation(),C.value=!0,L()}},null)]),null!=b.coursewareErr&&p("div",{class:G.searchPreviewItem},[b.coursewareErrName,p(g,{name:"cross",class:G.cross,onClick:function(e){b.coursewareErr=null,b.coursewareErrName="",e.stopPropagation(),C.value=!0,L()}},null)])])])]}}),S.value?p(x,{modelValue:C.value,"onUpdate:modelValue":function(e){return C.value=e},onRefresh:U,style:{minHeight:"calc(100vh - var(--header-height))"}},{default:function(){return[p(k,{"loading-text":" ",finished:R.value,style:{paddingTop:"12px"},"finished-text":" ",immediateCheck:!1,onLoad:L},(r=e=F.value.map((function(e){return p(O,{inset:!0,class:G.coursewareGroup},{default:function(){return[p(D,{class:G.top1},{title:function(){return p(f,null,[l(e.startTime).format("YYYY-MM-DD HH:mm"),z("~"),l(e.endTime).format("HH:mm")])},value:function(){return p(f,null,[A(e.orchestraName)])}}),p(D,{class:G.top2,center:!0},{icon:function(){return p(N,{class:G.userLogo,src:e.teacherAvatar||M,fit:"cover"},null)},title:function(){return p("div",{class:G.userInfo},[p("p",{class:[G.userName,"van-ellipsis"]},[e.teacherName]),p("p",{class:[G.courseName,"van-ellipsis"]},[["INSTRUMENTAL_ENSEMBLE","EUPHONIUM_SINGLE"].includes(e.type)?P[e.type]:P[e.type]+"单技课"])])},value:function(){return p("div",{class:G.courseCount},[p("p",{class:G.courseRange},[p("span",{style:{color:e.coursewarePlayTime>=e.adviseStudyTimeSecond?"#333":"#f44541"}},[B(e.coursewarePlayTime)]),z("/"),B(e.adviseStudyTimeSecond)]),p("p",{class:G.courseRangeTips},[z("使用时长/标准时长")])])}})]}})})),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!T(r)?e:{default:function(){return[e]}}))];var r}}):p(y,{tips:"暂无课件记录"},null),p(Y,{show:t.showPopoverTime,"onUpdate:show":function(e){return t.showPopoverTime=e},firstDayOfWeek:1,showConfirm:!1,type:"range",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[l(b.startTime).toDate(),l(b.endTime).toDate()],style:{height:"70%"},onSelect:function(e){if(b.startTime="",b.endTime="",!l(e[0]).isBetween(l(b.startTime),l(b.endTime))){var r=l(e[0]).day();0===r?(b.startTime=l(e[0]).subtract(6,"day").format("YYYY-MM-DD"),b.endTime=l(e[0]).format("YYYY-MM-DD")):1===r?(b.startTime=l(e[0]).format("YYYY-MM-DD"),b.endTime=l(e[0]).add(6,"day").format("YYYY-MM-DD")):(b.startTime=l(e[0]).subtract(r-1,"day").format("YYYY-MM-DD"),b.endTime=l(e[0]).add(7-r,"day").format("YYYY-MM-DD"))}t.showPopoverTime=!1}},null)])}}}))}}}))}();
|