!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;a0&&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)]}})]}})])}}}))}}}))}();