1 |
- System.register(["./index.module-legacy-7efba815-1715840129614.js","./useECharts-legacy-467b80c9-1715840129614.js","./api-legacy-fad13c4d-1715840129614.js","./api-legacy-c1f38ec7-1715840129614.js","./dateFormat-legacy-30a125a5-1715840129614.js","./index-legacy-e05a8185-1715840129614.js","./index-legacy-2f080daf-1715840129614.js","./use-async-legacy-2751088f-1715840129614.js","./index-legacy-f35addb7-1715840129614.js","./NumberAnimation-legacy-cf30dbc7-1715840129614.js","./index-legacy-84c89aec-1715840129614.js","./urlUtils-legacy-133e91cc-1715840129614.js"],(function(a,e){"use strict";var t,l,i,n,s,r,o,c,u,d,p,g,y,m,v,D,T,h,f,b,w,x,I,k,L,R,A,S,j,E,Y,C,G;return{setters:[a=>{t=a.s},a=>{l=a.u},a=>{i=a.c,n=a.d},a=>{s=a.s},a=>{r=a.g,o=a.a,c=a.c,u=a.d,d=a.b},a=>{p=a.C},a=>{g=a.T},a=>{y=a.i,m=a.s},a=>{v=a.d,D=a.r,T=a.e,h=a.p,f=a.f,b=a.N,w=a.g,x=a.w,I=a.j,k=a.k,L=a.aE,R=a.F,A=a.c,S=a.l,j=a.D,E=a.aJ},a=>{Y=a.N},a=>{C=a.P},a=>{G=a.v}],execute:function(){a("P",v({name:"student-practiceData",props:{studentId:{type:String,default:""},classGroupId:{type:String,default:""}},setup(a){const e=D(null),{setOptions:n}=l(e),v=D(!0),A=T({height:"360px",width:"100%",practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[]}),S=T({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),j=D([r((new Date).getTime()),o((new Date).getTime())]),E=async()=>{try{const e=await s({page:1,rows:999,studentId:a.studentId,classGroupId:a.classGroupId,...d(j.value,["startTime","endTime"],"YYYY-MM-DD")});S.tableList=e.data.rows}catch(e){console.log(e)}},C=async()=>{try{const e=await i({studentId:a.studentId,classGroupId:a.classGroupId,...d(j.value,["startTime","endTime"],"YYYY-MM-DD")});A.practiceDays=e.data.practiceDays,A.practiceDurationAvg=e.data.practiceDurationAvg,A.practiceDurationTotal=e.data.practiceDurationTotal,A.dateList=e.data.trainingStatDetailList.map((a=>a.date)),A.timeList=e.data.trainingStatDetailList.map((a=>a.practiceDuration)),n({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!1,selected:{"学练时长(分钟)":v.value}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{show:!0},data:A.dateList},yAxis:[{type:"value",axisLabel:{formatter:a=>c(a)+"min"},axisTick:{show:!1},splitArea:{show:!1,areaStyle:{color:["rgba(255,255,255,0.2)"]}}}],grid:{left:"1%",right:"1%",top:"2%",bottom:0,containLabel:!0},series:[{data:A.timeList,type:"bar",barWidth:"48px",stack:"total",itemStyle:{normal:{barBorderRadius:[8,8,0,0],color:"#D5E9FF"},emphasis:{focus:"series",color:"#3583FA"}}}],formatter:a=>Array.isArray(a)?[a[0].axisValueLabel,...a.map((a=>{let e;return e=c(a.value)>0?c(a.value)+"分"+u(a.value)+"秒":u(a.value)+"秒",`<br/>${a.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;">学练时长: ${e} </span>`}))].join(""):a})}catch(e){console.log(e)}},G=()=>{S.pagination.page=1,C(),E(),m({current:{timer:j.value},saveKey:"classStudentRecordPracticeData"})},V=()=>{j.value=[r((new Date).getTime()),o((new Date).getTime())],G(),E(),m({current:{timer:j.value},saveKey:"classStudentRecordPracticeData"})};return y({current:{timer:j.value},saveKey:"classStudentRecordPracticeData",callBack:a=>{j.value=a.timer}}),h((()=>{console.log(a.studentId),C(),E()})),()=>f(R,null,[f(b,{"label-placement":"left",inline:!0},{default:()=>[f(w,null,{default:()=>[f(p,{value:j.value,"onUpdate:value":a=>j.value=a,separator:"至",type:"daterange",timerValue:j.value},null)]}),f(w,null,{default:()=>[f(x,{justify:"end"},{default:()=>[f(I,{type:"primary",class:"searchBtn",onClick:G},{default:()=>[k("搜索")]}),f(I,{type:"primary",ghost:!0,class:"resetBtn",onClick:V},{default:()=>[k("重置")]})]})]})]}),f("div",{class:t.homeTrainData},[f("div",{class:t.TrainDataTop},[f("div",{class:t.TrainDataTopLeft},[f("div",{class:t.TrainDataItem},[f("p",{class:t.TrainDataItemTitle},[c(A.practiceDurationTotal)>0?f("div",null,[f("span",null,[f(Y,{from:0,to:c(A.practiceDurationTotal)},null)]),f("i",{style:{width:"4px",display:"inline-block"}},null),k("分"),f("i",{style:{width:"4px",display:"inline-block"}},null)]):null,f("div",null,[f("span",null,[f(Y,{from:0,to:u(A.practiceDurationTotal)},null)]),f("i",{style:{width:"4px",display:"inline-block"}},null),k("秒")])]),f("p",{class:t.TrainDataItemsubTitle},[k("累计练习时长")])]),f("div",{class:t.TrainDataItem},[f("p",{class:t.TrainDataItemTitle},[c(A.practiceDurationAvg)>0?f("div",null,[f("span",null,[f(Y,{from:0,to:c(A.practiceDurationAvg)},null)]),f("i",{style:{width:"4px",display:"inline-block"}},null),k("分"),f("i",{style:{width:"4px",display:"inline-block"}},null)]):null,f("div",null,[f("span",null,[f(Y,{from:0,to:u(A.practiceDurationAvg)},null)]),f("i",{style:{width:"4px",display:"inline-block"}},null),k("秒")])]),f("p",{class:t.TrainDataItemsubTitle},[k("平均每天练习时长")])]),f("div",{class:t.TrainDataItem},[f("p",{class:t.TrainDataItemTitle},[f("div",null,[f("span",null,[f(Y,{from:0,to:A.practiceDays},null)]),f("i",{style:{width:"4px",display:"inline-block"}},null),k("天")])]),f("p",{class:t.TrainDataItemsubTitle},[k("练习天数")])])]),f("div",{class:t.TrainDataTopRight},[f("div",{class:[t.DataTopRightItem,v.value?"":t.DataTopRightItemDis]},[f("div",{class:[t.DataTopRightDot,t.DataTopRightDotBlue]},null),f("p",null,[k("学练时长(分钟)")])])])]),f("div",{class:t.chatrs},[f("div",{ref:e,style:{height:A.height,width:A.width}},null)]),f("div",{class:[t.tableWrap,t.tableWrapEcharts]},[f(L,{class:t.classTable,loading:S.loading,columns:[{title:"日期",key:"date"},{title:"学练时长",key:"practiceDuration",render:a=>f(R,null,[" ",f(R,null,[a.practiceDuration?c(a.practiceDuration)>0?c(a.practiceDuration)+"分"+u(a.practiceDuration)+"秒":u(a.practiceDuration)+"秒":"0分钟"])])}],data:S.tableList},{empty:()=>f(g,null,null)})])])])}})),a("E",v({name:"student-practiceData",props:{studentId:{type:String,default:""},classGroupId:{type:String,default:""}},setup(a){const e=A(),i=D(null);l(i),D(!0);const s=T({height:"360px",width:"100%",practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[],detailVisiable:!1}),c=D(""),u=T({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),v=D([r((new Date).getTime()),o((new Date).getTime())]),Y=async()=>{const e=await n({userId:a.studentId,...u.pagination,classGroupId:a.classGroupId,feature:"EVALUATION",...d(v.value,["startTime","endTime"],"YYYY-MM-DD")});u.tableList=e.data.rows,u.pagination.pageTotal=e.data.total},V=a=>{console.log(a.id,"gotoRecode");const t=e.getToken;c.value=G()+`/instrument/?v=${+new Date}#/evaluat-report?v=${+new Date}&id=${a.id}&platform=webTeacher&Authorization=${t}`,s.detailVisiable=!0},N=()=>{u.pagination.page=1,Y(),m({current:{timer:v.value},saveKey:"classStudentRecordEvaluationRecords"})},B=()=>{v.value=[r((new Date).getTime()),o((new Date).getTime())],N(),m({current:{timer:v.value},saveKey:"classStudentRecordEvaluationRecords"})};y({current:{timer:v.value},saveKey:"classStudentRecordEvaluationRecords",callBack:a=>{v.value=a.timer}});const M=D();return h((()=>{Y(),console.log(a.studentId)})),()=>f(R,null,[f(b,{"label-placement":"left",inline:!0},{default:()=>[f(w,null,{default:()=>[f(p,{value:v.value,"onUpdate:value":a=>v.value=a,separator:"至",type:"daterange",timerValue:v.value},null)]}),f(w,null,{default:()=>[f(x,{justify:"end"},{default:()=>[f(I,{type:"primary",class:"searchBtn",onClick:N},{default:()=>[k("搜索")]}),f(I,{type:"primary",ghost:!0,class:"resetBtn",onClick:B},{default:()=>[k("重置")]})]})]})]}),f("div",{class:t.tableWrap},[f(L,{class:t.classTable,loading:u.loading,columns:[{title:"时间",key:"createTime"},{title:"评测曲目",key:"musicSheetName",render:a=>f("span",null,[a.musicSheetName])},{title:"评测难度",key:"heardLevel",render:a=>f(R,null,[null==a.heardLevel?f("span",null,[k("--")]):null,"BEGINNER"==a.heardLevel?f(E,{type:"info"},{default:()=>[k("入门级")]}):null,"ADVANCED"==a.heardLevel?f(E,{type:"warning"},{default:()=>[k("进阶级")]}):null,"PERFORMER"==a.heardLevel?f(E,{type:"error"},{default:()=>[k("大师级")]}):null])},{title:"评测分数",key:"score",render:a=>f("span",null,[a.score])},{title:"音准",key:"intonation",render:a=>f("span",null,[a.intonation])},{title:"节奏",key:"cadence",render:a=>f("span",null,[a.cadence])},{title:"完整度",key:"integrity",render:a=>f("span",null,[a.integrity])},{title:"操作",key:"id",render:a=>f(I,{text:!0,type:"primary",onClick:()=>{V(a)}},{default:()=>[k("评测报告")]})}],data:u.tableList},{empty:()=>f(g,null,null)}),f(C,{page:u.pagination.page,"onUpdate:page":a=>u.pagination.page=a,pageSize:u.pagination.rows,"onUpdate:pageSize":a=>u.pagination.rows=a,pageTotal:u.pagination.pageTotal,"onUpdate:pageTotal":a=>u.pagination.pageTotal=a,onList:Y,sync:!0},null)]),f(S,{show:s.detailVisiable,"onUpdate:show":a=>s.detailVisiable=a,preset:"card",class:["modalTitle background",t.reportModel],title:"评测报告"},{default:()=>[f("div",{class:t.reportContainer,style:{lineHeight:0}},[f("iframe",{width:"100%",height:"450px",ref:M,frameborder:"0",onLoad:a=>{j(a.target)},src:c.value},null)])]})])}}))}}}));
|