1 |
- System.register(["./index.module-legacy-d2eb233d-1726219372904.js","./useECharts-legacy-e4d396a7-1726219372904.js","./api-legacy-5fd1c091-1726219372904.js","./api-legacy-824e3227-1726219372904.js","./dateFormat-legacy-7f1891b4-1726219372904.js","./index-legacy-383c219e-1726219372904.js","./index-legacy-783edf9f-1726219372904.js","./use-async-legacy-c454b906-1726219372904.js","./index-legacy-07b6971b-1726219372904.js","./index-legacy-e9884031-1726219372904.js","./urlUtils-legacy-0ad6488a-1726219372904.js","./index-legacy-2c3bd9e3-1726219372904.js","./searchArray-legacy-8a773c31-1726219372904.js"],(function(e,a){"use strict";var t,l,i,r,n,s,o,c,u,d,p,g,m,y,h,v,D,A,T,w,f,x,I,F,b,k,S,U,E,C,N,L,R,Y,j,P,M,B,Q;return{setters:[e=>{t=e.s},e=>{l=e.u},e=>{i=e.c,r=e.d},e=>{n=e.s},e=>{s=e.g,o=e.a,c=e.c,u=e.N,d=e.d,p=e.b},e=>{g=e.C},e=>{m=e.T},e=>{y=e.i,h=e.s},e=>{v=e.d,D=e.r,A=e.e,T=e.q,w=e.f,f=e.N,x=e.g,I=e.x,F=e.j,b=e.k,k=e.aG,S=e.F,U=e.c,E=e.h,C=e.y,N=e.aP,L=e.l,R=e.m,Y=e.G,j=e.aM},e=>{P=e.P},e=>{M=e.v},e=>{B=e.C},e=>{Q=e.e}],execute:function(){e("f","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAqCAYAAACpxZteAAAAAXNSR0IArs4c6QAAA/NJREFUWEftll+IVGUYxp/nzOpsomUhpZvTjUZWFmsQFgrRRQltuRea3mQXc2a22tygbpozo3RA2zMGQmih685ZsKhwi93cLDIp+iNF/5QwwcqgEDIlWKGMnW3OeWJn251zZmd3ZnYxCJq7ec/7Pb/v/fO930dc4h8vsT6mBCi+Yx6MwfvgsxXUrQAXQZgD4iyAnwAdhsF+djvfT7bRigB17Iri4tnHQWQgXVU9SvaCytDNni73nQBQeyaGvHcQworqwkEPDoE06Xa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TdJptVCEtDkrIMh34qHGCgnnrXf/7mqjn2PI5LuyuWe/CgRYhN9Md2jtL50GXq8Bjd0BdhTKcDx80V0r6DMDMikhrxoiEn0WdokaaPLsDMR4sqrEc/6+iI67p7ThlzkANokrcoBDFcngmy7JoClHZKcgTUYheEq1ln6BJIziTKPh1zSHeKn1wSI6k3ZeiUHADc4EeyW9LQrRcsTIb5/TQBLWyWtdWmtY11EUUC5iiH4WiLM3JlcDchn6VDB8G9ivaUVaWmo3smfkyHeejXCV6pokpAp96rs2poaNnD6Nk3ov4izbgPBx92Xp0pgvogigkKu/P+YCHNeppvWRbQH0BOu3CUNcWdhZxwJ5I/pATuNA3mbJNcnQmzJAPyWbraFXwqiOGqq8Vipq7mztj6mR9M2dkMaN7QBdk6YjtnOIMrNA5+ljZI25e2SvEDAqjZoPRng0NURwPSobukXXoawApDJrSPTJBYngjyY+RayhkzTimIPpGXDUjF4S3OulacoeAU05nVe1wJjGIwHGRs6C5fx9lZVJy9gm6TVlRxsvg8HDNEcD3G7+33RmeyLaiWENyTVVQIi+YMzvxNh5ppm0QjcYr5WjdYFrCGwTMKCvDwPdstLAA6S2NUdwJ7sZbdwQ5XdTWMa329jBok6EakqIMnx6OxaycvlIvwH+wgy5cy9OxMAAAAASUVORK5CYII="),e("P",v({name:"student-practiceData",props:{studentId:{type:String,default:""},classGroupId:{type:String,default:""}},setup(e){const a=D(null),{setOptions:r}=l(a),v=D(!0),U=A({height:"360px",width:"100%",practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[]}),E=A({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],goCourseVisiable:!1}),C=D([s((new Date).getTime()),o((new Date).getTime())]),N=async()=>{try{const a=await n({page:1,rows:999,studentId:e.studentId,classGroupId:e.classGroupId,...p(C.value,["startTime","endTime"],"YYYY-MM-DD")});E.tableList=a.data.rows}catch(a){console.log(a)}},L=async()=>{try{const a=await i({studentId:e.studentId,classGroupId:e.classGroupId,...p(C.value,["startTime","endTime"],"YYYY-MM-DD")});U.practiceDays=a.data.practiceDays,U.practiceDurationAvg=a.data.practiceDurationAvg,U.practiceDurationTotal=a.data.practiceDurationTotal,U.dateList=a.data.trainingStatDetailList.map((e=>e.date)),U.timeList=a.data.trainingStatDetailList.map((e=>e.practiceDuration)),r({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!1,selected:{"学练时长(分钟)":v.value}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{show:!0},data:U.dateList},yAxis:[{type:"value",axisLabel:{formatter:e=>c(e)+"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:U.timeList,type:"bar",barWidth:"48px",stack:"total",itemStyle:{normal:{barBorderRadius:[8,8,0,0],color:"#D5E9FF"},emphasis:{focus:"series",color:"#3583FA"}}}],formatter:e=>Array.isArray(e)?[e[0].axisValueLabel,...e.map((e=>{let a;return a=c(e.value)>0?c(e.value)+"分"+d(e.value)+"秒":d(e.value)+"秒",`<br/>${e.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;">学练时长: ${a} </span>`}))].join(""):e})}catch(a){console.log(a)}},R=()=>{E.pagination.page=1,L(),N(),h({current:{timer:C.value},saveKey:"classStudentRecordPracticeData"})},Y=()=>{C.value=[s((new Date).getTime()),o((new Date).getTime())],R(),N(),h({current:{timer:C.value},saveKey:"classStudentRecordPracticeData"})};return y({current:{timer:C.value},saveKey:"classStudentRecordPracticeData",callBack:e=>{C.value=e.timer}}),T((()=>{console.log(e.studentId),L(),N()})),()=>w(S,null,[w(f,{"label-placement":"left",inline:!0},{default:()=>[w(x,null,{default:()=>[w(g,{value:C.value,"onUpdate:value":e=>C.value=e,separator:"至",type:"daterange",timerValue:C.value},null)]}),w(x,null,{default:()=>[w(I,{justify:"end"},{default:()=>[w(F,{type:"primary",class:"searchBtn",onClick:R},{default:()=>[b("搜索")]}),w(F,{type:"primary",ghost:!0,class:"resetBtn",onClick:Y},{default:()=>[b("重置")]})]})]})]}),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(U.practiceDurationTotal)>0?w("div",null,[w("span",null,[w(u,{from:0,to:c(U.practiceDurationTotal)},null)]),w("i",{style:{width:"4px",display:"inline-block"}},null),b("分"),w("i",{style:{width:"4px",display:"inline-block"}},null)]):null,w("div",null,[w("span",null,[w(u,{from:0,to:d(U.practiceDurationTotal)},null)]),w("i",{style:{width:"4px",display:"inline-block"}},null),b("秒")])]),w("p",{class:t.TrainDataItemsubTitle},[b("累计练习时长")])]),w("div",{class:t.TrainDataItem},[w("p",{class:t.TrainDataItemTitle},[c(U.practiceDurationAvg)>0?w("div",null,[w("span",null,[w(u,{from:0,to:c(U.practiceDurationAvg)},null)]),w("i",{style:{width:"4px",display:"inline-block"}},null),b("分"),w("i",{style:{width:"4px",display:"inline-block"}},null)]):null,w("div",null,[w("span",null,[w(u,{from:0,to:d(U.practiceDurationAvg)},null)]),w("i",{style:{width:"4px",display:"inline-block"}},null),b("秒")])]),w("p",{class:t.TrainDataItemsubTitle},[b("平均每天练习时长")])]),w("div",{class:t.TrainDataItem},[w("p",{class:t.TrainDataItemTitle},[w("div",null,[w("span",null,[w(u,{from:0,to:U.practiceDays},null)]),w("i",{style:{width:"4px",display:"inline-block"}},null),b("天")])]),w("p",{class:t.TrainDataItemsubTitle},[b("练习天数")])])]),w("div",{class:t.TrainDataTopRight},[w("div",{class:[t.DataTopRightItem,v.value?"":t.DataTopRightItemDis]},[w("div",{class:[t.DataTopRightDot,t.DataTopRightDotBlue]},null),w("p",null,[b("学练时长(分钟)")])])])]),w("div",{class:t.chatrs},[w("div",{ref:a,style:{height:U.height,width:U.width}},null)]),w("div",{class:[t.tableWrap,t.tableWrapEcharts]},[w(k,{class:t.classTable,loading:E.loading,columns:[{title:"日期",key:"date"},{title:"学练时长",key:"practiceDuration",render:e=>w(S,null,[" ",w(S,null,[e.practiceDuration?c(e.practiceDuration)>0?c(e.practiceDuration)+"分"+d(e.practiceDuration)+"秒":d(e.practiceDuration)+"秒":"0分钟"])])}],data:E.tableList},{empty:()=>w(m,null,null)})])])])}})),e("E",v({name:"student-practiceData",props:{studentId:{type:String,default:""},classGroupId:{type:String,default:""}},setup(e){const a=U();D(null);const l=A({height:"360px",width:"100%",practiceDurationAvg:0,practiceDays:0,practiceDurationTotal:0,dateList:[],timeList:[],detailVisiable:!1}),i=D(""),n=A({loading:!1,pagination:{page:1,rows:10,pageTotal:4},searchForm:{musicSheetName:"",heardLevel:null,userMusicFlag:null,minScore:null,maxScore:null,musicStartTime:[]},tableList:[],goCourseVisiable:!1}),c=D([s((new Date).getTime()),o((new Date).getTime())]),u=async()=>{const{musicStartTime:a,...t}=n.searchForm,l=await r({userId:e.studentId,...n.pagination,...t,...p(a,["userMusicStartTime","userMusicEndTime"],"YYYY-MM-DD"),classGroupId:e.classGroupId,feature:"EVALUATION",...p(c.value,["startTime","endTime"],"YYYY-MM-DD")});n.tableList=l.data.rows,n.pagination.pageTotal=l.data.total},d=e=>{const t=a.getToken;i.value=M()+`/instrument/?v=${+new Date}#/evaluat-report?v=${+new Date}&id=${e.id}&platform=webTeacher&Authorization=${t}`,l.detailVisiable=!0},v=()=>{n.pagination.page=1,u(),h({current:{timer:c.value},saveKey:"classStudentRecordEvaluationRecords"})},W=()=>{c.value=[s((new Date).getTime()),o((new Date).getTime())],n.searchForm={musicSheetName:"",heardLevel:null,userMusicFlag:null,minScore:null,maxScore:null,musicStartTime:[]},v(),h({current:{timer:c.value},saveKey:"classStudentRecordEvaluationRecords"})};y({current:{timer:c.value},saveKey:"classStudentRecordEvaluationRecords",callBack:e=>{c.value=e.timer}});const G=D();return T((()=>{u()})),()=>w(S,null,[w(f,{"label-placement":"left",inline:!0,style:"flex-wrap: wrap;"},{default:()=>[w(x,null,{default:()=>[w(g,{value:c.value,"onUpdate:value":e=>c.value=e,separator:"至",type:"daterange",class:t.datePicker,startPlaceholder:"评测开始时间",endPlaceholder:"评测结束时间",timerValue:c.value},null)]}),w(x,null,{default:()=>[w(E,{placeholder:"请输入曲目名称",value:n.searchForm.musicSheetName,"onUpdate:value":e=>n.searchForm.musicSheetName=e},null)]}),w(x,null,{default:()=>[w(B,C({options:Q,placeholder:"请输入评测难度",clearable:!0,inline:!0},{value:n.searchForm.heardLevel,"onUpdate:value":e=>n.searchForm.heardLevel=e}),null)]}),w(x,null,{default:()=>[w("div",{class:t.inputRangeSection},[w(N,{placeholder:"最小分值",min:0,max:n.searchForm.maxScore||100,showButton:!1,precision:0,value:n.searchForm.minScore,"onUpdate:value":e=>n.searchForm.minScore=e},null),w("span",{class:t.pair},[b("-")]),w(N,{placeholder:"最大分值",min:n.searchForm.minScore||0,max:100,precision:0,showButton:!1,value:n.searchForm.maxScore,"onUpdate:value":e=>n.searchForm.maxScore=e},null)])]}),w(x,null,{default:()=>[w(B,C({options:[{label:"是",value:!0},{label:"否",value:!1}],placeholder:"请选择是否生成作品",clearable:!0,inline:!0},{value:n.searchForm.userMusicFlag,"onUpdate:value":e=>n.searchForm.userMusicFlag=e}),null)]}),w(x,null,{default:()=>[w(g,C({value:n.searchForm.musicStartTime,"onUpdate:value":e=>n.searchForm.musicStartTime=e,separator:"至",class:t.datePicker,type:"daterange",startPlaceholder:"生成开始时间",endPlaceholder:"生成结束时间"},{clearable:!0},{timerValue:n.searchForm.musicStartTime}),null)]}),w(x,null,{default:()=>[w(I,{justify:"end"},{default:()=>[w(F,{type:"primary",class:"searchBtn",onClick:v},{default:()=>[b("搜索")]}),w(F,{type:"primary",ghost:!0,class:"resetBtn",onClick:W},{default:()=>[b("重置")]})]})]})]}),w("div",{class:t.tableWrap},[w(k,{class:t.classTable,loading:n.loading,columns:[{title:"时间",key:"createTime"},{title:"评测曲目",key:"musicSheetName",render:e=>w("span",null,[e.musicSheetName])},{title:"评测难度",key:"heardLevel",render:e=>w(S,null,[null==e.heardLevel?w("span",null,[b("--")]):null,"BEGINNER"==e.heardLevel?w(j,{type:"info"},{default:()=>[b("入门级")]}):null,"ADVANCED"==e.heardLevel?w(j,{type:"warning"},{default:()=>[b("进阶级")]}):null,"PERFORMER"==e.heardLevel?w(j,{type:"error"},{default:()=>[b("大师级")]}):null])},{title:"评测分数",key:"score",render:e=>w("span",null,[e.score])},{title:"音准",key:"intonation",render:e=>w("span",null,[e.intonation])},{title:"节奏",key:"cadence",render:e=>w("span",null,[e.cadence])},{title:"完整度",key:"integrity",render:e=>w("span",null,[e.integrity])},{title:"生成作品",key:"integrity",render:e=>w("span",null,[e.userMusicFlag?"是":"否"])},{title:"生成时间",key:"userMusicTime",render:e=>w("span",null,[e.userMusicTime||"--"])},{title:"操作",key:"id",render:e=>w(F,{text:!0,type:"primary",onClick:()=>{d(e)}},{default:()=>[b("评测报告")]})}],data:n.tableList},{empty:()=>w(m,null,null)}),w(P,{page:n.pagination.page,"onUpdate:page":e=>n.pagination.page=e,pageSize:n.pagination.rows,"onUpdate:pageSize":e=>n.pagination.rows=e,pageTotal:n.pagination.pageTotal,"onUpdate:pageTotal":e=>n.pagination.pageTotal=e,onList:u,sync:!0},null)]),w(L,{maskClosable:R,show:l.detailVisiable,"onUpdate:show":e=>l.detailVisiable=e,preset:"card",class:["modalTitle background",t.reportModel],title:"评测报告"},{default:()=>[w("div",{class:t.reportContainer,style:{lineHeight:0}},[w("iframe",{width:"100%",ref:G,frameborder:"0",onLoad:e=>{Y(e.target)},src:i.value},null)])]})])}}))}}}));
|