!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||[],M.list=M.list.concat(n),M.listState.finished=r.current>=r.pages,M.params.page=r.current+1,M.listState.dataShow=M.list.length>0,M.isLoading=!1,e.next=24;break;case 19:e.prev=19,e.t0=e.catch(0),M.listState.dataShow=!1,M.listState.finished=!0,M.isLoading=!1;case 24:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),R=function(){M.params.page=1,M.list=[],M.listState.dataShow=!0,M.listState.loading=!1,M.listState.finished=!1,P()},B=function(){v((function(){var e=M.statistics;new C("currentStudentNum",e.currentStudent||0).start(),new C("time1",100*e.attendanceRate||0).start(),new C("time2",100*e.homeworkSubmissionRate||0).start(),new C("time3",100*e.practicePassRate||0).start()}))};return m(n(regeneratorRuntime.mark((function e(){var t,r,n,i,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c(c().year()+a.value).format("YYYY-MM-DD"),r=c(c().year()+y.value).format("YYYY-MM-DD"),n=c().format("YYYY-MM-DD"),console.log(n,t),i=c(n).isBefore(c(t)),o=c(n).isBefore(c(r)),s=c().year(),i&&o&&(M.currentData=[s-1+""],M.params.startTime=c(s-1+a.value).format("YYYY-MM-DD HH:mm:ss"),M.params.endTime=c(c().year()+y.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),i||o||(M.params.startTime=c(c().year()+a.value).format("YYYY-MM-DD HH:mm:ss"),M.params.endTime=c(c().year()+y.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),i&&!o&&(M.params.startTime=c(s+y.value).format("YYYY-MM-DD HH:mm:ss"),M.params.endTime=c(s+a.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),M.actionTerm.forEach((function(e){"down"===e.value?(e.color="var(--van-primary-color)",M.actionText=e.text,M.actionType=e.value):e.color=""})),M.currentData=[s-1+""],M.actionText="下学期",M.actionType="down",M.actionTerm.forEach((function(e){"down"===e.value?e.selected=!0:e.selected=!1}))),e.next=12,z();case 12:return e.next=14,O();case 14:return e.next=16,P();case 16:case"end":return e.stop()}}),e)})))),function(){var e,t;return l(g,null,[l("div",{class:["searchGroup","van-hairline--top"]},[l("div",{class:["searchItem",M.timeShow?"searchItem-active":""],onClick:function(){return M.timeShow=!0}},[M.currentData[0],u("年 "),l("i",{class:"arrow"},null)]),l("div",{class:["searchItem",M.oPopover?"searchItem-active":""],onClick:function(){return M.oPopover=!0}},[M.actionText,u(" "),l("i",{class:"arrow"},null)])]),l("div",{style:{height:"calc(100vh - var(--header-height) - var(--van-tabs-line-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[l(N,{border:!1,class:j.gridContainer},{default:function(){return[l(S,null,{default:function(){return[l("p",{class:[j.title,j.red]},[l("span",{id:"currentStudentNum"},[M.statistics.studentNum||0]),l("i",null,[u(" 名")])]),l("p",{class:j.name},[u("在读学员")])]}}),l(S,null,{default:function(){return[l("p",{class:[j.title,j.red]},[l("span",{id:"time1"},[M.statistics.attendanceRate||0]),u("%")]),l("p",{class:j.name},[u("到课率")])]}}),l(S,null,{default:function(){return[l("p",{class:[j.title,j.red]},[l("span",{id:"time2"},[M.statistics.homeworkRate||0]),u("%")]),l("p",{class:j.name},[u("作业提交率")])]}}),l(S,null,{default:function(){return[l("p",{class:[j.title,j.red]},[l("span",{id:"time3"},[M.statistics.homeworkQualifiedRate||0]),u("%")]),l("p",{class:j.name},[u("练习合格率")])]}})]}}),M.listState.dataShow?l(T,{finished:M.listState.finished,finishedText:" ",class:[j.liveList],onLoad:P,immediateCheck:!1},(t=e=M.list.map((function(e){return l("div",{class:[j.gridContainer,j.gridClass]},[l("div",{class:j.className},[l("i",{class:j.line},null),e.name]),l(N,{border:!1,columnNum:3},{default:function(){return[l(S,null,{default:function(){return[l("p",{class:j.title},[e.preStudentNum||0]),l("p",{class:j.name},[u("在读学员")])]}}),l(S,null,{default:function(){return[l("p",{class:[j.title,j.teacher,"van-ellipsis"]},[e.teacherName||"-"]),l("p",{class:j.name},[u("伴学老师")])]}}),l(S,null,{default:function(){return[l("p",{class:j.title},[e.completeCourseScheduleNum||0,u("/"),e.courseScheduleNum||0]),l("p",{class:j.name},[u("课时")])]}})]}})])})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!h(t)?e:{default:function(){return[e]}})):l(d,{btnStatus:!1,tips:"暂无班级"},null),M.orchestraInfo.canSignUp&&l(w,{position:"bottom",class:j.informationBottom,onGetHeight:function(e){M.bottomHeight=e}},{default:function(){return[l("div",{class:"btnGroup"},[l(_,{round:!0,block:!0,type:"primary",onClick:function(){Y.push({path:"save-share-image",query:{type:"orchestra",id:b.query.id}})}},{default:function(){return[u("报名二维码")]}})])]}})]),l(D,{show:M.oPopover,"onUpdate:show":function(e){return M.oPopover=e},actions:M.actionTerm,onSelect:H,teleport:"body"},null),l(f,{show:M.timeShow,"onUpdate:show":function(e){return M.timeShow=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:function(){return[l(k,{modelValue:M.currentData,"onUpdate:modelValue":function(e){return M.currentData=e},columnsType:["year"],formatter:p,onConfirm:I,onCancel:function(){return M.timeShow=!1}},null)]}})])}}}),R="_gridContainer_xmx94_1",B="_gridClass_xmx94_25",F="_className_xmx94_35",A="_line_xmx94_42",E="_classNum_xmx94_87",L="_classNumItem_xmx94_95",q="_use_xmx94_101",G="_nums_xmx94_104",U="_block_xmx94_110";c.extend(Y,O);var Q=a({name:"plan",props:{termTimes:{type:Object,default:{}},height:{type:[String,Number],default:0}},setup:function(e){var t=i(),a=s({isLoading:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:100}}),r=function(){var e=n(regeneratorRuntime.mark((function e(){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,x.post("/api-school/orchestraDataStatistics/orchestraTrainingProgress",{data:{orchestraId:t.query.id}});case 3:r=e.sent,n=r.data,a.list=n||[],a.listState.dataShow=a.list.length>0,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),a.listState.dataShow=!1;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}();return m(n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r();case 2:case"end":return e.stop()}}),e)})))),function(){return l("div",{style:"height: calc(100vh - var(--header-height) - var(--van-tabs-line-height)); overflow: hidden; overflow-y: auto;"},[a.listState.dataShow?l("div",{class:[R]},[a.list.map((function(e){return l("div",{class:B},[l("div",{class:F},[l("i",{class:A,style:{backgroundColor:e.coursewareNum