1 |
- System.register(["./index.module-legacy-85d3d2e3-1720699367816.js","./useECharts-legacy-72d5aac4-1720699367816.js","./api-legacy-18f140e4-1720699367816.js","./api-legacy-7bb326ea-1720699367816.js","./dateFormat-legacy-ae8504f8-1720699367816.js","./index-legacy-ef18eacf-1720699367816.js","./index-legacy-de40bbb0-1720699367816.js","./use-async-legacy-f3df0cba-1720699367816.js","./index-legacy-e0181e36-1720699367816.js","./index-legacy-c8cbce8c-1720699367816.js","./urlUtils-legacy-0ad6488a-1720699367816.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,k,I,L,R,S,A,j,E,C,G,Y,V;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.N,d=a.d,p=a.b},a=>{g=a.C},a=>{y=a.T},a=>{m=a.i,v=a.s},a=>{D=a.d,T=a.r,h=a.e,f=a.q,b=a.f,w=a.N,x=a.g,k=a.x,I=a.j,L=a.k,R=a.aG,S=a.F,A=a.c,j=a.l,E=a.m,C=a.G,G=a.aL},a=>{Y=a.P},a=>{V=a.v}],execute:function(){a("P",D({name:"student-practiceData",props:{studentId:{type:String,default:""},classGroupId:{type:String,default:""}},setup(a){const e=T(null),{setOptions:n}=l(e),D=T(!0),A=h({height:"360px",width:"100%",practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[]}),j=h({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),E=T([r((new Date).getTime()),o((new Date).getTime())]),C=async()=>{try{const e=await s({page:1,rows:999,studentId:a.studentId,classGroupId:a.classGroupId,...p(E.value,["startTime","endTime"],"YYYY-MM-DD")});j.tableList=e.data.rows}catch(e){console.log(e)}},G=async()=>{try{const e=await i({studentId:a.studentId,classGroupId:a.classGroupId,...p(E.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:{"学练时长(分钟)":D.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)+"分"+d(a.value)+"秒":d(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)}},Y=()=>{j.pagination.page=1,G(),C(),v({current:{timer:E.value},saveKey:"classStudentRecordPracticeData"})},V=()=>{E.value=[r((new Date).getTime()),o((new Date).getTime())],Y(),C(),v({current:{timer:E.value},saveKey:"classStudentRecordPracticeData"})};return m({current:{timer:E.value},saveKey:"classStudentRecordPracticeData",callBack:a=>{E.value=a.timer}}),f((()=>{console.log(a.studentId),G(),C()})),()=>b(S,null,[b(w,{"label-placement":"left",inline:!0},{default:()=>[b(x,null,{default:()=>[b(g,{value:E.value,"onUpdate:value":a=>E.value=a,separator:"至",type:"daterange",timerValue:E.value},null)]}),b(x,null,{default:()=>[b(k,{justify:"end"},{default:()=>[b(I,{type:"primary",class:"searchBtn",onClick:Y},{default:()=>[L("搜索")]}),b(I,{type:"primary",ghost:!0,class:"resetBtn",onClick:V},{default:()=>[L("重置")]})]})]})]}),b("div",{class:t.homeTrainData},[b("div",{class:t.TrainDataTop},[b("div",{class:t.TrainDataTopLeft},[b("div",{class:t.TrainDataItem},[b("p",{class:t.TrainDataItemTitle},[c(A.practiceDurationTotal)>0?b("div",null,[b("span",null,[b(u,{from:0,to:c(A.practiceDurationTotal)},null)]),b("i",{style:{width:"4px",display:"inline-block"}},null),L("分"),b("i",{style:{width:"4px",display:"inline-block"}},null)]):null,b("div",null,[b("span",null,[b(u,{from:0,to:d(A.practiceDurationTotal)},null)]),b("i",{style:{width:"4px",display:"inline-block"}},null),L("秒")])]),b("p",{class:t.TrainDataItemsubTitle},[L("累计练习时长")])]),b("div",{class:t.TrainDataItem},[b("p",{class:t.TrainDataItemTitle},[c(A.practiceDurationAvg)>0?b("div",null,[b("span",null,[b(u,{from:0,to:c(A.practiceDurationAvg)},null)]),b("i",{style:{width:"4px",display:"inline-block"}},null),L("分"),b("i",{style:{width:"4px",display:"inline-block"}},null)]):null,b("div",null,[b("span",null,[b(u,{from:0,to:d(A.practiceDurationAvg)},null)]),b("i",{style:{width:"4px",display:"inline-block"}},null),L("秒")])]),b("p",{class:t.TrainDataItemsubTitle},[L("平均每天练习时长")])]),b("div",{class:t.TrainDataItem},[b("p",{class:t.TrainDataItemTitle},[b("div",null,[b("span",null,[b(u,{from:0,to:A.practiceDays},null)]),b("i",{style:{width:"4px",display:"inline-block"}},null),L("天")])]),b("p",{class:t.TrainDataItemsubTitle},[L("练习天数")])])]),b("div",{class:t.TrainDataTopRight},[b("div",{class:[t.DataTopRightItem,D.value?"":t.DataTopRightItemDis]},[b("div",{class:[t.DataTopRightDot,t.DataTopRightDotBlue]},null),b("p",null,[L("学练时长(分钟)")])])])]),b("div",{class:t.chatrs},[b("div",{ref:e,style:{height:A.height,width:A.width}},null)]),b("div",{class:[t.tableWrap,t.tableWrapEcharts]},[b(R,{class:t.classTable,loading:j.loading,columns:[{title:"日期",key:"date"},{title:"学练时长",key:"practiceDuration",render:a=>b(S,null,[" ",b(S,null,[a.practiceDuration?c(a.practiceDuration)>0?c(a.practiceDuration)+"分"+d(a.practiceDuration)+"秒":d(a.practiceDuration)+"秒":"0分钟"])])}],data:j.tableList},{empty:()=>b(y,null,null)})])])])}})),a("E",D({name:"student-practiceData",props:{studentId:{type:String,default:""},classGroupId:{type:String,default:""}},setup(a){const e=A(),i=T(null);l(i),T(!0);const s=h({height:"360px",width:"100%",practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[],detailVisiable:!1}),c=T(""),u=h({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),d=T([r((new Date).getTime()),o((new Date).getTime())]),D=async()=>{const e=await n({userId:a.studentId,...u.pagination,classGroupId:a.classGroupId,feature:"EVALUATION",...p(d.value,["startTime","endTime"],"YYYY-MM-DD")});u.tableList=e.data.rows,u.pagination.pageTotal=e.data.total},B=a=>{console.log(a.id,"gotoRecode");const t=e.getToken;c.value=V()+`/instrument/?v=${+new Date}#/evaluat-report?v=${+new Date}&id=${a.id}&platform=webTeacher&Authorization=${t}`,s.detailVisiable=!0},M=()=>{u.pagination.page=1,D(),v({current:{timer:d.value},saveKey:"classStudentRecordEvaluationRecords"})},N=()=>{d.value=[r((new Date).getTime()),o((new Date).getTime())],M(),v({current:{timer:d.value},saveKey:"classStudentRecordEvaluationRecords"})};m({current:{timer:d.value},saveKey:"classStudentRecordEvaluationRecords",callBack:a=>{d.value=a.timer}});const U=T();return f((()=>{D(),console.log(a.studentId)})),()=>b(S,null,[b(w,{"label-placement":"left",inline:!0},{default:()=>[b(x,null,{default:()=>[b(g,{value:d.value,"onUpdate:value":a=>d.value=a,separator:"至",type:"daterange",timerValue:d.value},null)]}),b(x,null,{default:()=>[b(k,{justify:"end"},{default:()=>[b(I,{type:"primary",class:"searchBtn",onClick:M},{default:()=>[L("搜索")]}),b(I,{type:"primary",ghost:!0,class:"resetBtn",onClick:N},{default:()=>[L("重置")]})]})]})]}),b("div",{class:t.tableWrap},[b(R,{class:t.classTable,loading:u.loading,columns:[{title:"时间",key:"createTime"},{title:"评测曲目",key:"musicSheetName",render:a=>b("span",null,[a.musicSheetName])},{title:"评测难度",key:"heardLevel",render:a=>b(S,null,[null==a.heardLevel?b("span",null,[L("--")]):null,"BEGINNER"==a.heardLevel?b(G,{type:"info"},{default:()=>[L("入门级")]}):null,"ADVANCED"==a.heardLevel?b(G,{type:"warning"},{default:()=>[L("进阶级")]}):null,"PERFORMER"==a.heardLevel?b(G,{type:"error"},{default:()=>[L("大师级")]}):null])},{title:"评测分数",key:"score",render:a=>b("span",null,[a.score])},{title:"音准",key:"intonation",render:a=>b("span",null,[a.intonation])},{title:"节奏",key:"cadence",render:a=>b("span",null,[a.cadence])},{title:"完整度",key:"integrity",render:a=>b("span",null,[a.integrity])},{title:"操作",key:"id",render:a=>b(I,{text:!0,type:"primary",onClick:()=>{B(a)}},{default:()=>[L("评测报告")]})}],data:u.tableList},{empty:()=>b(y,null,null)}),b(Y,{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:D,sync:!0},null)]),b(j,{maskClosable:E,show:s.detailVisiable,"onUpdate:show":a=>s.detailVisiable=a,preset:"card",class:["modalTitle background",t.reportModel],title:"评测报告"},{default:()=>[b("div",{class:t.reportContainer,style:{lineHeight:0}},[b("iframe",{width:"100%",height:"450px",ref:U,frameborder:"0",onLoad:a=>{C(a.target)},src:c.value},null)])]})])}}))}}}));
|