index-legacy-e3ae1f33-1715840129614.js 21 KB

1
  1. System.register(["./index-legacy-f35addb7-1715840129614.js","./use-async-legacy-2751088f-1715840129614.js","./index-legacy-e05a8185-1715840129614.js","./index2.module-legacy-7d2fc25d-1715840129614.js","./useECharts-legacy-467b80c9-1715840129614.js","./index-legacy-84c89aec-1715840129614.js","./dateFormat-legacy-30a125a5-1715840129614.js","./api-legacy-c1f38ec7-1715840129614.js","./index-legacy-2f080daf-1715840129614.js","./NumberAnimation-legacy-cf30dbc7-1715840129614.js","./index-legacy-7dba2a59-1715840129614.js","./api-legacy-dac26997-1715840129614.js","./index-legacy-96518846-1715840129614.js"],(function(t,e){"use strict";var a,i,l,s,n,r,o,d,c,u,p,g,m,A,v,y,h,f,b,w,T,D,x,S,C,I,R,L,B,E,U,z,O,k,Y,W,j,G,K,N,_,F,P,Q;return{setters:[t=>{a=t.E,i=t.d,l=t.r,s=t.u,n=t.a,r=t.e,o=t.S,d=t.p,c=t.f,u=t.k,p=t.aE,g=t.F,m=t.j,A=t.w,v=t.Q,y=t.T,h=t.Z,f=t.A,b=t.R,w=t._,T=t.$,D=t.q,x=t.t,S=t.x},t=>{C=t.g,I=t.a},t=>{R=t.C},t=>{L=t.s},t=>{B=t.u},t=>{E=t.P},t=>{U=t.b,z=t.c,O=t.d,k=t.g,Y=t.a},t=>{W=t.j,j=t.s,G=t.l},t=>{K=t.T},t=>{N=t.N},t=>{_=t.g,F=t.s},t=>{P=t.g,Q=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 V={listWrap:"_listWrap_x49zf_1",customTabs:"_customTabs_x49zf_7",searchBtn:"_searchBtn_x49zf_28",resetBtn:"_resetBtn_x49zf_33"},M=i({name:"home-trainData",props:{timer:{type:Array,defaut:()=>[]}},setup(t,{expose:e}){const i=l(null),{setOptions:v}=B(i),y=l(!0),h=l(!0),f=s();n();const b=r({height:"360px",width:"100%",studentNum:0,paymentAmount:0,dateList:[],studentList:[],payInfoList:[]}),w=l({qualifiedRate:0,qualifiedStudentCount:0,submitStudentCount:0,totalStudentCount:0,trainingCount:0,trainingRate:0}),T=r({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),D=o((()=>t.timer)),x=t=>{console.log(t),f.push({path:"/homework-record-detail",query:{id:t.id,name:t.name}})},S=async()=>{try{const e=await(t={...U(D.value,["startTime","endTime"],"YYYY-MM-DD")},a.post("/edu-app/lessonTraining/trainingStat",{data:t}));w.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)),C()}catch(e){console.log(e)}var t;try{const t=await W({...T.pagination,...U(D.value,["startTime","endTime"],"YYYY-MM-DD")});T.tableList=t.data.rows,T.pagination.pageTotal=t.data.total,T.loading=!1}catch(e){T.loading=!1,console.log(e)}};e({getList:S});const C=()=>{v({tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:2,color:"#A9C7FF"}}},legend:{show:!1,selected:{"合格人数":y.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 d((()=>{S()})),()=>c(g,null,[c("div",{class:L.homeTrainData},[c("div",{class:L.TrainDataTop},[c("div",{class:L.TrainDataTopLeft},[c("div",{class:L.TrainDataItem},[c("p",{class:L.TrainDataItemTitle},[c("div",null,[c("span",null,[c(N,{from:0,to:w.value.trainingCount},null)]),u("次")])]),c("p",{class:L.TrainDataItemsubTitle},[u("作业次数")])]),c("div",{class:L.TrainDataItem},[c("p",{class:L.TrainDataItemTitle},[c("div",null,[c("span",null,[c(N,{from:0,to:w.value.totalStudentCount},null)]),u("人次")])]),c("p",{class:L.TrainDataItemsubTitle},[u("应交总人次")])]),c("div",{class:L.TrainDataItem},[c("p",{class:L.TrainDataItemTitle},[c("div",null,[c("span",null,[c(N,{from:0,to:w.value.submitStudentCount},null)]),u("人次")])]),c("p",{class:L.TrainDataItemsubTitle},[u("提交总人次")])]),c("div",{class:L.TrainDataItem},[c("p",{class:L.TrainDataItemTitle},[c("div",null,[c("span",null,[c(N,{from:0,to:w.value.qualifiedStudentCount},null)]),u("人次")])]),c("p",{class:L.TrainDataItemsubTitle},[u("合格总人次")])]),c("div",{class:L.TrainDataItem},[c("p",{class:L.TrainDataItemTitle},[c("div",null,[c("span",null,[c(N,{from:0,to:w.value.trainingRate},null)]),u("%")])]),c("p",{class:L.TrainDataItemsubTitle},[u("作业提交率")])]),c("div",{class:L.TrainDataItem},[c("p",{class:L.TrainDataItemTitle},[c("div",null,[c("span",null,[c(N,{from:0,to:w.value.qualifiedRate},null)]),u("%")])]),c("p",{class:L.TrainDataItemsubTitle},[u("作业合格率")])])]),c("div",{class:L.TrainDataTopRight},[c("div",{onClick:()=>{y.value=!y.value,C()},class:[L.DataTopRightItem,y.value?"":L.DataTopRightItemDis]},[c("div",{class:L.DataTopRightDot},null),c("p",null,[u("合格人数")])]),c("div",{onClick:()=>{h.value=!h.value,C()},class:[L.DataTopRightItem,h.value?"":L.DataTopRightItemDis]},[c("div",{class:[L.DataTopRightDot,L.red]},null),c("p",null,[u("不合格人数")])])])]),c("div",{class:L.chatrs},[c("div",{ref:i,style:{height:b.height,width:b.width}},null)]),c("div",{class:L.tableWrap},[c(p,{class:L.classTable,loading:T.loading,columns:[{title:"布置老师",key:"teacherName"},{title:"布置时间",key:"createTime",render:t=>c(g,null,[t.createTime])},{title:"截止时间",key:"expireDate",render:t=>c(g,null,[t.expireDate])},{title:"训练状态",key:"status",render:t=>0==t.status?c("div",{class:L.indDot},[" ",c("span",null,null),u(" 进行中")]):c("div",{class:L.endDot},[c("span",null,null),u("已结束")])},{title:"布置人数",key:"expectNum"},{title:"提交人数",key:"trainingNum"},{title:"合格人数",key:"standardNum"},{title:"提交率",key:"trainingRate",render:t=>c(g,null,[t.trainingRate,u("%")])},{title:"合格率",key:"qualifiedRate",render:t=>c(g,null,[t.qualifiedRate,u("%")])},{title:"操作",key:"id",render:t=>c(A,null,{default:()=>[c(m,{text:!0,type:"primary",onClick:()=>x(t)},{default:()=>[u("详情")]})]})}],data:T.tableList},{empty:()=>c(K,null,null)}),c(E,{page:T.pagination.page,"onUpdate:page":t=>T.pagination.page=t,pageSize:T.pagination.rows,"onUpdate:pageSize":t=>T.pagination.rows=t,pageTotal:T.pagination.pageTotal,"onUpdate:pageTotal":t=>T.pagination.pageTotal=t,onList:S,sync:!0},null)])])])}}),J=i({name:"home-practiceData",props:{timer:{type:Array,defaut:()=>[]}},setup(t,{expose:e}){const i=l(null),{setOptions:s}=B(i),n=l(!0),m=r({height:"360px",width:"100%",practiceUserCount:0,paymentAmount:0,practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[]}),A=r({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),v=o((()=>t.timer)),y=async()=>{try{const e=await j({page:1,rows:999,...U(v.value,["startTime","endTime"],"YYYY-MM-DD")}),i=await(t={page:1,rows:999,...U(v.value,["startTime","endTime"],"YYYY-MM-DD")},a.post("/edu-app/musicPracticeRecordStat/trainingStat",{data:t}));A.tableList=e.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)),h()}catch(e){console.log(e)}var t};e({getList:y});const h=()=>{s({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!1,selected:{"练习人数":n.value}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{show:!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,symbolSize:10,type:"line",symbol:"circle",smooth:!0,itemStyle:{normal:{barBorderRadius:[8,8,0,0],color:"#3583FA"},emphasis:{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 d((()=>{y()})),()=>c(g,null,[c("div",{class:L.homeTrainData},[c("div",{class:L.TrainDataTop},[c("div",{class:L.TrainDataTopLeft},[c("div",{class:L.TrainDataItem},[c("p",{class:L.TrainDataItemTitle},[c("div",null,[c("span",null,[c(N,{from:0,to:m.practiceUserCount},null)]),u("人")])]),c("p",{class:L.TrainDataItemsubTitle},[u("练习人数")])]),c("div",{class:L.TrainDataItem},[c("p",{class:L.TrainDataItemTitle},[z(m.practiceDurationAvg)>0?c("div",null,[c("span",null,[c(N,{from:0,to:z(m.practiceDurationAvg)},null)]),u("分")]):null,c("div",null,[c("span",null,[c(N,{from:0,to:O(m.practiceDurationAvg)},null)]),u("秒")])]),c("p",{class:L.TrainDataItemsubTitle},[u("平均每天练习时长")])])]),c("div",{class:L.TrainDataTopRight},null)]),c("div",{class:L.chatrs},[c("div",{ref:i,style:{height:m.height,width:m.width}},null)]),c("div",{class:L.tableWrap},[c(p,{class:L.classTable,loading:A.loading,columns:[{title:"日期",key:"date"},{title:"练习人数",key:"practiceUserCount",render:t=>c(g,null,[t.practiceUserCount,u("人")])},{title:"平均每天练习时长",key:"practiceDuration",render:t=>c(g,null,[" ",c(g,null,[t.practiceDuration?z(t.practiceDuration)>0?z(t.practiceDuration)+"分"+O(t.practiceDuration)+"秒":O(t.practiceDuration)+"秒":"0分钟"])])}],data:A.tableList},{empty:()=>c(K,null,null)})])])])}}),X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAaVJREFUWEft1i9oVlEYx/HPKwoiE7dgGCz5BwymgW0MlkSzjAVBTMKKCCLojE5hC5tBbBajZWAxGMbQJLLgwCBiELWYnJPhBL0Hbrjhdfc55w7eslvP8/x+3/Occ5/z9Az46w3Y3z5AlwoM4RbW8LL0KEsBDuEmTuEvHmG9BKIEIOVcw7mG4W8s4FMuRAnAJVzoY/QD8/ieA5ELMFnt8souBl/xoLobv6IQOQBncR0HWsTfYxl/IhBRgDHcxuGIKF7jSSQ2AjBc7eYuRiKCjZgVPG/LiQDcwck2of+sL2Fjt9wIwGkcLQBI/eFD1S9+dgUo8I6nRCoQVyuI3AeIVOAijhVUN6W8wueul/Bq9dxOFABs4z6+dAU4iBs4kwGRfsGHeNeWEzmCpHEEqSGNtgnW60+xGomNAiSt45gLNKUXeBYxTzE5ACn+RD2GpYmo3/cWj+spKcSQC5BExzHbB/4jFqsq7YSc66ASgJR6HtMNozQF3cNmjnnJETT1L2MKW/UU9C3XvCtAmoxm8KZ+9Ur8sy9hkUnXRrTnpk3B0ku4Z1ADB/gHdk40IWFOgVEAAAAASUVORK5CYII=",Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAfNJREFUWEftlj1oVEEUhb+bzSZr4Q8KSVTSGO0shIBgZStWKmohSEAQ0com4iYigay+1UJsRLSwECwUA0EEGwvFdEJsJEVEDG4WURTREJEQ381OiLDIZufOPCHN3vbde843Z4aZJ6xxyRr70wLIksB64ALwEngeu5WxAHlgENgJKHALmIyBiAFwM2eAvXWGC8A14EMoRAzAUeBgA6OfQAn4GgIRCrC/tsqBJgZVIKmdjV9WiBCA3cB5oM0jPgXcBBYtEFaAXqAIFCyiwARwz9JrAdhUW80lYLNFsK5nHHjim7EADAN9PqFVvt8A3jabtQDsAjZEALj74R0wlxUgwts+YknArhbR2QLwJtBT1LMoXcHpKtrRxuOPibiLadXyAwzpdU05HgwA8+0FDldHZDoTQP8dzc/OcB9lnxlCSfPCqdmyvPDNeBNwAjvKunH+O2PI8vvvLc0x/OWKPPA2gv2fcFtJe9M5xlXY0lRYuPs5kasWc9djSuCv2PYh3fMn5aFCZyMDgWefEs6JiLsFTRUE4BS3XtQDKdxuAD+5rsCJmRH5bXJeaQoGcHPdRT2N4h6p5RKo5IRD1US+hZgHb0G9eHdRR1FOAj862jlSKcn7UPNMAMceae7VGy7nlaeVsryOMc8EEGv471zUGfhf5q0EXAJLvU1qIfWKMrsAAAAASUVORK5CYII=",q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAfBJREFUWEftlj9oU1EUxn+nDSlFA5ZCtGIF/wydraMU3ERcpFCyqOBS6ijUxGTJIG2COGigq4Kg0krBTVwEEZfQRTdblza1FQUhKMRac3wXEqiY9P5JoUveer9zvt/7zn3vXmGfH9lnf7oAwQkcz+jAL3gm8HSzII9CRxkEcPqB9lXXeSLCKKC9MPm5IK9CILwBVFWGspRUudQ0FKjFepiozMh7XwhvgCMZTStM/WekfI31c3k9LxUfCC+Aw1lNUafQ1kBZTvQzvpKXqiuEM8BwWse2hIdAr6X5u2MnuLY0Kb9dIJwAjt7WkT/Kc+CgU1NhYXNWpp20NtGpvCZ/1HgBDNm0/6wr974UpWSrsSaQTOuiCGdsjVqtx5Wra0V5s1utFWA4p2e3lUFfAKmjMSivFuR7RwC+xr56awK+DX31XQCXBC4Ch3yjNYcU8BZY63QTXgfOBQDUgBlg17PBJYEYcBMY8YCoA/eBD7YaFwDT4wCQ9fgbPgZe28zNuiuA0SaBHJCwNH4JzLuY+wIY/UngVjTbeBuDpQh0rrEBnRh8Emg2NNewGy3S+xSN6m40qi0n54YoBMCUXgAmdhh9A+5Em9X5ItKsDQUw9VeA88DPxue24fPmewFgbkYpoAx8DDEP2YShPm3rOhnBnsB0Af4CGTRoIX3GdrkAAAAASUVORK5CYII=",H=i({name:"student-studentList",props:{timer:{type:Array,defaut:()=>[]}},setup(t,{emit:e,expose:a}){const i=r({searchWord:"",orchestraType:null,courseTypeCode:null,subjectId:null,classId:null,studentType:null,loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[]}),l=r({ase:0,sortType:1}),s=o((()=>(console.log("ranking===>"),t.timer))),n=async()=>{i.loading=!0;try{const t=await G({...i.pagination,...l,...U(s.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)}};a({getList:n}),d((async()=>{await n(),v((()=>{document.querySelectorAll(".n-data-table-sorter").forEach((t=>{t.style.display="none"}))}))}));const m=t=>{if(t){const e={practiceDuration:1,practiceDays:2,practiceDurationAvg:3};l.sortType=e[t.columnKey],"practiceDuration"==t.columnKey&&(h.sortOrder=t.order,A.sortOrder=!1,f.sortOrder=!1),"practiceDays"==t.columnKey&&(A.sortOrder=t.order,h.sortOrder=!1,f.sortOrder=!1),"practiceDurationAvg"==t.columnKey&&(f.sortOrder=t.order,A.sortOrder=!1,h.sortOrder=!1),l.ase="ascend"==t.order?1:0}else l.ase=0,l.sortType=1,A.sortOrder=!1,h.sortOrder=!1,f.sortOrder=!1;n()},A=r({title:()=>c(y,{showArrow:!1,placement:"top-start"},{trigger:()=>c("div",{class:L.cell},[u("练习天数"),c("img",{class:L.sortIcon,src:"descend"===A.sortOrder?Z:"ascend"===A.sortOrder?q:X},null)]),default:"descend"===A.sortOrder?"点击升序":"ascend"===A.sortOrder?"取消排序":"点击降序"}),key:"practiceDays",sorter:!0,sortOrder:!1,render:t=>c(g,null,[t.practiceDays?t.practiceDays:0,u("天")])}),h=r({title:()=>c(y,{showArrow:!1,placement:"top-start"},{trigger:()=>c("div",{class:L.cell},[u("练习总时长"),c("img",{class:L.sortIcon,src:"descend"===h.sortOrder?Z:"ascend"===h.sortOrder?q:X},null)]),default:"descend"===h.sortOrder?"点击升序":"ascend"===h.sortOrder?"取消排序":"点击降序"}),key:"practiceDuration",sorter:!0,sortOrder:!1,render:t=>c(g,null,[t.practiceDuration?z(t.practiceDuration)>0?z(t.practiceDuration)+"分"+O(t.practiceDuration)+"秒":O(t.practiceDuration)+"秒":0])}),f=r({title:()=>c(y,{showArrow:!1,placement:"top-start"},{trigger:()=>c("div",{class:L.cell},[u("平均每天练习时长"),c("img",{class:L.sortIcon,src:"descend"===f.sortOrder?Z:"ascend"===f.sortOrder?q:X},null)]),default:"descend"===f.sortOrder?"点击升序":"ascend"===f.sortOrder?"取消排序":"点击降序"}),key:"practiceDurationAvg",sorter:!0,sortOrder:!1,render:t=>c(g,null,[t.practiceDurationAvg?z(t.practiceDurationAvg)>0?z(t.practiceDurationAvg)+"分"+O(t.practiceDurationAvg)+"秒":O(t.practiceDurationAvg)+"秒":0])});return()=>c("div",{class:L.listWrap},[c("div",{class:L.tableWrap},[c(p,{class:L.classTable,loading:i.loading,columns:[{title:"姓名",key:"studentName"},{title:"手机号",key:"studentPhone"},A,h,f],data:i.tableList,"onUpdate:sorter":m},{empty:()=>c(K,null,null)}),c(E,{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:n,sync:!0},null)])])}}),$=i({name:"data-guide",emits:["close"],setup(t,{emit:e}){const a=r({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:_("data1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:h(-4),left:h(-100),width:h(472),height:h(256)},btnsStyle:{bottom:h(30),left:h(-110)},boxStyle:{borderRadius:"25px"},eleRectPadding:{left:14,top:14,width:28,height:28}},{ele:"",img:_("data2.png"),imgStyle:{top:h(-4),left:h(-100),width:h(509),height:h(230)},btnsStyle:{bottom:h(30),left:h(-110)},boxStyle:{borderRadius:"25px"},eleRectPadding:{left:14,top:14,width:28,height:28}},{ele:"",img:_("data3.png"),imgStyle:{top:"100%",left:h(-105),width:h(438),height:h(230)},btnsStyle:{bottom:h(30),left:h(-115)},boxStyle:{borderRadius:"25px"},eleRectPadding:{left:14,top:14,width:28,height:28}}],step:0}),i=l(!1),s=l({});(async()=>{try{const t=await P({guideTag:"teacher-guideInfo"});t.data?s.value=JSON.parse(t.data?.guideValue)||null:s.value={},s.value&&s.value.dataGuide?i.value=!1:i.value=!0}catch(t){console.log(t)}})();const n=()=>{const t=document.getElementById(`data-${a.step}`);if(t){const e=t.getBoundingClientRect(),i=a.steps[a.step].eleRectPadding?.left||0,l=a.steps[a.step].eleRectPadding?.top||0,s=a.steps[a.step].eleRectPadding?.width||0,n=a.steps[a.step].eleRectPadding?.height||0;a.box={left:e.x-i+"px",top:e.y-l+"px",width:e.width+s+"px",height:e.height+n+"px"}}else m()},o=async t=>{try{if("data-module"!==t)return;s.value?s.value.dataGuide=!1:s.value={dataGuide:!1};try{await Q({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(s.value)})}catch(e){console.log(e)}a.step=0,n(),i.value=!0}catch{}};d((()=>{n(),window.addEventListener("resize",p),f.on("teacher-guideInfo",o)}));const p=()=>{n()};b((()=>{window.removeEventListener("resize",p),f.off("teacher-guideInfo",o)}));const m=()=>{a.step>=4?A():(a.step=a.step+1,n())},A=async()=>{s.value?s.value.dataGuide=!0:s.value={dataGuide:!0};try{await Q({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(s.value)})}catch(t){console.log(t)}i.value=!1};return()=>c(g,null,[i.value?w(c("div",{"onUpdate:show":t=>i.value=t,class:["n-modal-mask","n-modal-mask-guide"]},[c("div",{class:F.content,onClick:()=>m()},[c("div",{class:F.backBtn,onClick:t=>{t.stopPropagation(),A()}},[u("跳过")]),c("div",{class:F.box,style:{...a.box,...a.steps[a.step]?.boxStyle},id:`modeType-${a.step}`},[a.steps.map(((t,e)=>c("div",{onClick:t=>t.stopPropagation(),class:F.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}`}},[c("img",{class:F.img,style:t.imgStyle,src:t.img},null),c("div",{class:F.btns,style:t.btnsStyle},[a.step+1==a.steps.length?c(g,null,[c("div",{class:[F.endBtn],onClick:()=>A()},[u("完成")]),c("div",{class:F.nextBtn,onClick:()=>{a.step=0,n()}},[u("再看一遍")])]):c("div",{class:F.btn,onClick:()=>m()},[u("下一步 ("),a.step+1,u("/"),a.steps.length,u(")")])])])))])])]),[[T,i.value,"show"]]):null])}});t("default",i({name:"data-module",setup(){const t=l("training"),e=n();C((e=>{e.form.tabName&&(t.value=e.form.tabName)}));const a=l(),i=l(),s=l(),r=l(!1),o=l([k((new Date).getTime()),Y((new Date).getTime())]),p=()=>{console.log(o.value),a.value&&a.value.getList(),i.value&&i.value.getList(),s.value&&s.value.getList()};return d((()=>{setTimeout((()=>{r.value=!0}),800)})),()=>c("div",null,[c("div",{class:V.listWrap},[c(D,{"onUpdate:value":[t=>(t=>{I(t,"tabName",e)})(t),e=>t.value=e],class:V.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:()=>[c(x,{name:"training",tab:"作业统计"},{default:()=>[c(M,{ref:a,timer:o.value},null)],tab:()=>c("span",{id:"data-0"},[u("作业统计")])}),c(x,{name:"practice",tab:"学练数据"},{default:()=>[c(J,{ref:i,timer:o.value},null)],tab:()=>c("span",{id:"data-1"},[u("学练数据")])}),c(x,{name:"ranking",tab:"学练排行"},{default:()=>[c(H,{ref:s,timer:o.value},null)],tab:()=>c("span",{id:"data-2"},[u("学练排行")])})],suffix:()=>c(g,null,[c("div",{class:V.homeStudyInfoDate},[c(A,null,{default:()=>[c(R,S({clearable:!1},{value:o.value,"onUpdate:value":t=>o.value=t,separator:"-",type:"daterange",timerValue:o.value}),null),c(m,{type:"primary",class:V.searchBtn,onClick:()=>p()},{default:()=>[u("搜索")]}),c(m,{type:"primary",onClick:()=>(console.log("点击重置"),o.value=[k((new Date).getTime()),Y((new Date).getTime())],void v((()=>{p()}))),ghost:!0,class:V.resetBtn},{default:()=>[u("重置")]})]})])])}),r.value?c($,null,null):null])])}}))}}}));