afterWorkDetail-legacy-9d6eb143-1731319840132.js 14 KB

1
  1. System.register(["./index-legacy-253ed31b-1731319840132.js","./index-legacy-4dbcb4b9-1731319840132.js","./index-legacy-725f2f20-1731319840132.js","./api-legacy-66c5127b-1731319840132.js","./index-legacy-bb6bf184-1731319840132.js","./index-legacy-ce90e130-1731319840132.js","./teacherIcon-legacy-3eeb62c3-1731319840132.js","./searchArray-legacy-82b7096a-1731319840132.js","./TrainingDetails-legacy-df7c50c0-1731319840132.js","./index-legacy-aabee6fc-1731319840132.js","./contants-legacy-8af64912-1731319840132.js","./index.module-legacy-7948c6f2-1731319840132.js","./index-legacy-0bfcbac0-1731319840132.js","./api-legacy-a2724e79-1731319840132.js","./index-legacy-8b2185d7-1731319840132.js","./Slider-legacy-cbf44307-1731319840132.js","./index-legacy-c34f7809-1731319840132.js","./urlUtils-legacy-0ad6488a-1731319840132.js","./icon_default-legacy-fa9bb009-1731319840132.js","./useSpeak-legacy-04e21ea5-1731319840132.js","./api-legacy-605ba057-1731319840132.js","./icon-pan-legacy-9492b61b-1731319840132.js","./api-legacy-a9e15595-1731319840132.js","./Scrollbar-legacy-0c52b7af-1731319840132.js"],(function(e,n){"use strict";var t,a,i,o,c,l,r,_,s,p,d,g,k,h,f,u,m,w,v,x,y,T,b,S,I,C,F,j,E,L;return{setters:[e=>{t=e.S},e=>{a=e.C},e=>{i=e.P},e=>{o=e.q,c=e.r},e=>{l=e.d,r=e.e,_=e.r,s=e.a,p=e.q,d=e.U,g=e.f,k=e.w,h=e.k,f=e.Q,u=e.x,m=e.aO,w=e.N,v=e.g,x=e.y,y=e.j,T=e.aG,b=e.l,S=e.m},e=>{I=e.C},e=>{C=e.d},e=>{F=e.t},e=>{j=e.T},e=>{E=e.T},e=>{L=e.e},null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var n=document.createElement("style");n.textContent='._listWrap_1kcpn_1{padding:1.66666667vw;background-color:#fff;border-radius:1.04166667vw;min-height:calc(100vh - 7.8125vw)!important}._teacherSection_1kcpn_7{display:flex;align-items:center;border-bottom:1px solid #E9E9E9;margin-bottom:1.5625vw;padding-bottom:1.25vw}._teacherSection_1kcpn_7 ._tTemp_1kcpn_14{display:flex;align-content:center}._teacherSection_1kcpn_7 ._infos_1kcpn_18{margin-top:.41666667vw;padding:.67708333vw;background:#FFFFFF;border-radius:.52083333vw}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeTitle_1kcpn_24{font-size:max(.88541667rem,14Px);font-family:PingFangSC,PingFang SC;font-weight:600;color:#000;padding-bottom:.41666667vw}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeContent_1kcpn_31{padding-bottom:.26041667vw}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34{display:flex;align-items:flex-start}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._pSection_1kcpn_38{max-width:41.14583333vw}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p1_1kcpn_41>div,._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p2_1kcpn_42>div{display:flex;align-items:flex-start;color:#838383}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p1_1kcpn_41>div span,._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p2_1kcpn_42>div span{color:#313131;flex-shrink:0}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p1_1kcpn_41:before,._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p2_1kcpn_42:before{content:"";display:inline-block;width:.26041667vw;height:.26041667vw;background:#198CFE;margin-right:.36458333vw;border-radius:50%;flex-shrink:0;transform:translateY(-.15625vw)}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p2_1kcpn_42{padding-top:.3125vw}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p2_1kcpn_42:before{background:#F44040}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._title_1kcpn_70{font-size:max(.67708333rem,12Px);color:#777;flex-shrink:0}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._text_1kcpn_75{font-size:max(.67708333rem,12Px);font-weight:500;color:#333;line-height:1.14583333vw;display:flex;align-items:baseline}._teacherSection_1kcpn_7 ._stitcTitle_1kcpn_83{display:flex;align-items:center;font-size:max(1.04166667rem,16Px);font-family:PingFangSC,PingFang SC;font-weight:600;color:#000;line-height:1.45833333vw;padding-bottom:1.5625vw}._teacherSection_1kcpn_7 ._stitcTitle_1kcpn_83:before{content:"";display:inline-block;width:.20833333vw;height:.72916667vw;background:#198CFE;border-radius:.10416667vw;margin-right:.41666667vw}._teacherSection_1kcpn_7 ._stitcConent_1kcpn_102 .n-progress{width:116Px}._teacherSection_1kcpn_7 ._stitcConent_1kcpn_102 ._contentRect_1kcpn_105{text-align:center}._teacherSection_1kcpn_7 ._stitcConent_1kcpn_102 ._contentRect_1kcpn_105 ._text_1kcpn_75{padding-top:.26041667vw;font-size:12Px;font-family:PingFangSC,PingFang SC;font-weight:400;color:#777;line-height:.88541667vw}._teacherSection_1kcpn_7 ._stitcConent_1kcpn_102 ._nums_1kcpn_116{display:flex;align-items:center;justify-content:center;font-size:max(1.35416667rem,18Px);font-family:DINAlternate,DINAlternate;font-weight:700;color:#000;line-height:1.5625vw}._teacherSection_1kcpn_7 ._stitcConent_1kcpn_102 ._nums_1kcpn_116 i{font-style:normal;font-size:max(1.04166667rem,14Px)}._teacherSection_1kcpn_7 ._stitcConent_1kcpn_102 ._nums_1kcpn_116 span{font-size:12Px;font-family:PingFangSC,PingFang SC;font-weight:500;color:#333;line-height:.88541667vw}._teacherList_1kcpn_137{display:flex;flex-direction:column;flex:1;margin-right:3.125vw;position:relative}._teacherList_1kcpn_137:after{content:"";position:absolute;right:0;width:1px;height:55%;background:#E9E9E9;top:50%;margin-top:-3.125vw}._teacherList_1kcpn_137 ._teacherHeader_1kcpn_154{width:5.20833333vw;height:5.20833333vw;padding:.20833333vw;border-radius:5.15625vw;background:linear-gradient(228deg,#02baff,#007afe);margin-right:1.04166667vw}._teacherList_1kcpn_137 ._teacherHeader_1kcpn_154 ._teacherHeaderBorder_1kcpn_162{width:100%;height:100%;background:#fff;border-radius:5.15625vw;overflow:hidden;display:flex;flex-direction:row;align-items:center;justify-content:center;padding:.20833333vw}._teacherList_1kcpn_137 ._teacherHeaderImg_1kcpn_174{width:4.375vw;height:4.375vw;border-radius:50%;overflow:hidden}._teacherList_1kcpn_137 ._workafterInfo_1kcpn_180{display:flex;justify-content:center;flex-direction:column}._teacherList_1kcpn_137 ._workafterInfo_1kcpn_180 h4{font-size:1.14583333rem;line-height:1.5625vw;font-weight:600;color:#131415;margin-bottom:.625vw}._teacherList_1kcpn_137 ._workafterInfo_1kcpn_180 p{font-size:max(.83333333rem,12Px);line-height:1.14583333vw;color:#777}._teacherList_1kcpn_137 ._workafterInfo_1kcpn_180 p span{color:#ea4132}._wordDetailModel_1kcpn_200{width:52.70833333vw}._isok_1kcpn_203{font-weight:600;color:#333}._ison_1kcpn_207{font-weight:600;color:#ea4132}._nosub_1kcpn_211{font-weight:600;color:#aaa}\n',document.head.appendChild(n);const D={listWrap:"_listWrap_1kcpn_1",teacherSection:"_teacherSection_1kcpn_7",tTemp:"_tTemp_1kcpn_14",infos:"_infos_1kcpn_18",homeTitle:"_homeTitle_1kcpn_24",homeContent:"_homeContent_1kcpn_31",homeworkText:"_homeworkText_1kcpn_34",pSection:"_pSection_1kcpn_38",p1:"_p1_1kcpn_41",p2:"_p2_1kcpn_42",title:"_title_1kcpn_70",text:"_text_1kcpn_75",stitcTitle:"_stitcTitle_1kcpn_83",stitcConent:"_stitcConent_1kcpn_102",contentRect:"_contentRect_1kcpn_105",nums:"_nums_1kcpn_116",teacherList:"_teacherList_1kcpn_137",teacherHeader:"_teacherHeader_1kcpn_154",teacherHeaderBorder:"_teacherHeaderBorder_1kcpn_162",teacherHeaderImg:"_teacherHeaderImg_1kcpn_174",workafterInfo:"_workafterInfo_1kcpn_180",wordDetailModel:"_wordDetailModel_1kcpn_200",isok:"_isok_1kcpn_203",ison:"_ison_1kcpn_207",nosub:"_nosub_1kcpn_211"};e("default",l({name:"student-studentList",setup(){const e=r({searchForm:{keyword:"",vipFlag:null,trainingStatus:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},studentClassList:[],tableList:[],workInfo:{},detailVisiable:!1,activeRow:null,index:0}),n=_(),l=s(),R=_([{name:"班级管理",path:"/classList"},{name:l.query.name,path:"/classDetail"},{name:l.query.teacherName,path:"/afterWorkDetail"}]),P=()=>{e.pagination.page=1,A(),console.log("search",e)},H=()=>{e.searchForm={keyword:"",trainingStatus:"",vipFlag:null},P()},A=async(n,t)=>{e.loading=!0;try{const a=await o({classGroupId:l.query.classGroupId||"",trainingId:l.query.trainingId,...e.searchForm,...e.pagination,page:t||e.pagination.page});e.tableList=a.data.rows,e.pagination.page=a.data.current,e.pagination.pageTotal=a.data.total,e.loading=!1,"next"===n?(e.index=0,Y()):"prev"===n&&(e.index=e.tableList.length+1,z())}catch(a){e.loading=!1,console.log(a)}};p((()=>{(async()=>{try{const n=(await c({trainingId:l.query.trainingId})).data||{};let t="",a="";n.studentLessonTrainingDetails&&n.studentLessonTrainingDetails.length>0&&n.studentLessonTrainingDetails.forEach((e=>{const n=e.trainingContent?JSON.parse(e.trainingContent):null;if("PRACTICE"===e.trainingType&&e.musicName&&(t+="《"+e.musicName+"》",n)){const e=[`${n.practiceChapterBegin}-${n.practiceChapterEnd}小节`,`速度${n.practiceSpeed}`,`${n.trainingTimes}分钟`];t+=e.join(" | ")+";"}if("EVALUATION"===e.trainingType&&e.musicName&&(a+="《"+e.musicName+"》",n)){const e=[`${L[n.evaluateDifficult]}`,n.practiceChapterBegin||n.practiceChapterEnd?`${n.practiceChapterBegin}-${n.practiceChapterEnd}小节`:"全部小节",`${n.trainingTimes}分达标`];a+=e.join(" | ")+";"}})),n.pTitle=t,n.eTitle=a,e.workInfo=n}catch(n){console.log(n)}})(),A()}));const N=()=>[{title:"学生姓名",key:"studentName"},{title:"最后提交时间",key:"submitTime",render:e=>e.submitTime?f(e.submitTime).format("YYYY-MM-DD"):"--"},{title:"作业状态",key:"trainingStatus",render:e=>g("div",null,["UNSUBMITTED"==e.trainingStatus?g("p",{class:D.nosub},[h("未提交")]):null,"SUBMITTED"==e.trainingStatus?g("p",{class:D.ison},[h("未达标")]):null,"TARGET"==e.trainingStatus?g("p",{class:D.isok},[h("达标")]):null])},{title:"是否会员",key:"vipFlag",render:e=>e.vipFlag?"是":"否"},{title:"操作",key:"id",render:(n,t)=>g(y,{text:!0,type:"primary",onClick:()=>{((n,t)=>{e.index=t+1,e.activeRow=n,e.detailVisiable=!0})(n,t)}},{default:()=>[h("详情")]})}],Y=()=>{e.index>=e.tableList.length?A("next",e.pagination.page+1):(++e.index,e.activeRow=e.tableList[e.index-1],n.value.getTrainingDetail(e.activeRow.studentLessonTrainingId))},z=()=>{1===e.index&&1!==e.pagination.page?A("prev",e.pagination.page-1):(--e.index,e.activeRow=e.tableList[e.index-1],n.value.getTrainingDetail(e.activeRow.studentLessonTrainingId))},M=d((()=>e.index+(e.pagination.page-1)*e.pagination.rows));return()=>g("div",null,[g(I,{list:R.value},null),g("div",{class:D.listWrap},[g("div",{class:D.teacherSection},[g("div",{class:D.teacherList},[g("div",{class:D.tTemp},[g("div",{class:D.teacherHeader},[g("div",{class:D.teacherHeaderBorder},[g(k,{class:D.teacherHeaderImg,src:e.workInfo.teacherAvatar||C,previewDisabled:!0},null)])]),g("div",{class:D.workafterInfo},[g("h4",null,[e.workInfo.teacherName]),e.workInfo.createTime&&g("p",null,[h("布置时间:"),e.workInfo.createTime&&f(e.workInfo.createTime).format("YYYY-MM-DD HH:mm")," ",h("|")," ",g("span",null,[h("截止时间:"),e.workInfo.expireDate&&f(e.workInfo.expireDate).format("YYYY-MM-DD HH:mm")])])])]),g("div",{class:D.infos},[g("div",{class:D.homeTitle},[e.workInfo.name]),g("div",{class:[D.homeContent,D.homeworkText]},[g("div",{class:D.pSection},[e.workInfo.pTitle&&g("p",{class:[D.text,D.p1]},[g("div",null,[g("span",null,[h("练习曲目:")]),g("p",null,[e.workInfo.pTitle])])]),e.workInfo.eTitle&&g("p",{class:[D.text,D.p2]},[g("div",null,[g("span",null,[h("评测曲目:")]),g("p",null,[e.workInfo.eTitle])])])])])])]),g("div",null,[g("div",{class:D.stitcTitle},[h("作业完成情况")]),g("div",{class:D.stitcConent},[g(u,{size:[38,0]},{default:()=>[g(m,{percentage:e.workInfo.trainingRate||0,"offset-degree":180,type:"circle",strokeWidth:6,"rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[g("div",{class:D.contentRect},[g("div",{class:D.nums},[e.workInfo.trainingNum||0,g("i",null,[h("/")]),e.workInfo.expectNum||0,g("span",null,[h("人")])]),g("div",{class:D.text},[h("已提交")])])]}),g(m,{percentage:e.workInfo.trainingRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[g("div",{class:D.contentRect},[g("div",{class:D.nums},[e.workInfo.trainingRate||0,h("%")]),g("div",{class:D.text},[h("提交率")])])]}),g(m,{percentage:e.workInfo.qualifiedRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[g("div",{class:D.contentRect},[g("div",{class:D.nums},[e.workInfo.standardNum||0,g("span",null,[h("人")])]),g("div",{class:D.text},[h("达标人数")])])]}),g(m,{percentage:e.workInfo.qualifiedRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[g("div",{class:D.contentRect},[g("div",{class:D.nums},[e.workInfo.qualifiedRate||0,h("%")]),g("div",{class:D.text},[h("达标率")])])]})]})])])]),g("div",{class:D.searchList},[g(w,{"label-placement":"left",inline:!0},{default:()=>[g(v,null,{default:()=>[g(t,x({placeholder:"请输入学生姓名"},{class:D.searchInput,searchWord:e.searchForm.keyword,onChangeValue:n=>e.searchForm.keyword=n}),null)]}),g(v,null,{default:()=>[g(a,x({options:[{label:"全部状态",value:""},...F],placeholder:"作业状态",clearable:!0,inline:!0},{value:e.searchForm.trainingStatus,"onUpdate:value":n=>e.searchForm.trainingStatus=n}),null)]}),g(v,null,{default:()=>[g(a,x({options:[{label:"是",value:!0},{label:"否",value:!1}],placeholder:"是否会员",clearable:!0,inline:!0},{value:e.searchForm.vipFlag,"onUpdate:value":n=>e.searchForm.vipFlag=n}),null)]}),g(v,null,{default:()=>[g(u,{justify:"end"},{default:()=>[g(y,{type:"primary",class:"searchBtn",onClick:P},{default:()=>[h("搜索")]}),g(y,{type:"primary",ghost:!0,class:"resetBtn",onClick:H},{default:()=>[h("重置")]})]})]})]})]),g("div",{class:D.tableWrap},[g(T,{class:D.classTable,loading:e.loading,columns:N(),data:e.tableList},{empty:()=>g(E,null,null)}),g(i,{page:e.pagination.page,"onUpdate:page":n=>e.pagination.page=n,pageSize:e.pagination.rows,"onUpdate:pageSize":n=>e.pagination.rows=n,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":n=>e.pagination.pageTotal=n,onList:A},null)])]),g(b,{maskClosable:S,show:e.detailVisiable,"onUpdate:show":n=>e.detailVisiable=n,preset:"card",class:["modalTitle background",D.wordDetailModel],title:"作业详情"},{default:()=>[g(j,{onNext:()=>Y(),onPre:()=>z(),ref:n,onClose:()=>e.detailVisiable=!1,total:e.pagination.pageTotal,current:M.value,activeRow:e.activeRow},null)]})])}}))}}}));