!function(){function e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function t(t){for(var r=1;r0&&1===r.current)){e.next=11;break}return e.abrupt("return");case 11:n=r.rows||[],H.list=H.list.concat(n),H.listState.finished=r.current>=r.pages,H.params.page=r.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(){y((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 l(n(regeneratorRuntime.mark((function e(){var t,r,n,o,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d(d().year()+a.value).format("YYYY-MM-DD"),r=d(d().year()+i.value).format("YYYY-MM-DD"),n=d().format("YYYY-MM-DD"),console.log(n,t),o=d(n).isBefore(d(t)),s=d(n).isBefore(d(r)),c=d().year(),o&&s&&(H.currentData=[c-1+""],H.params.startTime=d(c-1+a.value).format("YYYY-MM-DD HH:mm:ss"),H.params.endTime=d(d().year()+i.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),o||s||(H.params.startTime=d(d().year()+a.value).format("YYYY-MM-DD HH:mm:ss"),H.params.endTime=d(d().year()+i.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),o&&!s&&(H.params.startTime=d(c+i.value).format("YYYY-MM-DD HH:mm:ss"),H.params.endTime=d(c+a.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=[c-1+""],H.actionText="下学期",H.actionType="up",H.actionTerm.forEach((function(e){"up"===e.value?e.selected=!0:e.selected=!1}))),e.next=12,I();case 12:return e.next=14,O();case 14:return e.next=16,z();case 16:case"end":return e.stop()}}),e)})))),function(){var e,t;return m(v,null,[m("div",{class:["searchGroup","van-hairline--top"]},[m("div",{class:["searchItem",H.timeShow?"searchItem-active":""],onClick:function(){return H.timeShow=!0}},[H.currentData[0],f("年 "),m("i",{class:"arrow"},null)]),m("div",{class:["searchItem",H.oPopover?"searchItem-active":""],onClick:function(){return H.oPopover=!0}},[H.actionText,f(" "),m("i",{class:"arrow"},null)])]),m("div",{style:{height:"calc(100vh - var(--header-height) - var(--van-tabs-line-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[m(T,{border:!1,class:P.gridContainer},{default:function(){return[m(C,null,{default:function(){return[m("p",{class:[P.title,P.red]},[m("span",{id:"currentStudentNum"},[H.statistics.studentNum||0]),m("i",null,[f(" 名")])]),m("p",{class:P.name},[f("在读学生")])]}}),m(C,null,{default:function(){return[m("p",{class:[P.title,P.red]},[m("span",{id:"time1"},[H.statistics.attendanceRate||0]),f("%")]),m("p",{class:P.name},[f("到课率")])]}}),m(C,null,{default:function(){return[m("p",{class:[P.title,P.red]},[m("span",{id:"time2"},[H.statistics.homeworkRate||0]),f("%")]),m("p",{class:P.name},[f("作业提交率")])]}}),m(C,null,{default:function(){return[m("p",{class:[P.title,P.red]},[m("span",{id:"time3"},[H.statistics.homeworkQualifiedRate||0]),f("%")]),m("p",{class:P.name},[f("练习合格率")])]}})]}}),H.listState.dataShow?m(M,{finished:H.listState.finished,finishedText:" ",class:[P.liveList],onLoad:z,immediateCheck:!1},(t=e=H.list.map((function(e){return m("div",{class:[P.gridContainer,P.gridClass]},[m("div",{class:P.className},[m("i",{class:P.line},null),e.name]),m(T,{border:!1,columnNum:3},{default:function(){return[m(C,null,{default:function(){return[m("p",{class:P.title},[e.preStudentNum||0]),m("p",{class:P.name},[f("在读学生")])]}}),m(C,null,{default:function(){return[m("p",{class:[P.title,P.teacher,"van-ellipsis"]},[e.teacherName||"-"]),m("p",{class:P.name},[f("伴学指导")])]}}),m(C,null,{default:function(){return[m("p",{class:P.title},[e.completeCourseScheduleNum||0,f("/"),e.courseScheduleNum||0]),m("p",{class:P.name},[f("课时")])]}})]}})])})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)?e:{default:function(){return[e]}})):m(_,{btnStatus:!1,tips:"暂无班级"},null),H.orchestraInfo.canSignUp&&m(r,{position:"bottom",class:P.informationBottom,onGetHeight:function(e){H.bottomHeight=e}},{default:function(){return[m("div",{class:"btnGroup"},[m(p,{round:!0,block:!0,type:"primary",onClick:function(){D.push({path:"save-share-image",query:{type:"orchestra",id:b.query.id}})}},{default:function(){return[f("报名二维码")]}})])]}})]),m(w,{show:H.oPopover,"onUpdate:show":function(e){return H.oPopover=e},actions:H.actionTerm,onSelect:N,teleport:"body"},null),m(h,{show:H.timeShow,"onUpdate:show":function(e){return H.timeShow=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:function(){return[m(S,{modelValue:H.currentData,"onUpdate:modelValue":function(e){return H.currentData=e},columnsType:["year"],formatter:g,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"};d.extend(D,R);var E=i({name:"plan",props:{termTimes:{type:Object,default:{}},height:{type:[String,Number],default:0}},setup:function(e){var a=o((function(){return e.termTimes.start})),r=o((function(){return e.termTimes.end})),i=s(),c=u({timeShow:!1,currentData:[d().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:d(d().year()+a.value).format("YYYY-MM-DD HH:mm:ss"),endTime:d(d().year()+r.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),page:1,rows:20}}),p=function(e){c.actionTerm.forEach((function(e){e.selected=!1})),e.selected=!0,c.actionText=e.name,c.actionType=e.value,"up"===e.value?(c.params.startTime=d(Number(c.currentData[0])+a.value).format("YYYY-MM-DD HH:mm:ss"),c.params.endTime=d(Number(c.currentData[0])+r.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")):"down"===e.value&&(c.params.startTime=d(Number(c.currentData[0])+r.value).add(1,"year").format("YYYY-MM-DD HH:mm:ss"),c.params.endTime=d(Number(c.currentData[0])+a.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),c.oPopover=!1,k()},y=function(e){c.currentData=e.selectedValues;var t=Number(c.currentData[0])+1;"up"===c.actionType?(c.params.startTime=d(t+a.value).format("YYYY-MM-DD HH:mm:ss"),c.params.endTime=d(t+r.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")):"down"===c.actionType&&(c.params.startTime=d(t+r.value).format("YYYY-MM-DD HH:mm:ss"),c.params.endTime=d(t+a.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),c.timeShow=!1,k()},b=function(){var e=n(regeneratorRuntime.mark((function e(){var a,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!c.isLoading){e.next=3;break}return e.abrupt("return");case 3:return c.isLoading=!0,e.next=6,Y.post("/api-school/classGroup/page",{data:t(t({},c.params),{},{orchestraId:i.query.id})});case 6:if(a=e.sent,c.listState.loading=!1,r=a.data||{},!(c.list.length>0&&1===r.current)){e.next=11;break}return e.abrupt("return");case 11:n=r.rows||[],c.list=c.list.concat(n||[]),c.listState.finished=r.current>=r.pages,c.params.page=r.current+1,c.listState.dataShow=c.list.length>0,c.isLoading=!1,e.next=24;break;case 19:e.prev=19,e.t0=e.catch(0),c.listState.dataShow=!1,c.listState.finished=!0,c.isLoading=!1;case 24:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),k=function(){c.params.page=1,c.list=[],c.listState.dataShow=!0,c.listState.loading=!1,c.listState.finished=!1,b()};return l(n(regeneratorRuntime.mark((function e(){var t,n,i,o,s,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d(d().year()+a.value).format("YYYY-MM-DD HH:mm:ss"),n=d(d().year()+r.value).format("YYYY-MM-DD HH:mm:ss"),i=d().format("YYYY-MM-DD"),o=d(i).isSameOrBefore(d(t)),s=d(i).isSameOrBefore(d(n)),u=d().year(),o&&s&&(c.currentData=[u-1+""],c.params.startTime=d(u-1+a.value).format("YYYY-MM-DD HH:mm:ss"),c.params.endTime=d(d().year()+r.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),o||s||(c.params.startTime=d(d().year()+a.value).format("YYYY-MM-DD HH:mm:ss"),c.params.endTime=d(d().year()+r.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),o&&!s&&(c.params.startTime=d(u+r.value).format("YYYY-MM-DD HH:mm:ss"),c.params.endTime=d(u+a.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),c.actionTerm.forEach((function(e){"down"===e.value?(e.color="var(--van-primary-color)",c.actionText=e.text,c.actionType=e.value):e.color=""})),c.currentData=[u-1+""],c.actionText="下学期",c.actionType="up",c.actionTerm.forEach((function(e){"up"===e.value?e.selected=!0:e.selected=!1}))),e.next=11,b();case 11:case"end":return e.stop()}}),e)})))),function(){var e,t;return m("div",null,[m("div",{class:["searchGroup","van-hairline--top"]},[m("div",{class:["searchItem",c.timeShow?"searchItem-active":""],onClick:function(){return c.timeShow=!0}},[c.currentData[0],f("年 "),m("i",{class:"arrow"},null)]),m("div",{class:["searchItem",c.oPopover?"searchItem-active":""],onClick:function(){return c.oPopover=!0}},[c.actionText,f(" "),m("i",{class:"arrow"},null)])]),m("div",{style:"height: calc(100vh - var(--header-height) - var(--van-tabs-line-height) - 1.17333rem); overflow: hidden; overflow-y: auto;"},[c.listState.dataShow?m(M,{finished:c.listState.finished,finishedText:" ",class:[L.liveList],onLoad:b,immediateCheck:!1},(t=e=c.list.map((function(e){return m("div",{class:[L.gridContainer,L.gridClass]},[m("div",{class:L.className},[m("i",{class:L.line},null),e.name]),m(N,{center:!0,class:L.gridCell},{icon:function(){return m(j,{class:L.img,src:e.teacherAvatar||H,fit:"cover"},null)},title:function(){return m(v,null,[m("p",{class:L.class},[e.completeCourseScheduleNum||0,f("/"),e.courseScheduleNum||0]),m("p",{class:L.teacherDesc},[f("课时")])])},value:function(){return m(v,null,[m("p",{class:L.courseware},[e.newestLessonPlanDetailName||"-"]),m("p",{class:L.teacherDesc},[f("最新课件")])])}})])})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)?e:{default:function(){return[e]}})):m(_,{btnStatus:!1,tips:"暂无班级"},null)]),m(w,{show:c.oPopover,"onUpdate:show":function(e){return c.oPopover=e},actions:c.actionTerm,onSelect:p,teleport:"body"},null),m(h,{show:c.timeShow,"onUpdate:show":function(e){return c.timeShow=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:function(){return[m(S,{modelValue:c.currentData,"onUpdate:modelValue":function(e){return c.currentData=e},columnsType:["year"],minDate:new Date(2010,0,1),maxDate:new Date(2055,11,31),formatter:g,onConfirm:y,onCancel:function(){return c.timeShow=!1}},null)]}})])}}}),A="_orchestraDetail_xtf76_1";e("default",i({name:"orchestra-detail",setup:function(){var e=sessionStorage.getItem("orchestra-detail-tab"),t=b(e||"information");sessionStorage.removeItem("orchestra-detail-tab");var i=b("auto"),o=b({start:"09-01",end:"03-01"}),s=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,Y.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?o.value.start=e.paramValue:"next_term_time"===e.paramName&&(o.value.end=e.paramValue)}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return s(),function(){return m("div",{class:A},[m(r,{position:"top",onGetHeight:function(e){i.value=e,document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[m(a,{border:!1},null)]}}),m(I,{sticky:!0,lineWidth:20,lineHeight:4,active:t.value,"onUpdate:active":function(e){return t.value=e},animated:!0,offsetTop:i.value,swipeable:!0},{default:function(){return[m(O,{title:"乐团信息",name:"information"},{default:function(){return[m(B,{termTimes:o.value},null)]}}),m(O,{title:"训练进度",name:"plan"},{default:function(){return[m(E,{height:i.value,termTimes:o.value},null)]}})]}})])}}}))}}}))}();