1 |
- !function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function t(t){for(var a=1;a<arguments.length;a++){var n=null!=arguments[a]?arguments[a]:{};a%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 a(e,t,r,a,n,o,i){try{var s=e[o](i),c=s.value}catch(u){return void r(u)}s.done?t(c):Promise.resolve(c).then(a,n)}function n(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function s(e){a(i,n,o,s,c,"next",e)}function c(e){a(i,n,o,s,c,"throw",e)}s(void 0)}))}}var o=document.createElement("style");o.innerHTML='._gridContainer_1dfkx_1{margin:.32rem .34667rem;background:#ffffff;border-radius:.26667rem;overflow:hidden}._gridContainer_1dfkx_1 ._title_1dfkx_7{font-size:.64rem;font-weight:700;color:#333}._gridContainer_1dfkx_1 ._title_1dfkx_7 i{font-style:normal;font-size:.32rem;color:#333}._gridContainer_1dfkx_1 ._title_1dfkx_7 span{font-family:DINA;font-family:DINAlternate-Bold,DINAlternate}._gridContainer_1dfkx_1 ._red_1dfkx_21{color:#f67146}._gridContainer_1dfkx_1 ._name_1dfkx_24{padding-top:.21333rem;font-size:.32rem;color:#777}._gridClass_1dfkx_29 ._title_1dfkx_7{font-size:.58667rem;font-family:DINA;font-family:DINAlternate-Bold,DINAlternate}._gridClass_1dfkx_29 ._teacher_1dfkx_34{font-size:.42667rem;line-height:.64rem;max-width:2.53333rem;font-size:500}._gridClass_1dfkx_29 ._className_1dfkx_40{padding:.45333rem .4rem 0;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._gridClass_1dfkx_29 ._className_1dfkx_40 ._line_1dfkx_47{display:inline-block;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.08rem;margin-right:.16rem}._gridClass_1dfkx_29 .van-grid-item:after{content:" ";position:absolute;top:50%;right:0;margin-top:-.26667rem;width:.02667rem;height:.53333rem;background:#eaeaea;border-radius:.02667rem}._gridClass_1dfkx_29 .van-grid-item:last-child:after{display:none}._informationBottom_1dfkx_69 .van-sticky{position:absolute}._codeContainer_1dfkx_72 ._codeImg_1dfkx_72{width:8.61333rem;height:12.4rem;background:url(./assets/download.d4e802c2.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_1dfkx_72 ._codeImg_1dfkx_72 ._codeContent_1dfkx_79{padding-left:.21333rem}._codeContainer_1dfkx_72 ._codeImg_1dfkx_72 ._codeTitle_1dfkx_82{text-align:center;padding-top:.37333rem;font-size:.64rem;font-weight:700;color:#fff;text-shadow:.02667rem .02667rem .18667rem #f4672a}._codeContainer_1dfkx_72 ._codeImg_1dfkx_72 ._codeName_1dfkx_90{padding:1.06667rem .32rem 0;font-size:.48rem;font-weight:600;color:#fff;text-align:center}._codeContainer_1dfkx_72 ._codeImg_1dfkx_72 ._codeQr_1dfkx_97{margin:.61333rem auto 0;width:6.42667rem;height:6.42667rem;background:linear-gradient(180deg,#ffffff 0%,#ffffff 100%);border-radius:.29333rem;overflow:hidden}._codeContainer_1dfkx_72 ._codeImg_1dfkx_72 ._codeQr_1dfkx_97 img{width:100%;height:100%}._codeContainer_1dfkx_72 ._codeImg_1dfkx_72 ._codeBtnText_1dfkx_109{margin:.4rem auto 0;display:inline-block;background:linear-gradient(135deg,#ff9c63 0%,#ff7144 100%);border-radius:.48rem;padding:.16rem .42667rem;font-size:.42667rem;font-weight:600;color:#fff}._codeContainer_1dfkx_72 ._codeImg_1dfkx_72 ._codeTips_1dfkx_119{padding-top:.26667rem;font-size:.34667rem;font-weight:600;color:#f16437;line-height:.48rem;text-align:center}._codeContainer_1dfkx_72 ._close_1dfkx_127{position:absolute;top:.32rem;right:.4rem}._codeContainer_1dfkx_72 ._codeBottom_1dfkx_132{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_1dfkx_72 ._title_1dfkx_7{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_1dfkx_72 ._title_1dfkx_7 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_1dfkx_72 ._shareImg_1dfkx_154{width:1.25333rem;height:1.25333rem}._codeContainer_1dfkx_72 ._shareText_1dfkx_158{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}._gridContainer_1s15u_1{margin:.32rem .34667rem;background:#ffffff;border-radius:.26667rem;overflow:hidden}._gridContainer_1s15u_1 ._title_1s15u_7{font-size:.69333rem;font-weight:700;color:#333}._gridContainer_1s15u_1 ._title_1s15u_7 span{font-size:.32rem;color:#333}._gridContainer_1s15u_1 ._red_1s15u_16{color:#f67146}._gridContainer_1s15u_1 ._name_1s15u_19{padding-top:.21333rem;font-size:.32rem;color:#777}._gridClass_1s15u_24 ._title_1s15u_7{font-size:.64rem}._gridClass_1s15u_24 ._teacher_1s15u_27{font-size:.48rem;line-height:.64rem}._gridClass_1s15u_24 ._className_1s15u_31{padding:.45333rem .4rem 0;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._gridClass_1s15u_24 ._className_1s15u_31 ._line_1s15u_38{display:inline-block;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.08rem;margin-right:.16rem}._gridClass_1s15u_24 ._gridCell_1s15u_46{padding-top:.4rem;padding-bottom:.42667rem}._gridClass_1s15u_24 ._img_1s15u_50{width:1.2rem;height:1.2rem;border-radius:50%;overflow:hidden}._gridClass_1s15u_24 ._class_1s15u_31{font-size:.53333rem;font-weight:700;color:#f67146;line-height:.64rem;font-family:DINA}._gridClass_1s15u_24 ._courseware_1s15u_63{font-size:.42667rem;font-weight:600;color:#333;line-height:.64rem}._gridClass_1s15u_24 ._teacherDesc_1s15u_69{padding-top:.16rem;font-size:.32rem;color:#777;line-height:.45333rem}._gridClass_1s15u_24 .van-cell__title{flex:0 auto;padding-left:.53333rem;min-width:1.86667rem}._gridClass_1s15u_24 .van-cell__value{text-align:left}._orchestraDetail_xtf76_1{--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}\n',document.head.appendChild(o),System.register(["./index-legacy.48c8d62c.js","./index-legacy.f3037807.js","./index-legacy.8cf5f94f.js","./countUp.min-legacy.52e432a0.js","./isSameOrBefore-legacy.e0108432.js","./index-legacy.3373b1d3.js","./index-legacy.8429fc95.js","./index-legacy.04f465c8.js","./index-legacy.a53f47a7.js","./icon_teacher-legacy.07765f44.js","./index-legacy.087e0425.js","./index-legacy.0e0de364.js","./index-legacy.ef66d7bb.js","./index-legacy.ac553194.js","./index-legacy.b7e8815a.js","./use-tab-status-legacy.6949b1de.js","./utils-legacy.60f652b8.js","./index-legacy.384d768f.js","./index-legacy.71047e87.js","./index-legacy.a2ac81dd.js"],(function(e){"use strict";var r,a,o,i,s,c,u,d,l,m,f,_,p,h,g,v,x,Y,y,b,k,w,D,T,C,M,S,H,N,j,I,P;return{setters:[function(e){e.by,r=e.d,a=e.y,o=e.aV,i=e.ag,s=e.r,c=e.ah,u=e.$,d=e.c,l=e.q,m=e.ai,f=e.B,_=e.P,p=e.aj,h=e.F,g=e.ak,v=e.m,x=e._,Y=e.R},function(e){y=e.O},function(e){b=e.O},function(e){k=e.C},function(e){w=e.i},function(e){D=e.O},function(e){T=e.G,C=e.a},function(e){M=e.L},function(e){S=e.D},function(e){H=e.i},function(e){N=e.C},function(e){j=e.I},function(e){I=e.T,P=e.a},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var O={gridContainer:"_gridContainer_1dfkx_1",title:"_title_1dfkx_7",red:"_red_1dfkx_21",name:"_name_1dfkx_24",gridClass:"_gridClass_1dfkx_29",teacher:"_teacher_1dfkx_34",className:"_className_1dfkx_40",line:"_line_1dfkx_47",informationBottom:"_informationBottom_1dfkx_69",codeContainer:"_codeContainer_1dfkx_72",codeImg:"_codeImg_1dfkx_72",codeContent:"_codeContent_1dfkx_79",codeTitle:"_codeTitle_1dfkx_82",codeName:"_codeName_1dfkx_90",codeQr:"_codeQr_1dfkx_97",codeBtnText:"_codeBtnText_1dfkx_109",codeTips:"_codeTips_1dfkx_119",close:"_close_1dfkx_127",codeBottom:"_codeBottom_1dfkx_132",shareImg:"_shareImg_1dfkx_154",shareText:"_shareText_1dfkx_158"},z={exports:{}};z.exports=function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}};var R=z.exports;c.extend(w,R);var B=r({name:"detail-information",props:{termTimes:{type:Object,default:{}}},setup:function(e){var r=a((function(){return e.termTimes.start})),Y=a((function(){return e.termTimes.end})),y=o(),w=i(),H=s({timeShow:!1,currentData:[c().year()+""],actionText:"上学期",actionType:"up",actionTerm:[{name:"上学期",selected:!0,value:"up"},{name:"下学期",value:"down"}],oPopover:!1,check:[],checkboxRefs:[],isLoading:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},bottomHeight:0,params:{startTime:c(c().year()+r.value).format("YYYY-MM-DD HH:mm:ss"),endTime:c(c().year()+Y.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),page:1,rows:20},statistics:{},orchestraInfo:{}}),N=function(e){H.actionTerm.forEach((function(e){e.selected=!1})),e.selected=!0,H.actionText=e.name,H.actionType=e.value,"up"===e.value?(H.params.startTime=c(Number(H.currentData[0])+r.value).format("YYYY-MM-DD HH:mm:ss"),H.params.endTime=c(Number(H.currentData[0])+Y.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")):"down"===e.value&&(H.params.startTime=c(Number(H.currentData[0])+Y.value).add(1,"year").format("YYYY-MM-DD HH:mm:ss"),H.params.endTime=c(Number(H.currentData[0])+r.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),H.oPopover=!1,R()},j=function(e){H.currentData=e.selectedValues;var t=Number(H.currentData[0])+1;"up"===H.actionType?(H.params.startTime=c(t+r.value).format("YYYY-MM-DD HH:mm:ss"),H.params.endTime=c(t+Y.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")):"down"===H.actionType&&(H.params.startTime=c(t+Y.value).format("YYYY-MM-DD HH:mm:ss"),H.params.endTime=c(t+r.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),H.timeShow=!1,R()},I=function(){var e=n(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.get("/api-school/orchestra/detail/"+y.query.id);case 3:t=e.sent,r=t.data,H.orchestraInfo=r||{},e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),P=function(){var e=n(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.post("/api-school/school/schoolSummaryStat",{data:{orchestraId:y.query.id}});case 3:t=e.sent,r=t.data,H.statistics=r||{},B(),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=n(regeneratorRuntime.mark((function e(){var r,a,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!H.isLoading){e.next=3;break}return e.abrupt("return");case 3:return H.isLoading=!0,e.next=6,v.post("/api-school/classGroup/page",{data:t(t({},H.params),{},{orchestraId:y.query.id})});case 6:if(r=e.sent,H.listState.loading=!1,a=r.data||{},!(H.list.length>0&&1===a.current)){e.next=11;break}return e.abrupt("return");case 11:n=a.rows||[],H.list=H.list.concat(n),H.listState.finished=a.current>=a.pages,H.params.page=a.current+1,H.listState.dataShow=H.list.length>0,H.isLoading=!1,e.next=24;break;case 19:e.prev=19,e.t0=e.catch(0),H.listState.dataShow=!1,H.listState.finished=!0,H.isLoading=!1;case 24:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),R=function(){H.params.page=1,H.list=[],H.listState.dataShow=!0,H.listState.loading=!1,H.listState.finished=!1,z()},B=function(){x((function(){var e=H.statistics;new k("currentStudentNum",e.currentStudent||0).start(),new k("time1",100*e.attendanceRate||0).start(),new k("time2",100*e.homeworkSubmissionRate||0).start(),new k("time3",100*e.practicePassRate||0).start()}))};return u(n(regeneratorRuntime.mark((function e(){var t,a,n,o,i,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c(c().year()+r.value).format("YYYY-MM-DD"),a=c(c().year()+Y.value).format("YYYY-MM-DD"),n=c().format("YYYY-MM-DD"),console.log(n,t),o=c(n).isBefore(c(t)),i=c(n).isBefore(c(a)),s=c().year(),o&&i&&(H.currentData=[s-1+""],H.params.startTime=c(s-1+r.value).format("YYYY-MM-DD HH:mm:ss"),H.params.endTime=c(c().year()+Y.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),o||i||(H.params.startTime=c(c().year()+r.value).format("YYYY-MM-DD HH:mm:ss"),H.params.endTime=c(c().year()+Y.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),o&&!i&&(H.params.startTime=c(s+Y.value).format("YYYY-MM-DD HH:mm:ss"),H.params.endTime=c(s+r.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),H.actionTerm.forEach((function(e){"down"===e.value?(e.color="var(--van-primary-color)",H.actionText=e.text,H.actionType=e.value):e.color=""})),H.currentData=[s-1+""],H.actionText="下学期",H.actionType="down",H.actionTerm.forEach((function(e){"down"===e.value?e.selected=!0:e.selected=!1}))),e.next=12,I();case 12:return e.next=14,P();case 14:return e.next=16,z();case 16:case"end":return e.stop()}}),e)})))),function(){var e,t;return d(h,null,[d("div",{class:["searchGroup","van-hairline--top"]},[d("div",{class:["searchItem",H.timeShow?"searchItem-active":""],onClick:function(){return H.timeShow=!0}},[H.currentData[0],l("年 "),d("i",{class:"arrow"},null)]),d("div",{class:["searchItem",H.oPopover?"searchItem-active":""],onClick:function(){return H.oPopover=!0}},[H.actionText,l(" "),d("i",{class:"arrow"},null)])]),d("div",{style:{height:"calc(100vh - var(--header-height) - var(--van-tabs-line-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[d(T,{border:!1,class:O.gridContainer},{default:function(){return[d(C,null,{default:function(){return[d("p",{class:[O.title,O.red]},[d("span",{id:"currentStudentNum"},[H.statistics.studentNum||0]),d("i",null,[l(" 名")])]),d("p",{class:O.name},[l("在读学生")])]}}),d(C,null,{default:function(){return[d("p",{class:[O.title,O.red]},[d("span",{id:"time1"},[H.statistics.attendanceRate||0]),l("%")]),d("p",{class:O.name},[l("到课率")])]}}),d(C,null,{default:function(){return[d("p",{class:[O.title,O.red]},[d("span",{id:"time2"},[H.statistics.homeworkRate||0]),l("%")]),d("p",{class:O.name},[l("作业提交率")])]}}),d(C,null,{default:function(){return[d("p",{class:[O.title,O.red]},[d("span",{id:"time3"},[H.statistics.homeworkQualifiedRate||0]),l("%")]),d("p",{class:O.name},[l("练习合格率")])]}})]}}),H.listState.dataShow?d(M,{finished:H.listState.finished,finishedText:" ",class:[O.liveList],onLoad:z,immediateCheck:!1},(t=e=H.list.map((function(e){return d("div",{class:[O.gridContainer,O.gridClass]},[d("div",{class:O.className},[d("i",{class:O.line},null),e.name]),d(T,{border:!1,columnNum:3},{default:function(){return[d(C,null,{default:function(){return[d("p",{class:O.title},[e.preStudentNum||0]),d("p",{class:O.name},[l("在读学生")])]}}),d(C,null,{default:function(){return[d("p",{class:[O.title,O.teacher,"van-ellipsis"]},[e.teacherName||"-"]),d("p",{class:O.name},[l("伴学指导")])]}}),d(C,null,{default:function(){return[d("p",{class:O.title},[e.completeCourseScheduleNum||0,l("/"),e.courseScheduleNum||0]),d("p",{class:O.name},[l("课时")])]}})]}})])})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!g(t)?e:{default:function(){return[e]}})):d(m,{btnStatus:!1,tips:"暂无班级"},null),H.orchestraInfo.canSignUp&&d(b,{position:"bottom",class:O.informationBottom,onGetHeight:function(e){H.bottomHeight=e}},{default:function(){return[d("div",{class:"btnGroup"},[d(f,{round:!0,block:!0,type:"primary",onClick:function(){w.push({path:"save-share-image",query:{type:"orchestra",id:y.query.id}})}},{default:function(){return[l("报名二维码")]}})])]}})]),d(D,{show:H.oPopover,"onUpdate:show":function(e){return H.oPopover=e},actions:H.actionTerm,onSelect:N,teleport:"body"},null),d(_,{show:H.timeShow,"onUpdate:show":function(e){return H.timeShow=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:function(){return[d(S,{modelValue:H.currentData,"onUpdate:modelValue":function(e){return H.currentData=e},columnsType:["year"],formatter:p,onConfirm:j,onCancel:function(){return H.timeShow=!1}},null)]}})])}}}),L={gridContainer:"_gridContainer_1s15u_1",title:"_title_1s15u_7",red:"_red_1s15u_16",name:"_name_1s15u_19",gridClass:"_gridClass_1s15u_24",teacher:"_teacher_1s15u_27",className:"_className_1s15u_31",line:"_line_1s15u_38",gridCell:"_gridCell_1s15u_46",img:"_img_1s15u_50",class:"_class_1s15u_31",courseware:"_courseware_1s15u_63",teacherDesc:"_teacherDesc_1s15u_69"};c.extend(w,R);var E=r({name:"plan",props:{termTimes:{type:Object,default:{}},height:{type:[String,Number],default:0}},setup:function(e){var r=a((function(){return e.termTimes.start})),i=a((function(){return e.termTimes.end})),f=o(),x=s({timeShow:!1,currentData:[c().year()+""],showPopover:!1,actionText:"上学期",actionType:"up",actionTerm:[{name:"上学期",selected:!0,value:"up"},{name:"下学期",value:"down"}],oPopover:!1,check:[],checkboxRefs:[],showQrcode:!1,isLoading:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{startTime:c(c().year()+r.value).format("YYYY-MM-DD HH:mm:ss"),endTime:c(c().year()+i.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),page:1,rows:20}}),Y=function(e){x.actionTerm.forEach((function(e){e.selected=!1})),e.selected=!0,x.actionText=e.name,x.actionType=e.value,"up"===e.value?(x.params.startTime=c(Number(x.currentData[0])+r.value).format("YYYY-MM-DD HH:mm:ss"),x.params.endTime=c(Number(x.currentData[0])+i.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")):"down"===e.value&&(x.params.startTime=c(Number(x.currentData[0])+i.value).add(1,"year").format("YYYY-MM-DD HH:mm:ss"),x.params.endTime=c(Number(x.currentData[0])+r.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),x.oPopover=!1,k()},y=function(e){x.currentData=e.selectedValues;var t=Number(x.currentData[0])+1;"up"===x.actionType?(x.params.startTime=c(t+r.value).format("YYYY-MM-DD HH:mm:ss"),x.params.endTime=c(t+i.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")):"down"===x.actionType&&(x.params.startTime=c(t+i.value).format("YYYY-MM-DD HH:mm:ss"),x.params.endTime=c(t+r.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),x.timeShow=!1,k()},b=function(){var e=n(regeneratorRuntime.mark((function e(){var r,a,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!x.isLoading){e.next=3;break}return e.abrupt("return");case 3:return x.isLoading=!0,e.next=6,v.post("/api-school/classGroup/page",{data:t(t({},x.params),{},{orchestraId:f.query.id})});case 6:if(r=e.sent,x.listState.loading=!1,a=r.data||{},!(x.list.length>0&&1===a.current)){e.next=11;break}return e.abrupt("return");case 11:n=a.rows||[],x.list=x.list.concat(n||[]),x.listState.finished=a.current>=a.pages,x.params.page=a.current+1,x.listState.dataShow=x.list.length>0,x.isLoading=!1,e.next=24;break;case 19:e.prev=19,e.t0=e.catch(0),x.listState.dataShow=!1,x.listState.finished=!0,x.isLoading=!1;case 24:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),k=function(){x.params.page=1,x.list=[],x.listState.dataShow=!0,x.listState.loading=!1,x.listState.finished=!1,b()};return u(n(regeneratorRuntime.mark((function e(){var t,a,n,o,s,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c(c().year()+r.value).format("YYYY-MM-DD"),a=c(c().year()+i.value).format("YYYY-MM-DD"),n=c().format("YYYY-MM-DD"),console.log(n,t),o=c(n).isBefore(c(t)),s=c(n).isBefore(c(a)),u=c().year(),o&&s&&(x.currentData=[u-1+""],x.params.startTime=c(u-1+r.value).format("YYYY-MM-DD HH:mm:ss"),x.params.endTime=c(c().year()+i.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),o||s||(x.params.startTime=c(c().year()+r.value).format("YYYY-MM-DD HH:mm:ss"),x.params.endTime=c(c().year()+i.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),o&&!s&&(x.params.startTime=c(u+i.value).format("YYYY-MM-DD HH:mm:ss"),x.params.endTime=c(u+r.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),x.actionTerm.forEach((function(e){"down"===e.value?(e.color="var(--van-primary-color)",x.actionText=e.text,x.actionType=e.value):e.color=""})),x.currentData=[u-1+""],x.actionText="下学期",x.actionType="down",x.actionTerm.forEach((function(e){"down"===e.value?e.selected=!0:e.selected=!1}))),e.next=12,b();case 12:case"end":return e.stop()}}),e)})))),function(){var e,t;return d("div",null,[d("div",{class:["searchGroup","van-hairline--top"]},[d("div",{class:["searchItem",x.timeShow?"searchItem-active":""],onClick:function(){return x.timeShow=!0}},[x.currentData[0],l("年 "),d("i",{class:"arrow"},null)]),d("div",{class:["searchItem",x.oPopover?"searchItem-active":""],onClick:function(){return x.oPopover=!0}},[x.actionText,l(" "),d("i",{class:"arrow"},null)])]),d("div",{style:"height: calc(100vh - var(--header-height) - var(--van-tabs-line-height) - 1.17333rem); overflow: hidden; overflow-y: auto;"},[x.listState.dataShow?d(M,{finished:x.listState.finished,finishedText:" ",class:[L.liveList],onLoad:b,immediateCheck:!1},(t=e=x.list.map((function(e){return d("div",{class:[L.gridContainer,L.gridClass]},[d("div",{class:L.className},[d("i",{class:L.line},null),e.name]),d(N,{center:!0,class:L.gridCell},{icon:function(){return d(j,{class:L.img,src:e.teacherAvatar||H,fit:"cover"},null)},title:function(){return d(h,null,[d("p",{class:L.class},[e.completeCourseScheduleNum||0,l("/"),e.courseScheduleNum||0]),d("p",{class:L.teacherDesc},[l("课时")])])},value:function(){return d(h,null,[d("p",{class:L.courseware},[e.newestLessonPlanDetailName||"-"]),d("p",{class:L.teacherDesc},[l("最新课件")])])}})])})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!g(t)?e:{default:function(){return[e]}})):d(m,{btnStatus:!1,tips:"暂无班级"},null)]),d(D,{show:x.oPopover,"onUpdate:show":function(e){return x.oPopover=e},actions:x.actionTerm,onSelect:Y,teleport:"body"},null),d(_,{show:x.timeShow,"onUpdate:show":function(e){return x.timeShow=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:function(){return[d(S,{modelValue:x.currentData,"onUpdate:modelValue":function(e){return x.currentData=e},columnsType:["year"],minDate:new Date(2010,0,1),maxDate:new Date(2055,11,31),formatter:p,onConfirm:y,onCancel:function(){return x.timeShow=!1}},null)]}})])}}}),A="_orchestraDetail_xtf76_1";e("default",r({name:"orchestra-detail",setup:function(){var e=sessionStorage.getItem("orchestra-detail-tab"),t=Y(e||"information");sessionStorage.removeItem("orchestra-detail-tab");var r=Y("auto"),a=Y({start:"09-01",end:"03-01"}),o=function(){var e=n(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.get("/api-school/sysParamConfig/queryByParamNameList",{params:{paramNames:"last_term_time,next_term_time"}});case 2:t=e.sent,(t.data||[]).forEach((function(e){"last_term_time"===e.paramName?a.value.start=e.paramValue:"next_term_time"===e.paramName&&(a.value.end=e.paramValue)}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return o(),function(){return d("div",{class:A},[d(b,{position:"top",onGetHeight:function(e){r.value=e,document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[d(y,{border:!1},null)]}}),d(I,{sticky:!0,lineWidth:20,lineHeight:4,active:t.value,"onUpdate:active":function(e){return t.value=e},animated:!0,offsetTop:r.value,swipeable:!0},{default:function(){return[d(P,{title:"乐团信息",name:"information"},{default:function(){return[d(B,{termTimes:a.value},null)]}}),d(P,{title:"训练进度",name:"plan"},{default:function(){return[d(E,{height:r.value,termTimes:a.value},null)]}})]}})])}}}))}}}))}();
|