evaluationRecords-legacy-d9817189.js 8.2 KB

1
  1. System.register(["./api-legacy-bb87fd8f.js","./useECharts-legacy-1cdb44a0.js","./api-legacy-f9a1463b.js","./dateFormat-legacy-383301a1.js","./index-legacy-382c00e7.js","./index-legacy-ac90e587.js","./index-legacy-83b929fe.js","./index-legacy-d8638892.js","./urlUtils-legacy-b652a21b.js"],(function(a,t){"use strict";var e,l,i,n,s,r,o,u,c,p,d,g,y,m,D,T,h,v,f,b,w,x,I,L,k,A,j,S,R,V;return{setters:[a=>{e=a.s,l=a.c,i=a.d},a=>{n=a.u},a=>{s=a.t},a=>{r=a.g,o=a.a,u=a.c,c=a.d,p=a.b},a=>{d=a.C,g=a.N},a=>{y=a.T},a=>{m=a.d,D=a.r,T=a.e,h=a.n,v=a.f,f=a.N,b=a.g,w=a.w,x=a.j,I=a.k,L=a.c9,k=a.F,A=a.c,j=a.v,S=a.cd},a=>{R=a.P},a=>{V=a.v}],execute:function(){a("P",m({name:"student-practiceData",props:{studentId:{type:String,default:""},classGroupId:{type:String,default:""}},setup(a){const t=D(null),{setOptions:i}=n(t),m=D(!0),A=T({height:"360px",width:"100%",practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[]}),j=T({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),S=D([r((new Date).getTime()),o((new Date).getTime())]),R=async()=>{try{const t=await s({page:1,rows:999,studentId:a.studentId,classGroupId:a.classGroupId,...p(S.value,["startTime","endTime"],"YYYY-MM-DD")});j.tableList=t.data.rows}catch(t){console.log(t)}},V=async()=>{try{const t=await l({studentId:a.studentId,classGroupId:a.classGroupId,...p(S.value,["startTime","endTime"],"YYYY-MM-DD")});A.practiceDays=t.data.practiceDays,A.practiceDurationAvg=t.data.practiceDurationAvg,A.practiceDurationTotal=t.data.practiceDurationTotal,A.dateList=t.data.trainingStatDetailList.map((a=>a.date)),A.timeList=t.data.trainingStatDetailList.map((a=>a.practiceDuration)),i({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!1,selected:{"练习时长(分钟)":m.value}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{show:!0,interval:0},data:A.dateList},yAxis:[{type:"value",axisLabel:{formatter:a=>u(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 t;return t=u(a.value)>0?u(a.value)+"分"+c(a.value)+"秒":c(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;">练习时长: ${t} </span>`}))].join(""):a}),console.log(A)}catch(t){console.log(t)}},Y=()=>{j.pagination.page=1,V(),R(),console.log("search")},C=()=>{S.value=[r((new Date).getTime()),o((new Date).getTime())],Y(),R(),console.log("onReset")};return h((()=>{console.log(a.studentId),V(),R()})),()=>v(k,null,[v(f,{"label-placement":"left",inline:!0},{default:()=>[v(b,null,{default:()=>[v(d,{value:S.value,"onUpdate:value":a=>S.value=a,separator:"至",type:"daterange",timerValue:S.value},null)]}),v(b,null,{default:()=>[v(w,{justify:"end"},{default:()=>[v(x,{type:"primary",class:"searchBtn",onClick:Y},{default:()=>[I("搜索")]}),v(x,{type:"primary",ghost:!0,class:"resetBtn",onClick:C},{default:()=>[I("重置")]})]})]})]}),v("div",{class:e.homeTrainData},[v("div",{class:e.TrainDataTop},[v("div",{class:e.TrainDataTopLeft},[v("div",{class:e.TrainDataItem},[v("p",{class:e.TrainDataItemTitle},[u(A.practiceDurationTotal)>0?v("div",null,[v("span",null,[v(g,{from:0,to:u(A.practiceDurationTotal)},null)]),v("i",{style:{width:"4px",display:"inline-block"}},null),I("分"),v("i",{style:{width:"4px",display:"inline-block"}},null)]):null,v("div",null,[v("span",null,[v(g,{from:0,to:c(A.practiceDurationTotal)},null)]),v("i",{style:{width:"4px",display:"inline-block"}},null),I("秒")])]),v("p",{class:e.TrainDataItemsubTitle},[I("累计练习时长")])]),v("div",{class:e.TrainDataItem},[v("p",{class:e.TrainDataItemTitle},[u(A.practiceDurationAvg)>0?v("div",null,[v("span",null,[v(g,{from:0,to:u(A.practiceDurationAvg)},null)]),v("i",{style:{width:"4px",display:"inline-block"}},null),I("分"),v("i",{style:{width:"4px",display:"inline-block"}},null)]):null,v("div",null,[v("span",null,[v(g,{from:0,to:c(A.practiceDurationAvg)},null)]),v("i",{style:{width:"4px",display:"inline-block"}},null),I("秒")])]),v("p",{class:e.TrainDataItemsubTitle},[I("平均练习时长")])]),v("div",{class:e.TrainDataItem},[v("p",{class:e.TrainDataItemTitle},[v("div",null,[v("span",null,[v(g,{from:0,to:A.practiceDays},null)]),v("i",{style:{width:"4px",display:"inline-block"}},null),I("天")])]),v("p",{class:e.TrainDataItemsubTitle},[I("练习天数")])])]),v("div",{class:e.TrainDataTopRight},[v("div",{class:[e.DataTopRightItem,m.value?"":e.DataTopRightItemDis]},[v("div",{class:[e.DataTopRightDot,e.DataTopRightDotBlue]},null),v("p",null,[I("练习时长(分钟)")])])])]),v("div",{class:e.chatrs},[v("div",{ref:t,style:{height:A.height,width:A.width}},null)]),v("div",{class:e.tableWrap},[v(L,{class:e.classTable,loading:j.loading,columns:[{title:"日期",key:"date"},{title:"练习时长(分钟)",key:"practiceDuration",render:a=>v(k,null,[" ",v(k,null,[a.practiceDuration?u(a.practiceDuration)>0?u(a.practiceDuration)+"分"+c(a.practiceDuration)+"秒":c(a.practiceDuration)+"秒":"0分钟"])])}],data:j.tableList},{empty:()=>v(y,null,null)})])])])}})),a("E",m({name:"student-practiceData",props:{studentId:{type:String,default:""},classGroupId:{type:String,default:""}},setup(a){const t=A(),l=D(null);n(l),D(!0);const s=T({height:"360px",width:"100%",practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[],detailVisiable:!1}),u=D(""),c=T({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),g=D([r((new Date).getTime()),o((new Date).getTime())]),m=async()=>{const t=await i({userId:a.studentId,...c.pagination,classGroupId:a.classGroupId,feature:"EVALUATION",...p(g.value,["startTime","endTime"],"YYYY-MM-DD")});c.tableList=t.data.rows,console.log(c.tableList,"state.tableList "),c.pagination.pageTotal=t.data.total},Y=a=>{console.log(a.id,"gotoRecode");const e=t.getToken;u.value=V()+`/instrument/#/evaluat-report?id=${a.id}&Authorization=${e}`,s.detailVisiable=!0},C=()=>{m()},G=()=>{g.value=[r((new Date).getTime()),o((new Date).getTime())],C()};return h((()=>{m(),console.log(a.studentId)})),()=>v(k,null,[v(f,{"label-placement":"left",inline:!0},{default:()=>[v(b,null,{default:()=>[v(d,{value:g.value,"onUpdate:value":a=>g.value=a,separator:"至",type:"daterange",timerValue:g.value},null)]}),v(b,null,{default:()=>[v(w,{justify:"end"},{default:()=>[v(x,{type:"primary",class:"searchBtn",onClick:C},{default:()=>[I("搜索")]}),v(x,{type:"primary",ghost:!0,class:"resetBtn",onClick:G},{default:()=>[I("重置")]})]})]})]}),v("div",{class:e.tableWrap},[v(L,{class:e.classTable,loading:c.loading,columns:[{title:"时间",key:"createTime"},{title:"评测曲目",key:"musicSheetName",render:a=>v("span",null,[a.musicSheetName])},{title:"评测难度",key:"heardLevel",render:a=>v(k,null,[null==a.heardLevel?v("span",null,[I("--")]):null,"BEGINNER"==a.heardLevel?v(S,{type:"info"},{default:()=>[I("入门级")]}):null,"ADVANCED"==a.heardLevel?v(S,{type:"warning"},{default:()=>[I("进阶级")]}):null,"PERFORMER"==a.heardLevel?v(S,{type:"error"},{default:()=>[I("大师级")]}):null])},{title:"评测分数",key:"score",render:a=>v("span",null,[a.score])},{title:"音准",key:"intonation",render:a=>v("span",null,[a.intonation])},{title:"节奏",key:"cadence",render:a=>v("span",null,[a.cadence])},{title:"完整度",key:"integrity",render:a=>v("span",null,[a.integrity])},{title:"操作",key:"id",render:a=>v(x,{text:!0,type:"primary",onClick:()=>{Y(a)}},{default:()=>[I("评测报告")]})}],data:c.tableList},{empty:()=>v(y,null,null)}),v(R,{page:c.pagination.page,"onUpdate:page":a=>c.pagination.page=a,pageSize:c.pagination.rows,"onUpdate:pageSize":a=>c.pagination.rows=a,pageTotal:c.pagination.pageTotal,"onUpdate:pageTotal":a=>c.pagination.pageTotal=a,onList:m,sync:!0},null)]),v(j,{show:s.detailVisiable,"onUpdate:show":a=>s.detailVisiable=a,preset:"card",class:["modalTitle background",e.reportModel],title:"评测报告"},{default:()=>[v("iframe",{width:"100%",height:"450px",frameborder:"0",src:u.value},null)]})])}}))}}}));