1 |
- System.register(["./index.module-legacy-85d3d2e3-1725962701482.js","./useECharts-legacy-38d78974-1725962701482.js","./api-legacy-3788cb1c-1725962701482.js","./api-legacy-19fd7dfd-1725962701482.js","./dateFormat-legacy-29f86ef3-1725962701482.js","./index-legacy-3013e11b-1725962701482.js","./index-legacy-f75a67e8-1725962701482.js","./use-async-legacy-803b1971-1725962701482.js","./index-legacy-f8e66744-1725962701482.js","./index-legacy-a9c0d11a-1725962701482.js","./urlUtils-legacy-0ad6488a-1725962701482.js"],(function(a,e){"use strict";var t,l,i,n,s,r,o,c,d,u,p,g,m,y,D,A,v,h,T,w,f,I,x,b,k,E,C,F,R,U,L,N,j,Y;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,d=a.N,u=a.d,p=a.b},a=>{g=a.C},a=>{m=a.T},a=>{y=a.i,D=a.s},a=>{A=a.d,v=a.r,h=a.e,T=a.q,w=a.f,f=a.N,I=a.g,x=a.x,b=a.j,k=a.k,E=a.aG,C=a.F,F=a.c,R=a.l,U=a.m,L=a.G,N=a.aL},a=>{j=a.P},a=>{Y=a.v}],execute:function(){a("f","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAqCAYAAACpxZteAAAAAXNSR0IArs4c6QAAA/NJREFUWEftll+IVGUYxp/nzOpsomUhpZvTjUZWFmsQFgrRRQltuRea3mQXc2a22tygbpozo3RA2zMGQmih685ZsKhwi93cLDIp+iNF/5QwwcqgEDIlWKGMnW3OeWJn251zZmd3ZnYxCJq7ec/7Pb/v/fO930dc4h8vsT6mBCi+Yx6MwfvgsxXUrQAXQZgD4iyAnwAdhsF+djvfT7bRigB17Iri4tnHQWQgXVU9SvaCytDNni73nQBQeyaGvHcQworqwkEPDoE06Xa+GrIG/6jNWgYPH0K6pj7xgDf5NF3nuTHLeAR6LHUl8vgcwPUhcWIQ5B4YGIAX/QEx/IlfCtfC8++GlAC0smwzgsH1zDl9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dokaaPLsDMR4sqrEc/6+iI67p7ThlzkANokrcoBDFcngmy7JoClHZKcgTUYheEq1ln6BJIziTKPh1zSHeKn1wSI6k3ZeiUHADc4EeyW9LQrRcsTIb5/TQBLWyWtdWmtY11EUUC5iiH4WiLM3JlcDchn6VDB8G9ivaUVaWmo3smfkyHeejXCV6pokpAp96rs2poaNnD6Nk3ov4izbgPBx92Xp0pgvogigkKu/P+YCHNeppvWRbQH0BOu3CUNcWdhZxwJ5I/pATuNA3mbJNcnQmzJAPyWbraFXwqiOGqq8Vipq7mztj6mR9M2dkMaN7QBdk6YjtnOIMrNA5+ljZI25e2SvEDAqjZoPRng0NURwPSobukXXoawApDJrSPTJBYngjyY+RayhkzTimIPpGXDUjF4S3OulacoeAU05nVe1wJjGIwHGRs6C5fx9lZVJy9gm6TVlRxsvg8HDNEcD3G7+33RmeyLaiWENyTVVQIi+YMzvxNh5ppm0QjcYr5WjdYFrCGwTMKCvDwPdstLAA6S2NUdwJ7sZbdwQ5XdTWMa329jBok6EakqIMnx6OxaycvlIvwH+wgy5cy9OxMAAAAASUVORK5CYII="),a("P",A({name:"student-practiceData",props:{studentId:{type:String,default:""},classGroupId:{type:String,default:""}},setup(a){const e=v(null),{setOptions:n}=l(e),A=v(!0),F=h({height:"360px",width:"100%",practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[]}),R=h({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),U=v([r((new Date).getTime()),o((new Date).getTime())]),L=async()=>{try{const e=await s({page:1,rows:999,studentId:a.studentId,classGroupId:a.classGroupId,...p(U.value,["startTime","endTime"],"YYYY-MM-DD")});R.tableList=e.data.rows}catch(e){console.log(e)}},N=async()=>{try{const e=await i({studentId:a.studentId,classGroupId:a.classGroupId,...p(U.value,["startTime","endTime"],"YYYY-MM-DD")});F.practiceDays=e.data.practiceDays,F.practiceDurationAvg=e.data.practiceDurationAvg,F.practiceDurationTotal=e.data.practiceDurationTotal,F.dateList=e.data.trainingStatDetailList.map((a=>a.date)),F.timeList=e.data.trainingStatDetailList.map((a=>a.practiceDuration)),n({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!1,selected:{"学练时长(分钟)":A.value}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{show:!0},data:F.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:F.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)}},j=()=>{R.pagination.page=1,N(),L(),D({current:{timer:U.value},saveKey:"classStudentRecordPracticeData"})},Y=()=>{U.value=[r((new Date).getTime()),o((new Date).getTime())],j(),L(),D({current:{timer:U.value},saveKey:"classStudentRecordPracticeData"})};return y({current:{timer:U.value},saveKey:"classStudentRecordPracticeData",callBack:a=>{U.value=a.timer}}),T((()=>{console.log(a.studentId),N(),L()})),()=>w(C,null,[w(f,{"label-placement":"left",inline:!0},{default:()=>[w(I,null,{default:()=>[w(g,{value:U.value,"onUpdate:value":a=>U.value=a,separator:"至",type:"daterange",timerValue:U.value},null)]}),w(I,null,{default:()=>[w(x,{justify:"end"},{default:()=>[w(b,{type:"primary",class:"searchBtn",onClick:j},{default:()=>[k("搜索")]}),w(b,{type:"primary",ghost:!0,class:"resetBtn",onClick:Y},{default:()=>[k("重置")]})]})]})]}),w("div",{class:t.homeTrainData},[w("div",{class:t.TrainDataTop},[w("div",{class:t.TrainDataTopLeft},[w("div",{class:t.TrainDataItem},[w("p",{class:t.TrainDataItemTitle},[c(F.practiceDurationTotal)>0?w("div",null,[w("span",null,[w(d,{from:0,to:c(F.practiceDurationTotal)},null)]),w("i",{style:{width:"4px",display:"inline-block"}},null),k("分"),w("i",{style:{width:"4px",display:"inline-block"}},null)]):null,w("div",null,[w("span",null,[w(d,{from:0,to:u(F.practiceDurationTotal)},null)]),w("i",{style:{width:"4px",display:"inline-block"}},null),k("秒")])]),w("p",{class:t.TrainDataItemsubTitle},[k("累计练习时长")])]),w("div",{class:t.TrainDataItem},[w("p",{class:t.TrainDataItemTitle},[c(F.practiceDurationAvg)>0?w("div",null,[w("span",null,[w(d,{from:0,to:c(F.practiceDurationAvg)},null)]),w("i",{style:{width:"4px",display:"inline-block"}},null),k("分"),w("i",{style:{width:"4px",display:"inline-block"}},null)]):null,w("div",null,[w("span",null,[w(d,{from:0,to:u(F.practiceDurationAvg)},null)]),w("i",{style:{width:"4px",display:"inline-block"}},null),k("秒")])]),w("p",{class:t.TrainDataItemsubTitle},[k("平均每天练习时长")])]),w("div",{class:t.TrainDataItem},[w("p",{class:t.TrainDataItemTitle},[w("div",null,[w("span",null,[w(d,{from:0,to:F.practiceDays},null)]),w("i",{style:{width:"4px",display:"inline-block"}},null),k("天")])]),w("p",{class:t.TrainDataItemsubTitle},[k("练习天数")])])]),w("div",{class:t.TrainDataTopRight},[w("div",{class:[t.DataTopRightItem,A.value?"":t.DataTopRightItemDis]},[w("div",{class:[t.DataTopRightDot,t.DataTopRightDotBlue]},null),w("p",null,[k("学练时长(分钟)")])])])]),w("div",{class:t.chatrs},[w("div",{ref:e,style:{height:F.height,width:F.width}},null)]),w("div",{class:[t.tableWrap,t.tableWrapEcharts]},[w(E,{class:t.classTable,loading:R.loading,columns:[{title:"日期",key:"date"},{title:"学练时长",key:"practiceDuration",render:a=>w(C,null,[" ",w(C,null,[a.practiceDuration?c(a.practiceDuration)>0?c(a.practiceDuration)+"分"+u(a.practiceDuration)+"秒":u(a.practiceDuration)+"秒":"0分钟"])])}],data:R.tableList},{empty:()=>w(m,null,null)})])])])}})),a("E",A({name:"student-practiceData",props:{studentId:{type:String,default:""},classGroupId:{type:String,default:""}},setup(a){const e=F(),i=v(null);l(i),v(!0);const s=h({height:"360px",width:"100%",practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[],detailVisiable:!1}),c=v(""),d=h({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),u=v([r((new Date).getTime()),o((new Date).getTime())]),A=async()=>{const e=await n({userId:a.studentId,...d.pagination,classGroupId:a.classGroupId,feature:"EVALUATION",...p(u.value,["startTime","endTime"],"YYYY-MM-DD")});d.tableList=e.data.rows,d.pagination.pageTotal=e.data.total},S=a=>{console.log(a.id,"gotoRecode");const t=e.getToken;c.value=Y()+`/instrument/?v=${+new Date}#/evaluat-report?v=${+new Date}&id=${a.id}&platform=webTeacher&Authorization=${t}`,s.detailVisiable=!0},B=()=>{d.pagination.page=1,A(),D({current:{timer:u.value},saveKey:"classStudentRecordEvaluationRecords"})},Q=()=>{u.value=[r((new Date).getTime()),o((new Date).getTime())],B(),D({current:{timer:u.value},saveKey:"classStudentRecordEvaluationRecords"})};y({current:{timer:u.value},saveKey:"classStudentRecordEvaluationRecords",callBack:a=>{u.value=a.timer}});const P=v();return T((()=>{A(),console.log(a.studentId)})),()=>w(C,null,[w(f,{"label-placement":"left",inline:!0},{default:()=>[w(I,null,{default:()=>[w(g,{value:u.value,"onUpdate:value":a=>u.value=a,separator:"至",type:"daterange",timerValue:u.value},null)]}),w(I,null,{default:()=>[w(x,{justify:"end"},{default:()=>[w(b,{type:"primary",class:"searchBtn",onClick:B},{default:()=>[k("搜索")]}),w(b,{type:"primary",ghost:!0,class:"resetBtn",onClick:Q},{default:()=>[k("重置")]})]})]})]}),w("div",{class:t.tableWrap},[w(E,{class:t.classTable,loading:d.loading,columns:[{title:"时间",key:"createTime"},{title:"评测曲目",key:"musicSheetName",render:a=>w("span",null,[a.musicSheetName])},{title:"评测难度",key:"heardLevel",render:a=>w(C,null,[null==a.heardLevel?w("span",null,[k("--")]):null,"BEGINNER"==a.heardLevel?w(N,{type:"info"},{default:()=>[k("入门级")]}):null,"ADVANCED"==a.heardLevel?w(N,{type:"warning"},{default:()=>[k("进阶级")]}):null,"PERFORMER"==a.heardLevel?w(N,{type:"error"},{default:()=>[k("大师级")]}):null])},{title:"评测分数",key:"score",render:a=>w("span",null,[a.score])},{title:"音准",key:"intonation",render:a=>w("span",null,[a.intonation])},{title:"节奏",key:"cadence",render:a=>w("span",null,[a.cadence])},{title:"完整度",key:"integrity",render:a=>w("span",null,[a.integrity])},{title:"操作",key:"id",render:a=>w(b,{text:!0,type:"primary",onClick:()=>{S(a)}},{default:()=>[k("评测报告")]})}],data:d.tableList},{empty:()=>w(m,null,null)}),w(j,{page:d.pagination.page,"onUpdate:page":a=>d.pagination.page=a,pageSize:d.pagination.rows,"onUpdate:pageSize":a=>d.pagination.rows=a,pageTotal:d.pagination.pageTotal,"onUpdate:pageTotal":a=>d.pagination.pageTotal=a,onList:A,sync:!0},null)]),w(R,{maskClosable:U,show:s.detailVisiable,"onUpdate:show":a=>s.detailVisiable=a,preset:"card",class:["modalTitle background",t.reportModel],title:"评测报告"},{default:()=>[w("div",{class:t.reportContainer,style:{lineHeight:0}},[w("iframe",{width:"100%",height:"450px",ref:P,frameborder:"0",onLoad:a=>{L(a.target)},src:c.value},null)])]})])}}))}}}));
|