System.register(["./index-legacy-f073bf97.js","./use-async-legacy-daf3e5fa.js","./index-legacy-44eebe37.js","./index.module-legacy-90154f5d.js","./useECharts-legacy-b86d295c.js","./index-legacy-fd682661.js","./dateFormat-legacy-8633a26e.js","./api-legacy-6ff284b8.js","./index-legacy-3b06cf1f.js","./api-legacy-dbcbb54e.js","./index-legacy-557685f7.js"],(function(t,a){"use strict";var e,i,l,n,s,o,r,c,d,p,u,g,m,v,y,h,b,f,T,D,w,x,A,S,k,L,I,R,C,_,O,W,U,Y,z,B,P,j,N,G,E,V,F;return{setters:[t=>{e=t.B,i=t.d,l=t.r,n=t.u,s=t.a,o=t.e,r=t.L,c=t.n,d=t.f,p=t.k,u=t.c9,g=t.F,m=t.j,v=t.w,y=t.R,h=t.M,b=t.O,f=t.S,T=t.U,D=t.p,w=t.q,x=t.x,A=t.E},t=>{S=t.g,k=t.s},t=>{L=t.N,I=t.C},t=>{R=t.s},t=>{C=t.u},t=>{_=t.P},t=>{O=t.b,W=t.c,U=t.d,Y=t.g,z=t.a},t=>{B=t.j,P=t.t,j=t.l},t=>{N=t.T},t=>{G=t.g,E=t.s,V=t.a,F=t.b},null],execute:function(){var a=document.createElement("style");a.textContent="._listWrap_17ock_1{min-height:100%;padding:1.66666667vw;background-color:#fff;border-radius:1.04166667vw}._listWrap_17ock_1 ._customTabs_17ock_7 .n-tabs-tab--active{font-size:max(.9375rem,14Px)!important;font-weight:600!important;color:#131415!important}._listWrap_17ock_1 ._customTabs_17ock_7 .n-tabs-tab{font-size:max(.9375rem,14Px);padding:.41666667vw 0!important;font-weight:400;min-width:2.60416667vw;color:#8b8d98}._listWrap_17ock_1 ._customTabs_17ock_7 .n-tabs-tab:hover{color:#198cfe!important}._listWrap_17ock_1 ._customTabs_17ock_7 .n-tabs-bar{width:2.60416667vw!important;height:.26041667vw!important;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAKCAYAAABCHPt+AAAAAXNSR0IArs4c6QAAAO5JREFUWEftl00KwjAQhd/rLVqv4VbwAnoYfzaKGxE3th5GLyC49RztLTKSajEW+0OTlUw2oSFvGL6XZibEe8RnmdBgDWIsInG1rnM3AZIFBA+JcCoWvLcpXM7lvpqOdi1OZQPiAJHyW8dQAjQAdsWKx18Rmjl/dLSOweAGSDQ0DdW5BGgQYVr/U7o5v3RMUrkIZKZQwxEgeM1XnLsR+3C2OiaZ5FozwplhI9maki+ZfBnSg7PVqSFhvSij+RmiV1ZwS7yurO5iEzzfPw/oWdQtnVEmWyPYa6fle1ba295mzk7bW6WgD8PhZoR8GD4BToyflz19IOIAAAAASUVORK5CYII=) no-repeat;background-size:2.60416667vw .26041667vw}._searchBtn_17ock_28{width:4.6875vw;height:2.23958333vw;background:#198cfe;border-radius:.41666667vw;line-height:2.13541667vw;font-weight:600!important;font-size:.9375rem}._resetBtn_17ock_37{width:4.6875vw;height:2.23958333vw;border-radius:.41666667vw;line-height:2.13541667vw;font-weight:600!important;font-size:.9375rem}\n",document.head.appendChild(a);const M={listWrap:"_listWrap_17ock_1",customTabs:"_customTabs_17ock_7",searchBtn:"_searchBtn_17ock_28",resetBtn:"_resetBtn_17ock_37"},q=i({name:"home-trainData",props:{timer:{type:Array,defaut:()=>[]}},setup(t,{expose:a}){const i=l(null),{setOptions:y}=C(i),h=l(!0),b=l(!0),f=n(),T=s(),D=o({height:"360px",width:"100%",studentNum:0,paymentAmount:0,dateList:["2022-10-10","2022-10-11","2022-10-12","2022-10-13","2022-10-14","2022-10-15","2022-10-16"],studentList:[],payInfoList:[]}),w=l({qualifiedRate:0,qualifiedStudentCount:0,submitStudentCount:0,totalStudentCount:0,trainingCount:0,trainingRate:0}),x=o({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),A=r((()=>t.timer)),S=t=>{console.log(t),f.push({path:"/afterWorkDetail",query:{...T.query,teacherName:t.teacherName,trainingId:t.id,id:t.classGroupId,name:t.classGroupName}})},k=async()=>{try{const a=await(t={...O(A.value,["startTime","endTime"],"YYYY-MM-DD")},e.post("/edu-app/lessonTraining/trainingStat",{data:t}));w.value={...a.data},D.dateList=a.data.trainingStatDetails.map((t=>t.date)),D.payInfoList=a.data.trainingStatDetails.map((t=>t.qualifiedStudentCount)),D.studentList=a.data.trainingStatDetails.map((t=>t.unqualifiedStudentCount)),I()}catch(a){console.log(a)}var t;try{const t=await B({...x.pagination,...O(A.value,["startTime","endTime"],"YYYY-MM-DD")});x.tableList=t.data.rows,x.pagination.pageTotal=t.data.total,x.loading=!1}catch(a){x.loading=!1,console.log(a)}};a({getList:k});const I=()=>{y({tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:2,color:"#A9C7FF"}}},legend:{show:!1,selected:{"合格人数":h.value,"不合格人数":b.value}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{show:!0,interval:0},data:D.dateList},yAxis:[{type:"value",axisLabel:{formatter:"{value}人"},axisTick:{show:!1},splitArea:{show:!1,areaStyle:{color:["rgba(255,255,255,0.2)"]}},minInterval:1,splitNumber:5}],grid:{left:"1%",right:"1%",top:"2 %",bottom:0,containLabel:!0},series:[{data:D.studentList,symbolSize:10,type:"line",name:"不合格人数",symbol:"circle",smooth:!0,itemStyle:{color:"#FF7AA7",borderColor:"#fff",borderWidth:3},lineStyle:{width:3},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(255, 243, 246, 1)"},{offset:1,color:"rgba(255, 246, 248, 0)"}]}},emphasis:{disabled:!0}},{data:D.payInfoList,type:"line",name:"合格人数",symbolSize:10,symbol:"circle",smooth:!0,itemStyle:{color:"#198CFE",borderColor:"#fff",borderWidth:3},lineStyle:{width:2},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(212, 231, 255, 1)"},{offset:1,color:"rgba(221, 235, 254, 0)"}]}},emphasis:{disabled:!0}}],formatter:t=>Array.isArray(t)?[t[0].axisValueLabel,...t.map((t=>`
${t.marker}${t.seriesName}: ${t.value}人 `))].join(""):t})};return c((()=>{k()})),()=>d(g,null,[d("div",{class:R.homeTrainData},[d("div",{class:R.TrainDataTop},[d("div",{class:R.TrainDataTopLeft},[d("div",{class:R.TrainDataItem},[d("p",{class:R.TrainDataItemTitle},[d("span",null,[d(L,{from:0,to:w.value.trainingCount},null)]),p("次")]),d("p",{class:R.TrainDataItemsubTitle},[p("作业次数")])]),d("div",{class:R.TrainDataItem},[d("p",{class:R.TrainDataItemTitle},[d("span",null,[d(L,{from:0,to:w.value.totalStudentCount},null)]),p("人次")]),d("p",{class:R.TrainDataItemsubTitle},[p("应交总人次")])]),d("div",{class:R.TrainDataItem},[d("p",{class:R.TrainDataItemTitle},[d("span",null,[d(L,{from:0,to:w.value.submitStudentCount},null)]),p("人次")]),d("p",{class:R.TrainDataItemsubTitle},[p("提交总人次")])]),d("div",{class:R.TrainDataItem},[d("p",{class:R.TrainDataItemTitle},[d("span",null,[" ",d(L,{from:0,to:w.value.qualifiedStudentCount},null)]),p("人次")]),d("p",{class:R.TrainDataItemsubTitle},[p("合格总人次")])]),d("div",{class:R.TrainDataItem},[d("p",{class:R.TrainDataItemTitle},[d("span",null,[d(L,{from:0,to:w.value.trainingRate},null),p("%")])]),d("p",{class:R.TrainDataItemsubTitle},[p("作业提交率")])]),d("div",{class:R.TrainDataItem},[d("p",{class:R.TrainDataItemTitle},[d("span",null,[d(L,{from:0,to:w.value.qualifiedRate},null),p("%")])]),d("p",{class:R.TrainDataItemsubTitle},[p("作业合格率")])])]),d("div",{class:R.TrainDataTopRight},[d("div",{onClick:()=>{h.value=!h.value,I()},class:[R.DataTopRightItem,h.value?"":R.DataTopRightItemDis]},[d("div",{class:R.DataTopRightDot},null),d("p",null,[p("合格人数")])]),d("div",{onClick:()=>{b.value=!b.value,I()},class:[R.DataTopRightItem,b.value?"":R.DataTopRightItemDis]},[d("div",{class:[R.DataTopRightDot,R.red]},null),d("p",null,[p("不合格人数")])])])]),d("div",{class:R.chatrs},[d("div",{ref:i,style:{height:D.height,width:D.width}},null)]),d("div",{class:R.tableWrap},[d(u,{class:R.classTable,loading:x.loading,columns:[{title:"布置老师",key:"teacherName"},{title:"布置时间",key:"createTime",render:t=>d(g,null,[t.createTime])},{title:"截止时间",key:"expireDate",render:t=>d(g,null,[t.expireDate])},{title:"训练状态",key:"status",render:t=>0==t.status?d("div",{class:R.indDot},[" ",d("span",null,null),p(" 进行中")]):d("div",{class:R.endDot},[d("span",null,null),p("已结束")])},{title:"布置人数",key:"expectNum"},{title:"提交人数",key:"trainingNum"},{title:"合格人数",key:"standardNum"},{title:"提交率",key:"trainingRate",render:t=>d(g,null,[t.trainingRate,p("%")])},{title:"合格率",key:"qualifiedRate",render:t=>d(g,null,[t.qualifiedRate,p("%")])},{title:"操作",key:"id",render:t=>d(v,null,{default:()=>[d(m,{text:!0,type:"primary",onClick:()=>S(t)},{default:()=>[p("详情")]})]})}],data:x.tableList},{empty:()=>d(N,null,null)}),d(_,{page:x.pagination.page,"onUpdate:page":t=>x.pagination.page=t,pageSize:x.pagination.rows,"onUpdate:pageSize":t=>x.pagination.rows=t,pageTotal:x.pagination.pageTotal,"onUpdate:pageTotal":t=>x.pagination.pageTotal=t,onList:k,sync:!0},null)])])])}}),K=i({name:"home-practiceData",props:{timer:{type:Array,defaut:()=>[]}},setup(t,{expose:a}){const i=l(null),{setOptions:n}=C(i),s=l(!0),m=o({height:"360px",width:"100%",practiceUserCount:0,paymentAmount:0,practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[]}),v=o({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),y=r((()=>t.timer)),h=async()=>{try{const a=await P({page:1,rows:999,...O(y.value,["startTime","endTime"],"YYYY-MM-DD")}),i=await(t={page:1,rows:999,...O(y.value,["startTime","endTime"],"YYYY-MM-DD")},e.post("/edu-app/musicPracticeRecordStat/trainingStat",{data:t}));v.tableList=a.data.rows,m.practiceDurationAvg=i.data.practiceDurationAvg,m.practiceUserCount=i.data.practiceUserCount,m.dateList=i.data.trainingStatDetailList.map((t=>t.date)),m.timeList=i.data.trainingStatDetailList.map((t=>t.practiceUserCount)),console.log("trainingStatDetailList",m.timeList),b()}catch(a){console.log(a)}var t};a({getList:h});const b=()=>{n({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!1,selected:{"练习人数":s.value}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{show:!0,interval:0},data:m.dateList},yAxis:[{type:"value",axisLabel:{formatter:"{value}人"},axisTick:{show:!1},splitArea:{show:!1,areaStyle:{color:["rgba(255,255,255,0.2)"]}},minInterval:1,splitNumber:5}],grid:{left:"1%",right:"1%",top:"2%",bottom:0,containLabel:!0},series:[{data:m.timeList,type:"bar",barWidth:"48px",itemStyle:{normal:{barBorderRadius:[8,8,0,0],color:"#D5E9FF"},emphasis:{color:"#3583FA"}}}],formatter:t=>Array.isArray(t)?[t[0].axisValueLabel,...t.map((t=>`
${t.marker}练习人数: ${t.value}人 `))].join(""):t})};return c((()=>{h()})),()=>d(g,null,[d("div",{class:R.homeTrainData},[d("div",{class:R.TrainDataTop},[d("div",{class:R.TrainDataTopLeft},[d("div",{class:R.TrainDataItem},[d("p",{class:R.TrainDataItemTitle},[d("span",null,[d(L,{from:0,to:m.practiceUserCount},null)]),p("人")]),d("p",{class:R.TrainDataItemsubTitle},[p("练习人数")])]),d("div",{class:R.TrainDataItem},[d("p",{class:R.TrainDataItemTitle},[W(m.practiceDurationAvg)>0?d("div",null,[d("span",null,[d(L,{from:0,to:W(m.practiceDurationAvg)},null)])," ",p("分")]):null,d("div",null,[d("span",null,[d(L,{from:0,to:U(m.practiceDurationAvg)},null)])," ",p("秒")])]),d("p",{class:R.TrainDataItemsubTitle},[p("平均练习时长")])])]),d("div",{class:R.TrainDataTopRight},[d("div",{class:[R.DataTopRightItem,s.value?"":R.DataTopRightItemDis]},[d("div",{class:[R.DataTopRightDot,R.DataTopRightDotBlue]},null),d("p",null,[p("练习人数")])])])]),d("div",{class:R.chatrs},[d("div",{ref:i,style:{height:m.height,width:m.width}},null)]),d("div",{class:R.tableWrap},[d(u,{class:R.classTable,loading:v.loading,columns:[{title:"日期",key:"date"},{title:"练习人数",key:"practiceUserCount",render:t=>d(g,null,[t.practiceUserCount,p("人")])},{title:"平均练习时长(分钟)",key:"practiceDuration",render:t=>d(g,null,[" ",d(g,null,[t.practiceDuration?W(t.practiceDuration)>0?W(t.practiceDuration)+"分"+U(t.practiceDuration)+"秒":U(t.practiceDuration)+"秒":"0分钟"])])}],data:v.tableList},{empty:()=>d(N,null,null)})])])])}}),$=i({name:"student-studentList",props:{timer:{type:Array,defaut:()=>[]}},setup(t,{emit:a,expose:e}){const i=o({searchWord:"",orchestraType:null,courseTypeCode:null,subjectId:null,classId:null,studentType:null,loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[]}),l=o({ase:0,sortType:1}),n=r((()=>(console.log("ranking===>"),t.timer))),s=async()=>{i.loading=!0;try{const t=await j({...i.pagination,...l,...O(n.value,["startTime","endTime"],"YYYY-MM-DD")});i.tableList=t.data.rows,i.pagination.pageTotal=t.data.total,i.loading=!1}catch(t){i.loading=!1,console.log(t)}};e({getList:s}),c((()=>{s()}));const m=t=>{if(t){const a={practiceDuration:1,practiceDays:2,practiceDurationAvg:3};l.sortType=a[t.columnKey],"practiceDuration"==t.columnKey&&(y.sortOrder=t.order,v.sortOrder=!1,h.sortOrder=!1),"practiceDays"==t.columnKey&&(v.sortOrder=t.order,y.sortOrder=!1,h.sortOrder=!1),"practiceDurationAvg"==t.columnKey&&(h.sortOrder=t.order,v.sortOrder=!1,y.sortOrder=!1),l.ase="ascend"==t.order?1:0}else l.ase=0,l.sortType=1,v.sortOrder=!1,y.sortOrder=!1,h.sortOrder=!1;s()},v=o({title:"练习天数",key:"practiceDays",sorter:!0,sortOrder:!1,render:t=>d(g,null,[t.practiceDays?t.practiceDays:0,p("天")])}),y=o({title:"练习总时长",key:"practiceDuration",sorter:!0,sortOrder:!1,render:t=>d(g,null,[t.practiceDuration?W(t.practiceDuration)>0?W(t.practiceDuration)+"分"+U(t.practiceDuration)+"秒":U(t.practiceDuration)+"秒":0])}),h=o({title:"平均练习时长",key:"practiceDurationAvg",sorter:!0,sortOrder:!1,render:t=>d(g,null,[t.practiceDurationAvg?W(t.practiceDurationAvg)>0?W(t.practiceDurationAvg)+"分"+U(t.practiceDurationAvg)+"秒":U(t.practiceDurationAvg)+"秒":0])});return()=>d("div",{class:R.listWrap},[d("div",{class:R.tableWrap},[d(u,{class:R.classTable,loading:i.loading,columns:[{title:"姓名",key:"studentName"},{title:"手机号",key:"studentPhone"},v,y,h],data:i.tableList,"onUpdate:sorter":m},{empty:()=>d(N,null,null)}),d(_,{page:i.pagination.page,"onUpdate:page":t=>i.pagination.page=t,pageSize:i.pagination.rows,"onUpdate:pageSize":t=>i.pagination.rows=t,pageTotal:i.pagination.pageTotal,"onUpdate:pageTotal":t=>i.pagination.pageTotal=t,onList:s,sync:!0},null)])])}}),Q=i({name:"data-guide",emits:["close"],setup(t,{emit:a}){const e=o({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:G("data1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:y(-4),left:y(-100),width:y(472),height:y(256)},btnsStyle:{bottom:y(30),left:y(-110)},boxStyle:{borderRadius:"25px"},eleRectPadding:{left:14,top:14,width:28,height:28}},{ele:"",img:G("data2.png"),imgStyle:{top:y(-4),left:y(-100),width:y(509),height:y(230)},btnsStyle:{bottom:y(30),left:y(-110)},boxStyle:{borderRadius:"25px"},eleRectPadding:{left:14,top:14,width:28,height:28}},{ele:"",img:G("data3.png"),imgStyle:{top:"100%",left:y(-105),width:y(438),height:y(230)},btnsStyle:{bottom:y(30),left:y(-115)},boxStyle:{borderRadius:"25px"},eleRectPadding:{left:14,top:14,width:28,height:28}}],step:0}),i=l(!1),n=l({});(async()=>{try{const t=await V({guideTag:"teacher-guideInfo"});t.data?n.value=JSON.parse(t.data?.guideValue)||null:n.value={},n.value&&n.value.dataGuide?i.value=!1:i.value=!0}catch(t){console.log(t)}})();const s=()=>{const t=document.getElementById(`data-${e.step}`);if(t){const a=t.getBoundingClientRect(),i=e.steps[e.step].eleRectPadding?.left||0,l=e.steps[e.step].eleRectPadding?.top||0,n=e.steps[e.step].eleRectPadding?.width||0,s=e.steps[e.step].eleRectPadding?.height||0;e.box={left:a.x-i+"px",top:a.y-l+"px",width:a.width+n+"px",height:a.height+s+"px"}}else m()},r=async t=>{try{if("data-module"!==t)return;n.value?n.value.dataGuide=!1:n.value={dataGuide:!1};try{await F({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(n.value)})}catch(a){console.log(a)}e.step=0,s(),i.value=!0}catch{}};c((()=>{s(),window.addEventListener("resize",u),h.on("teacher-guideInfo",(t=>r(t)))}));const u=()=>{s()};b((()=>{window.removeEventListener("resize",u),h.off("teacher-guideInfo",r)}));const m=()=>{e.step>=4?v():(e.step=e.step+1,s())},v=async()=>{n.value?n.value.dataGuide=!0:n.value={dataGuide:!0};try{await F({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(n.value)})}catch(t){console.log(t)}i.value=!1};return()=>d(g,null,[i.value?f(d("div",{"onUpdate:show":t=>i.value=t,class:["n-modal-mask","n-modal-mask-guide"]},[d("div",{class:E.content,onClick:()=>m()},[d("div",{class:E.backBtn,onClick:t=>{t.stopPropagation(),v()}},[p("跳过")]),d("div",{class:E.box,style:{...e.box,...e.steps[e.step]?.boxStyle},id:`modeType-${e.step}`},[e.steps.map(((t,a)=>d("div",{onClick:t=>t.stopPropagation(),class:E.item,style:"bottom"==t.type?{display:a===e.step?"":"none",left:`${t.eleRect?.left}px`,top:`-${t.imgStyle?.height}`}:{display:a===e.step?"":"none",left:`${t.eleRect?.left}px`,top:`${e.box?.height}`}},[d("img",{class:E.img,style:t.imgStyle,src:t.img},null),d("div",{class:E.btns,style:t.btnsStyle},[e.step+1==e.steps.length?d(g,null,[d("div",{class:[E.endBtn],onClick:()=>v()},[p("完成")]),d("div",{class:E.nextBtn,onClick:()=>{e.step=0,s()}},[p("再看一遍")])]):d("div",{class:E.btn,onClick:()=>m()},[p("下一步 ("),e.step+1,p("/"),e.steps.length,p(")")])])])))])])]),[[T,i.value,"show"]]):null])}});t("default",i({name:"data-module",setup(){const t=l("training"),a=s();S((a=>{a.form.tabName&&(t.value=a.form.tabName)}));const e=l(),i=l(),n=l(),o=l(!1),r=l([Y((new Date).getTime()),z((new Date).getTime())]),u=()=>{console.log(r.value),e.value&&e.value.getList(),i.value&&i.value.getList(),n.value&&n.value.getList()};return c((()=>{setTimeout((()=>{o.value=!0}),800)})),()=>d("div",null,[d("div",{class:M.listWrap},[d(D,{"onUpdate:value":[t=>(t=>{k(t,"tabName",a)})(t),a=>t.value=a],class:M.customTabs,value:t.value,size:"large",animated:!1,"pane-wrapper-style":"margin: 0 -4px","pane-style":"padding-left: 4px; padding-right: 4px; box-sizing: border-box;"},{default:()=>[d(w,{name:"training",tab:"作业统计"},{default:()=>[d(q,{ref:e,timer:r.value},null)],tab:()=>d("span",{id:"data-0"},[p("作业统计")])}),d(w,{name:"practice",tab:"学练数据"},{default:()=>[d(K,{ref:i,timer:r.value},null)],tab:()=>d("span",{id:"data-1"},[p("学练数据")])}),d(w,{name:"ranking",tab:"学练排行"},{default:()=>[d($,{ref:n,timer:r.value},null)],tab:()=>d("span",{id:"data-2"},[p("学练排行")])})],suffix:()=>d(g,null,[d("div",{class:M.homeStudyInfoDate},[d(v,null,{default:()=>[d(I,x({clearable:!1},{value:r.value,"onUpdate:value":t=>r.value=t,separator:"-",type:"daterange",timerValue:r.value}),null),d(m,{type:"primary",class:M.searchBtn,onClick:()=>u()},{default:()=>[p("搜索")]}),d(m,{type:"primary",onClick:()=>(console.log("点击重置"),r.value=[Y((new Date).getTime()),z((new Date).getTime())],void A((()=>{u()}))),ghost:!0,class:M.resetBtn},{default:()=>[p("重置")]})]})])])}),o.value?d(Q,null,null):null])])}}))}}}));