index-legacy-a2f5c89d-1731319840132.js 25 KB

1
  1. System.register(["./index-legacy-bb6bf184-1731319840132.js","./use-async-legacy-12fcc473-1731319840132.js","./index-legacy-5433e0d9-1731319840132.js","./index2.module-legacy-019146e2-1731319840132.js","./useECharts-legacy-7111fa42-1731319840132.js","./index-legacy-725f2f20-1731319840132.js","./icon-sort-asc-legacy-8c8821c6-1731319840132.js","./api-legacy-66c5127b-1731319840132.js","./index-legacy-aabee6fc-1731319840132.js","./index-legacy-7dba2a59-1731319840132.js","./api-legacy-a9e15595-1731319840132.js","./index-legacy-1ce90d5a-1731319840132.js"],(function(t,e){"use strict";var a,r,l,i,s,n,o,d,u,c,p,g,m,y,v,h,f,b,T,D,A,x,w,S,O,I,C,L,k,U,R,F,N,_,z,W,Y,q,G,B,P,j,E,K,M,Q,V,Z,J,H;return{setters:[t=>{a=t.H,r=t.d,l=t.r,i=t.u,s=t.a,n=t.e,o=t.U,d=t.f,u=t.k,c=t.aG,p=t.F,g=t.j,m=t.x,y=t.b,v=t.V,h=t.b0,f=t.q,b=t.S,T=t.$,D=t.C,A=t.T,x=t.a0,w=t.a1,S=t.t,O=t.v,I=t.y},t=>{C=t.a,L=t.g},t=>{k=t.C},t=>{U=t.s},t=>{R=t.u},t=>{F=t.P},t=>{N=t.N,_=t.b,z=t.f,W=t.e,Y=t.h,q=t.j,G=t.i,B=t.c,P=t.d,j=t.g,E=t.a},t=>{K=t.j,M=t.t,Q=t.l},t=>{V=t.T},t=>{Z=t.g,J=t.s},t=>{H=t.s},null],execute:function(){var e=document.createElement("style");e.textContent="._listWrap_x49zf_1{min-height:100%;padding:1.66666667vw;background-color:#fff;border-radius:1.04166667vw}._listWrap_x49zf_1 ._customTabs_x49zf_7 .n-tabs-tab--active{font-size:max(.9375rem,14Px)!important;font-weight:600!important;color:#131415!important}._listWrap_x49zf_1 ._customTabs_x49zf_7 .n-tabs-tab{font-size:max(.9375rem,14Px);padding:.41666667vw 0!important;font-weight:400;min-width:2.60416667vw;color:#8b8d98}._listWrap_x49zf_1 ._customTabs_x49zf_7 .n-tabs-tab:hover{color:#198cfe!important}._listWrap_x49zf_1 ._customTabs_x49zf_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_x49zf_28{background:#198cfe;border-radius:.41666667vw;font-weight:600!important}._resetBtn_x49zf_33{border-radius:.41666667vw;font-weight:600!important}._resetBtn_x49zf_33,._searchBtn_x49zf_28{--n-padding: 0 1.45833333vw !important}\n",document.head.appendChild(e);const X={listWrap:"_listWrap_x49zf_1",customTabs:"_customTabs_x49zf_7",searchBtn:"_searchBtn_x49zf_28",resetBtn:"_resetBtn_x49zf_33"},$=r({name:"home-trainData",props:{timer:{type:Array,defaut:()=>[]}},setup(t,{expose:e}){const r=l(null),{setOptions:y}=R(r),v=l(!0),h=l(!0),f=i();s();const b=n({height:"360px",width:"100%",studentNum:0,paymentAmount:0,dateList:[],studentList:[],payInfoList:[]}),T=l({qualifiedRate:0,qualifiedStudentCount:0,submitStudentCount:0,totalStudentCount:0,trainingCount:0,trainingRate:0}),D=n({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),A=o((()=>t.timer)),x=t=>{console.log(t),f.push({path:"/homework-record-detail",query:{id:t.id,name:t.name}})},w=async()=>{D.loading=!0;try{const e=await(t={..._(A.value,["startTime","endTime"],"YYYY-MM-DD")},a.post("/edu-app/lessonTraining/trainingStat",{data:t}));T.value={...e.data},b.dateList=e.data.trainingStatDetails.map((t=>t.date)),b.payInfoList=e.data.trainingStatDetails.map((t=>t.qualifiedStudentCount)),b.studentList=e.data.trainingStatDetails.map((t=>t.unqualifiedStudentCount)),S()}catch(e){console.log(e)}var t;try{const t=await K({...D.pagination,..._(A.value,["startTime","endTime"],"YYYY-MM-DD")});D.tableList=t.data.rows,D.pagination.pageTotal=t.data.total,D.loading=!1}catch(e){D.loading=!1,console.log(e)}D.loading=!1};e({getList:w});const S=()=>{y({tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:2,color:"#A9C7FF"}}},legend:{show:!1,selected:{"达标人数":v.value,"未达标人数":h.value}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{show:!0},data:b.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:b.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:b.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=>`<br/>${t.marker}<span style="margin-top:10px;margin-left:5px;font-size: 13px;font-weight: 500;\n color: #333333;\n line-height: 18px;">${t.seriesName}: ${t.value}人 </span>`))].join(""):t})};return w(),()=>d(p,null,[d("div",{class:U.homeTrainData},[d("div",{class:U.TrainDataTop},[d("div",{class:U.TrainDataTopLeft},[d("div",{class:U.TrainDataItem},[d("p",{class:U.TrainDataItemTitle},[d("div",null,[d("span",null,[d(N,{from:0,to:T.value.trainingCount},null)]),u("次")])]),d("p",{class:U.TrainDataItemsubTitle},[u("作业次数")])]),d("div",{class:U.TrainDataItem},[d("p",{class:U.TrainDataItemTitle},[d("div",null,[d("span",null,[d(N,{from:0,to:T.value.totalStudentCount},null)]),u("人次")])]),d("p",{class:U.TrainDataItemsubTitle},[u("应交总人次")])]),d("div",{class:U.TrainDataItem},[d("p",{class:U.TrainDataItemTitle},[d("div",null,[d("span",null,[d(N,{from:0,to:T.value.submitStudentCount},null)]),u("人次")])]),d("p",{class:U.TrainDataItemsubTitle},[u("提交总人次")])]),d("div",{class:U.TrainDataItem},[d("p",{class:U.TrainDataItemTitle},[d("div",null,[d("span",null,[d(N,{from:0,to:T.value.qualifiedStudentCount},null)]),u("人次")])]),d("p",{class:U.TrainDataItemsubTitle},[u("达标总人次")])]),d("div",{class:U.TrainDataItem},[d("p",{class:U.TrainDataItemTitle},[d("div",null,[d("span",null,[d(N,{from:0,to:T.value.trainingRate},null)]),u("%")])]),d("p",{class:U.TrainDataItemsubTitle},[u("作业提交率")])]),d("div",{class:U.TrainDataItem},[d("p",{class:U.TrainDataItemTitle},[d("div",null,[d("span",null,[d(N,{from:0,to:T.value.qualifiedRate},null)]),u("%")])]),d("p",{class:U.TrainDataItemsubTitle},[u("作业达标率")])])]),d("div",{class:U.TrainDataTopRight},[d("div",{onClick:()=>{v.value=!v.value,S()},class:[U.DataTopRightItem,v.value?"":U.DataTopRightItemDis]},[d("div",{class:U.DataTopRightDot},null),d("p",null,[u("达标人数")])]),d("div",{onClick:()=>{h.value=!h.value,S()},class:[U.DataTopRightItem,h.value?"":U.DataTopRightItemDis]},[d("div",{class:[U.DataTopRightDot,U.red]},null),d("p",null,[u("未达标人数")])])])]),d("div",{class:U.chatrs},[d("div",{ref:r,style:{height:b.height,width:b.width}},null)]),d("div",{class:U.tableWrap},[d(c,{class:U.classTable,loading:D.loading,columns:[{title:"布置老师",key:"teacherName"},{title:"布置时间",key:"createTime",render:t=>d(p,null,[t.createTime])},{title:"截止时间",key:"expireDate",render:t=>d(p,null,[t.expireDate])},{title:"训练状态",key:"status",render:t=>0==t.status?d("div",{class:U.indDot},[" ",d("span",null,null),u(" 进行中")]):d("div",{class:U.endDot},[d("span",null,null),u("已结束")])},{title:"布置人数",key:"expectNum"},{title:"提交人数",key:"trainingNum"},{title:"达标人数",key:"standardNum"},{title:"提交率",key:"trainingRate",render:t=>d(p,null,[t.trainingRate,u("%")])},{title:"达标率",key:"qualifiedRate",render:t=>d(p,null,[t.qualifiedRate,u("%")])},{title:"操作",key:"id",render:t=>d(m,null,{default:()=>[d(g,{text:!0,type:"primary",onClick:()=>x(t)},{default:()=>[u("详情")]})]})}],data:D.tableList},{empty:()=>d(V,null,null)}),d(F,{page:D.pagination.page,"onUpdate:page":t=>D.pagination.page=t,pageSize:D.pagination.rows,"onUpdate:pageSize":t=>D.pagination.rows=t,pageTotal:D.pagination.pageTotal,"onUpdate:pageTotal":t=>D.pagination.pageTotal=t,onList:w,sync:!0},null)])])])}}),tt=r({name:"home-practiceData",props:{timer:{type:Array,defaut:()=>[]}},setup(t,{expose:e}){const r=i(),s=y(),m=l(null),{setOptions:f}=R(m),b=l(!0),T=n({height:"360px",width:"100%",practiceDuration:0,evaluateUserCount:0,evaluateFrequency:0,publishUserCount:0,publishCount:0,practiceUserCount:0,paymentAmount:0,practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[]}),D=n({loading:!1,pagination:{page:1,rows:10,pageTotal:4},searchForm:{orderBy:null,sort:null},tableList:[],goCourseVisiable:!1}),A=o((()=>t.timer)),x=(t,e)=>d(v,{showArrow:!1,placement:"top-start"},{trigger:()=>d("div",{class:U.cell},[t,d("img",{class:U.sortIcon,src:"descend"===e.sortOrder?G:"ascend"===e.sortOrder?B:P},null)]),default:"descend"===e.sortOrder?"点击升序":"ascend"===e.sortOrder?"取消排序":"点击降序"}),w=n({title:()=>x("练习总时长",w),key:"practiceDuration",sorter:!0,sortOrder:!1,render:t=>d(p,null,[z(t.practiceDuration||0)])}),S=n({title:()=>x("练习天数",S),key:"practiceDays",sorter:!0,sortOrder:!1}),O=n({title:()=>x("平均练习时长",O),key:"practiceDurationAvg",sorter:!0,sortOrder:!1,render:t=>d(p,null,[z(t.practiceDurationAvg||0)])}),I=n({title:()=>x("评测次数",I),key:"evaluateFrequency",sorter:!0,sortOrder:!1}),L=n({title:()=>x("作品数量",L),key:"publishCount",sorter:!0,sortOrder:!1,render:t=>t.publishCount||0}),k=n({title:()=>x("最新作品分数",k),key:"publishScore",sorter:!0,sortOrder:!1,render:t=>null===t.publishScore?"--":t.publishScore}),F=n({title:()=>x("最新作品时间",F),key:"publishTime",sorter:!0,sortOrder:!1,render:t=>t.publishTime||"--"}),j=()=>[{title:"学生姓名",key:"studentName",render:t=>d(v,{showArrow:!1,placement:"top-start"},{trigger:()=>d("div",{style:{userSelect:"all",cursor:"pointer"},onClick:()=>(t=>{const e=document.createElement("input");e.value=t,document.body.appendChild(e),e.select(),e.setSelectionRange(0,e.value.length),document.execCommand("Copy"),document.body.removeChild(e),s.success("复制成功")})(t.studentName)},[t.studentName]),default:"点击复制"})},{title:"年级班级",key:"date",render:t=>d(p,null,[t.currentGradeNum&&t.currentClass?h(t.currentGradeNum)+"年级"+t.currentClass+"班":""])},{title:"乐器",key:"instrumentName",render:t=>d(p,null,[t.instrumentName||"--"])},w,S,O,I,{title:()=>d("span",{style:{display:"flex",alignItems:"center"}},[u("发布作品 "),d(v,{showArrow:!1},{trigger:()=>d("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA2tJREFUWEfFV0tLW0EU/kbvbdWUImi0JFWjJioJFB8EiiAYIbZ0Uei6v6Auuy11Yem2u9pf0HWhUChGiOAmWPCJYpqC8ZEQjQjGiNbETD1jbkjSxLk3reRAspg5851vznMug05ZX1+/E41GPQCeA3ACsGR/hBDN/jYAfLVYLH6Xy3WhB5rJlPx+/4N0Oj3JOX8J4L5MP7ufYIx9VhRlyuPxxG46U5ZAKBS6u7W19QbAawAmnYaL1U6vSH/o7Ox873A4fpfCKEkge+svnPPHFRouOMYYCyiK8qKUN/4iMDs7+yiTyXwD8PB/GM/D2GOMPfN6vWv5uAUE6OapVOrHLRjXbO6pqurO90SOAMU8HA7PGXE7YwyqquLiQlfCCxIUDpvNNqrlRI7AzMzMFIC3MrfX1taiq6sLLS0tqK+vJ0BcXl4ikUggFArh+PhYBkH778bHxycFIfrLuv6XLNsbGhowNDSEurq6skY2Nzexu7srI3GqqqqdQiEI+Hy+ac75K9kpt9uNxsZGoXZ0dISDgwNx++bmZrS2tor1TCaDQCCA01OqwPLCGPvk9XonGHW4SCQSlzUZs9mM/v5+gXh4eIilpaUCdKfTCavVKtYoFOFwWHafhNVqNTOfz/fkKvG+y7Qp7t3d3UKNjBOJfGlqasLg4KBYisViWFsrqLaS8FcJ+ZQIfOScT8gI2O124WqSlZUVnJ2dFRyhvYGBAbEWiUSwsUFj4WZhjE0TAT/nfFSmLNun25MXSILBIHZ2dmRHqILmiECQc94j1b5Boa+vD21tbUIjlUphfn5eJKdMGGM/icAJ5/yeTLncvsvlgsVCk/naOOWHzl5AHkj+EwGHwwGbzSaMn5+fY3FxUVp++RdhjJ1UHAJqSsPDw7lOuLCwgGQyaciRWggqSsKOjg709FynDiUcJZ5R0ZJQVxkWg/f29qK9vV0sr66uYn9/36h98p4oQ12NqBhdURTQj4SmIbVgoyIakd5WXAxuMplE6ZHx7e1tXWVXhHHdimlR7zDKBxgZGclNxUpyIDeMCFTvONYI1NTUYGxsTFQASTwex/LyspEIFI5jOqn3QaJZ0XpAOp0Ws4HGswEpfJDQwUqeZPQco5ZrJAHLPsnyQlGdR6nmvqo+yzUSVf0w0UhU9dMsP5ur9nFaXFK39Xn+B0AaxPFhpWhWAAAAAElFTkSuQmCC",class:U.tipImg},null),default:()=>"筛选时间段内评测是否发布作品"})]),key:"publishFlag",render:t=>t.publishFlag?"是":"否"},L,k,F,{title:"操作",key:"titleImg",render:t=>d(g,{type:"primary",text:!0,onClick:()=>{C("evaluatingRcode","tabName",{path:"/studentDetail"}),r.push({path:"/studentDetail",query:{studentId:t.studentId,studentName:t.studentName,times:JSON.stringify(A.value)}})}},{default:()=>[u("详情")]})}],E=t=>{t.order?(D.searchForm.orderBy=t.columnKey,w.sortOrder=!1,S.sortOrder=!1,O.sortOrder=!1,I.sortOrder=!1,L.sortOrder=!1,k.sortOrder=!1,F.sortOrder=!1,"practiceDuration"==t.columnKey&&(w.sortOrder=t.order),"practiceDays"==t.columnKey&&(S.sortOrder=t.order),"practiceDurationAvg"==t.columnKey&&(O.sortOrder=t.order),"evaluateFrequency"==t.columnKey&&(I.sortOrder=t.order),"publishCount"==t.columnKey&&(L.sortOrder=t.order),"publishScore"==t.columnKey&&(k.sortOrder=t.order),"publishTime"==t.columnKey&&(F.sortOrder=t.order),D.searchForm.sort="ascend"==t.order?"asc":"desc"):(D.searchForm.orderBy="",D.searchForm.sort="",w.sortOrder=!1,S.sortOrder=!1,O.sortOrder=!1,I.sortOrder=!1,L.sortOrder=!1,k.sortOrder=!1,F.sortOrder=!1),K()},K=async()=>{D.loading=!0;try{const t=await M({page:1,rows:999,...D.searchForm,..._(A.value,["startTime","endTime"],"YYYY-MM-DD")});D.tableList=t.data.rows}catch(t){console.log(t)}D.loading=!1},Q=async()=>{D.loading=!0;try{const e=await(t={page:1,rows:999,..._(A.value,["startTime","endTime"],"YYYY-MM-DD")},a.post("/edu-app/musicPracticeRecordStat/trainingStat",{data:t}));T.dateList=e.data.trainingStatDetailList.map((t=>t.date)),T.timeList=e.data.trainingStatDetailList.map((t=>t.practiceUserCount)),H()}catch{}var t;D.loading=!1},Z=async()=>{D.loading=!0;try{const{data:e}=await(t={page:1,rows:999,..._(A.value,["startTime","endTime"],"YYYY-MM-DD")},a.post("/edu-app/musicPracticeRecordStat/practicePageStat",{data:t}));T.practiceDuration=e.practiceDuration,T.practiceDurationAvg=e.practiceDurationAvg,T.practiceUserCount=e.practiceUserCount,T.evaluateUserCount=e.evaluateUserCount,T.evaluateFrequency=e.evaluateFrequency,T.publishUserCount=e.publishUserCount,T.publishCount=e.publishCount}catch{}var t;D.loading=!1},J=async()=>{await Z(),await Q(),await K()};e({getList:J});const H=()=>{f({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!1,selected:{"练习人数":b.value}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{show:!0},data:T.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:T.timeList,type:"bar",barWidth:"48px",itemStyle:{normal:{barBorderRadius:[8,8,0,0],color:"#CDE5FF"},emphasis:{focus:"series",color:"#3583FA"}}}],formatter:t=>Array.isArray(t)?[t[0].axisValueLabel,...t.map((t=>`<br/>${t.marker}<span style="margin-top:10px;margin-left:5px;font-size: 13px;font-weight: 500;\n color: #131415;font-weight: 600;\n margin-top:12px\n line-height: 18px;">练习人数: ${t.value}人 </span>`))].join(""):t})};return J(),()=>d(p,null,[d("div",{class:U.homeTrainData},[d("div",{class:U.TrainDataTop},[d("div",{class:U.TrainDataTopLeft},[d("div",{class:U.TrainDataItem},[d("p",{class:U.TrainDataItemTitle},[d("div",null,[d("span",null,[d(N,{from:0,to:T.practiceUserCount},null)]),u("人")])]),d("p",{class:U.TrainDataItemsubTitle},[u("练习人数")])]),d("div",{class:U.TrainDataItem},[d("p",{class:U.TrainDataItemTitle},[W(T.practiceDurationAvg)>0?d("div",null,[d("span",null,[d(N,{from:0,to:W(T.practiceDurationAvg)},null)]),u("时")]):null,W(T.practiceDurationAvg)>0||Y(T.practiceDurationAvg)>0?d("div",null,[d("span",null,[d(N,{from:0,to:Y(T.practiceDurationAvg)},null)]),u("分")]):null,d("div",null,[d("span",null,[d(N,{from:0,to:q(T.practiceDurationAvg)},null)]),u("秒")])]),d("p",{class:U.TrainDataItemsubTitle},[u("平均每天练习时长")])]),d("div",{class:U.TrainDataItem},[d("p",{class:U.TrainDataItemTitle},[W(T.practiceDuration)>0?d("div",null,[d("span",null,[d(N,{from:0,to:W(T.practiceDuration)},null)]),u("时")]):null,W(T.practiceDuration)>0||Y(T.practiceDuration)>0?d("div",null,[d("span",null,[d(N,{from:0,to:Y(T.practiceDuration)},null)]),u("分")]):null,d("div",null,[d("span",null,[d(N,{from:0,to:q(T.practiceDuration)},null)]),u("秒")])]),d("p",{class:U.TrainDataItemsubTitle},[u("练习总时长")])]),d("div",{class:U.TrainDataItem},[d("p",{class:U.TrainDataItemTitle},[d("div",null,[d("span",null,[d(N,{from:0,to:T.evaluateUserCount},null),u("/"),d(N,{from:0,to:T.evaluateFrequency},null)])])]),d("p",{class:U.TrainDataItemsubTitle},[u("评测人数/次数")])]),d("div",{class:U.TrainDataItem},[d("p",{class:U.TrainDataItemTitle},[d("div",null,[d("span",null,[d(N,{from:0,to:T.publishUserCount},null),u("/"),d(N,{from:0,to:T.publishCount},null)])])]),d("p",{class:U.TrainDataItemsubTitle},[u("作品人数/数量")])])]),d("div",{class:U.TrainDataTopRight},null)]),d("div",{class:U.chatrs},[d("div",{ref:m,style:{height:T.height,width:T.width}},null)]),d("div",{class:[U.tableWrap,U.noSort]},[d(c,{class:U.classTable,loading:D.loading,columns:j(),"onUpdate:sorter":E,data:D.tableList},{empty:()=>d(V,null,null)})])])])}}),et=r({name:"student-studentList",props:{timer:{type:Array,defaut:()=>[]}},setup(t,{emit:e,expose:a}){const r=n({searchWord:"",orchestraType:null,courseTypeCode:null,subjectId:null,classId:null,studentType:null,loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[]}),l=n({ase:0,sortType:1}),i=o((()=>(console.log("ranking===>"),t.timer))),s=async()=>{r.loading=!0;try{const t=await Q({...r.pagination,...l,..._(i.value,["startTime","endTime"],"YYYY-MM-DD")});r.tableList=t.data.rows,r.pagination.pageTotal=t.data.total}catch(t){console.log(t)}r.loading=!1};a({getList:s}),s(),f((async()=>{b((()=>{document.querySelectorAll(".n-data-table-sorter").forEach((t=>{t.style.display="none"}))}))}));const g=t=>{if(t){const e={practiceDuration:1,practiceDays:2,practiceDurationAvg:3};l.sortType=e[t.columnKey],"practiceDuration"==t.columnKey&&(y.sortOrder=t.order,m.sortOrder=!1,h.sortOrder=!1),"practiceDays"==t.columnKey&&(m.sortOrder=t.order,y.sortOrder=!1,h.sortOrder=!1),"practiceDurationAvg"==t.columnKey&&(h.sortOrder=t.order,m.sortOrder=!1,y.sortOrder=!1),l.ase="ascend"==t.order?1:0}else l.ase=0,l.sortType=1,m.sortOrder=!1,y.sortOrder=!1,h.sortOrder=!1;s()},m=n({title:()=>d(v,{showArrow:!1,placement:"top-start"},{trigger:()=>d("div",{class:U.cell},[u("练习天数"),d("img",{class:U.sortIcon,src:"descend"===m.sortOrder?G:"ascend"===m.sortOrder?B:P},null)]),default:"descend"===m.sortOrder?"点击升序":"ascend"===m.sortOrder?"取消排序":"点击降序"}),key:"practiceDays",sorter:!0,sortOrder:!1,render:t=>d(p,null,[t.practiceDays?t.practiceDays:0,u("天")])}),y=n({title:()=>d(v,{showArrow:!1,placement:"top-start"},{trigger:()=>d("div",{class:U.cell},[u("练习总时长"),d("img",{class:U.sortIcon,src:"descend"===y.sortOrder?G:"ascend"===y.sortOrder?B:P},null)]),default:"descend"===y.sortOrder?"点击升序":"ascend"===y.sortOrder?"取消排序":"点击降序"}),key:"practiceDuration",sorter:!0,sortOrder:!1,render:t=>d(p,null,[t.practiceDuration?z(t.practiceDuration,1):0])}),h=n({title:()=>d(v,{showArrow:!1,placement:"top-start"},{trigger:()=>d("div",{class:U.cell},[u("平均每天练习时长"),d("img",{class:U.sortIcon,src:"descend"===h.sortOrder?G:"ascend"===h.sortOrder?B:P},null)]),default:"descend"===h.sortOrder?"点击升序":"ascend"===h.sortOrder?"取消排序":"点击降序"}),key:"practiceDurationAvg",sorter:!0,sortOrder:!1,render:t=>d(p,null,[t.practiceDurationAvg?z(t.practiceDuration,1):0])});return()=>d("div",{class:U.listWrap},[d("div",{class:U.tableWrap},[d(c,{class:U.classTable,loading:r.loading,columns:[{title:"姓名",key:"studentName"},{title:"手机号",key:"studentPhone"},m,y,h],data:r.tableList,"onUpdate:sorter":g},{empty:()=>d(V,null,null)}),d(F,{page:r.pagination.page,"onUpdate:page":t=>r.pagination.page=t,pageSize:r.pagination.rows,"onUpdate:pageSize":t=>r.pagination.rows=t,pageTotal:r.pagination.pageTotal,"onUpdate:pageTotal":t=>r.pagination.pageTotal=t,onList:s,sync:!0},null)])])}}),at=r({name:"data-guide",emits:["close"],setup(t,{emit:e}){const a=n({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:Z("data1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:T(-4),left:T(-100),width:T(472),height:T(256)},btnsStyle:{bottom:T(30),left:T(-110)},boxStyle:{borderRadius:"25px"},eleRectPadding:{left:14,top:14,width:28,height:28}},{ele:"",img:Z("data2.png"),imgStyle:{top:T(-4),left:T(-100),width:T(509),height:T(230)},btnsStyle:{bottom:T(30),left:T(-110)},boxStyle:{borderRadius:"25px"},eleRectPadding:{left:14,top:14,width:28,height:28}},{ele:"",img:Z("data3.png"),imgStyle:{top:"100%",left:T(-105),width:T(438),height:T(230)},btnsStyle:{bottom:T(30),left:T(-115)},boxStyle:{borderRadius:"25px"},eleRectPadding:{left:14,top:14,width:28,height:28}}],step:0}),r=l(!1),i=l({});(async()=>{try{const t=localStorage.getItem("teacher-guideInfo");i.value=t?JSON.parse(t)||null:{},i.value&&i.value.dataGuide?r.value=!1:r.value=!0}catch(t){console.log(t)}})();const s=()=>{const t=document.getElementById(`data-${a.step}`);if(t){const e=t.getBoundingClientRect(),r=a.steps[a.step].eleRectPadding?.left||0,l=a.steps[a.step].eleRectPadding?.top||0,i=a.steps[a.step].eleRectPadding?.width||0,s=a.steps[a.step].eleRectPadding?.height||0;a.box={left:e.x-r+"px",top:e.y-l+"px",width:e.width+i+"px",height:e.height+s+"px"}}else g()},o=async t=>{try{if("data-module"!==t)return;i.value?i.value.dataGuide=!1:i.value={dataGuide:!1};try{H({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(i.value)})}catch(e){console.log(e)}a.step=0,s(),r.value=!0}catch{}};f((()=>{s(),window.addEventListener("resize",c),D.on("teacher-guideInfo",o)}));const c=()=>{s()};A((()=>{window.removeEventListener("resize",c),D.off("teacher-guideInfo",o)}));const g=()=>{a.step>=4?m():(a.step=a.step+1,s())},m=async()=>{i.value?i.value.dataGuide=!0:i.value={dataGuide:!0};try{H({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(i.value)})}catch(t){console.log(t)}r.value=!1};return()=>d(p,null,[r.value?x(d("div",{"onUpdate:show":t=>r.value=t,class:["n-modal-mask","n-modal-mask-guide"]},[d("div",{class:J.content,onClick:()=>g()},[d("div",{class:J.backBtn,onClick:t=>{t.stopPropagation(),m()}},[u("跳过")]),d("div",{class:J.box,style:{...a.box,...a.steps[a.step]?.boxStyle},id:`modeType-${a.step}`},[a.steps.map(((t,e)=>d("div",{onClick:t=>t.stopPropagation(),class:J.item,style:"bottom"==t.type?{display:e===a.step?"":"none",left:`${t.eleRect?.left}px`,top:`-${t.imgStyle?.height}`}:{display:e===a.step?"":"none",left:`${t.eleRect?.left}px`,top:`${a.box?.height}`}},[d("img",{class:J.img,style:t.imgStyle,src:t.img},null),d("div",{class:J.btns,style:t.btnsStyle},[a.step+1==a.steps.length?d(p,null,[d("div",{class:[J.endBtn],onClick:()=>m()},[u("完成")]),d("div",{class:J.nextBtn,onClick:()=>{a.step=0,s()}},[u("再看一遍")])]):d("div",{class:J.btn,onClick:()=>g()},[u("下一步 ("),a.step+1,u("/"),a.steps.length,u(")")])])])))])])]),[[w,r.value,"show"]]):null])}});t("default",r({name:"data-module",setup(){const t=l("training"),e=s();L((e=>{e.form.tabName&&(t.value=e.form.tabName)}));const a=l(),r=l(),i=l(),n=l(!1),o=l([j((new Date).getTime()),E((new Date).getTime())]),c=()=>{console.log(o.value),a.value&&a.value.getList(),r.value&&r.value.getList(),i.value&&i.value.getList()};return f((()=>{setTimeout((()=>{n.value=!0}),800)})),()=>d("div",null,[d("div",{class:X.listWrap},[d(S,{"onUpdate:value":[t=>(t=>{C(t,"tabName",e)})(t),e=>t.value=e],class:X.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(O,{name:"training",tab:"作业统计"},{default:()=>[d($,{ref:a,timer:o.value},null)],tab:()=>d("span",{id:"data-0"},[u("作业统计")])}),d(O,{name:"practice",tab:"学练数据"},{default:()=>[d(tt,{ref:r,timer:o.value},null)],tab:()=>d("span",{id:"data-1"},[u("学练数据")])}),d(O,{name:"ranking",tab:"学练排行"},{default:()=>[d(et,{ref:i,timer:o.value},null)],tab:()=>d("span",{id:"data-2"},[u("学练排行")])})],suffix:()=>d(p,null,[d("div",{class:X.homeStudyInfoDate},[d(m,null,{default:()=>[d(k,I({clearable:!1},{value:o.value,"onUpdate:value":t=>o.value=t,separator:"-",type:"daterange",timerValue:o.value}),null),d(g,{type:"primary",class:X.searchBtn,onClick:()=>c()},{default:()=>[u("搜索")]}),d(g,{type:"primary",onClick:()=>(console.log("点击重置"),o.value=[j((new Date).getTime()),E((new Date).getTime())],void b((()=>{c()}))),ghost:!0,class:X.resetBtn},{default:()=>[u("重置")]})]})])])}),n.value?d(at,null,null):null])])}}))}}}));