index-legacy-dd49e086-1711617551545.js 12 KB

1
  1. System.register(["./index-legacy-0de45e55-1711617551545.js","./index-legacy-62056193-1711617551545.js","./index-legacy-d055db38-1711617551545.js","./api-legacy-a111272b-1711617551545.js","./index-legacy-4dc00e35-1711617551545.js","./index-legacy-280a3f22-1711617551545.js","./teacherIcon-legacy-3eeb62c3-1711617551545.js","./searchArray-legacy-a20a518c-1711617551545.js","./index-legacy-99a0dbfd-1711617551545.js","./TrainingDetails-legacy-68f886e2-1711617551545.js","./index-legacy-03ada62f-1711617551545.js","./Slider-legacy-4505dbc8-1711617551545.js","./urlUtils-legacy-cfb03d91-1711617551545.js","./index-legacy-8967856d-1711617551545.js","./icon_default-legacy-fa9bb009-1711617551545.js","./icon-plus-t-legacy-9d0f221a-1711617551545.js","./api-legacy-6271f62a-1711617551545.js","./icon-pan-legacy-9492b61b-1711617551545.js","./api-legacy-1eaef0b4-1711617551545.js","./index.module-legacy-6f5293cc-1711617551545.js","./index-legacy-569075fb-1711617551545.js","./index-legacy-d333aef4-1711617551545.js","./api-legacy-ce02319d-1711617551545.js","./Scrollbar-legacy-f64d18c0-1711617551545.js"],(function(e,t){"use strict";var a,i,n,o,r,l,_,s,c,m,w,d,g,h,f,p,u,v,x,y,k,T,b,S,I,C,F;return{setters:[e=>{a=e.S},e=>{i=e.C},e=>{n=e.P},e=>{o=e.c,r=e.d},e=>{l=e.d,_=e.a,s=e.e,c=e.r,m=e.p,w=e.f,d=e.v,g=e.k,h=e.L,f=e.w,p=e.bH,u=e.N,v=e.g,x=e.x,y=e.j,k=e.aC,T=e.l},e=>{b=e.C},e=>{S=e.d},e=>{I=e.t},e=>{C=e.T},e=>{F=e.T},null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var t=document.createElement("style");t.textContent='._listWrap_1w1am_1{padding:1.66666667vw;background-color:#fff;border-radius:1.04166667vw;min-height:calc(100vh - 7.8125vw)!important}._teacherSection_1w1am_7{display:flex;align-items:center;border-bottom:1px solid #E9E9E9;margin-bottom:1.5625vw;padding-bottom:1.25vw}._teacherSection_1w1am_7 ._tTemp_1w1am_14{display:flex;align-content:center}._teacherSection_1w1am_7 ._infos_1w1am_18{margin-top:.41666667vw;padding:.67708333vw;background:#FFFFFF;border-radius:.52083333vw}._teacherSection_1w1am_7 ._infos_1w1am_18 ._homeTitle_1w1am_24{font-size:max(.88541667rem,14Px);font-family:PingFangSC,PingFang SC;font-weight:600;color:#000;padding-bottom:.41666667vw}._teacherSection_1w1am_7 ._infos_1w1am_18 ._homeContent_1w1am_31{padding-bottom:.26041667vw}._teacherSection_1w1am_7 ._infos_1w1am_18 ._homeworkText_1w1am_34{display:flex;align-items:flex-start}._teacherSection_1w1am_7 ._infos_1w1am_18 ._homeworkText_1w1am_34 ._pSection_1w1am_38{max-width:26.04166667vw}._teacherSection_1w1am_7 ._infos_1w1am_18 ._homeworkText_1w1am_34 ._p1_1w1am_41,._teacherSection_1w1am_7 ._infos_1w1am_18 ._homeworkText_1w1am_34 ._p2_1w1am_42{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._teacherSection_1w1am_7 ._infos_1w1am_18 ._homeworkText_1w1am_34 ._p1_1w1am_41:before,._teacherSection_1w1am_7 ._infos_1w1am_18 ._homeworkText_1w1am_34 ._p2_1w1am_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_1w1am_7 ._infos_1w1am_18 ._homeworkText_1w1am_34 ._p2_1w1am_42{padding-top:.3125vw}._teacherSection_1w1am_7 ._infos_1w1am_18 ._homeworkText_1w1am_34 ._p2_1w1am_42:before{background:#F44040}._teacherSection_1w1am_7 ._infos_1w1am_18 ._title_1w1am_65{font-size:max(.67708333rem,12Px);color:#777;flex-shrink:0}._teacherSection_1w1am_7 ._infos_1w1am_18 ._text_1w1am_70{font-size:max(.67708333rem,12Px);font-weight:500;color:#333;line-height:1.14583333vw}._teacherSection_1w1am_7 ._stitcTitle_1w1am_76{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_1w1am_7 ._stitcTitle_1w1am_76:before{content:"";display:inline-block;width:.20833333vw;height:.72916667vw;background:#198CFE;border-radius:.10416667vw;margin-right:.41666667vw}._teacherSection_1w1am_7 ._stitcConent_1w1am_95 .n-progress{width:116Px}._teacherSection_1w1am_7 ._stitcConent_1w1am_95 ._contentRect_1w1am_98{text-align:center}._teacherSection_1w1am_7 ._stitcConent_1w1am_95 ._contentRect_1w1am_98 ._text_1w1am_70{padding-top:.26041667vw;font-size:12Px;font-family:PingFangSC,PingFang SC;font-weight:400;color:#777;line-height:.88541667vw}._teacherSection_1w1am_7 ._stitcConent_1w1am_95 ._nums_1w1am_109{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_1w1am_7 ._stitcConent_1w1am_95 ._nums_1w1am_109 i{font-style:normal;font-size:max(1.04166667rem,14Px)}._teacherSection_1w1am_7 ._stitcConent_1w1am_95 ._nums_1w1am_109 span{font-size:12Px;font-family:PingFangSC,PingFang SC;font-weight:500;color:#333;line-height:.88541667vw}._teacherList_1w1am_130{display:flex;flex-direction:column;flex:1;margin-right:3.125vw;position:relative}._teacherList_1w1am_130:after{content:"";position:absolute;right:0;width:1px;height:6.25vw;background:#E9E9E9;top:50%;margin-top:-3.125vw}._teacherList_1w1am_130 ._teacherHeader_1w1am_147{width:5.20833333vw;height:5.20833333vw;padding:.20833333vw;border-radius:5.15625vw;background:linear-gradient(228deg,#02baff,#007afe);margin-right:1.04166667vw}._teacherList_1w1am_130 ._teacherHeader_1w1am_147 ._teacherHeaderBorder_1w1am_155{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_1w1am_130 ._teacherHeaderImg_1w1am_167{width:4.375vw;height:4.375vw;border-radius:50%;overflow:hidden}._teacherList_1w1am_130 ._workafterInfo_1w1am_173{display:flex;justify-content:center;flex-direction:column}._teacherList_1w1am_130 ._workafterInfo_1w1am_173 h4{font-size:1.14583333rem;line-height:1.5625vw;font-weight:600;color:#131415;margin-bottom:.625vw}._teacherList_1w1am_130 ._workafterInfo_1w1am_173 p{font-size:max(.83333333rem,12Px);line-height:1.14583333vw;color:#777}._teacherList_1w1am_130 ._workafterInfo_1w1am_173 p span{color:#ea4132}._wordDetailModel_1w1am_193{width:52.70833333vw}\n',document.head.appendChild(t);const j={listWrap:"_listWrap_1w1am_1",teacherSection:"_teacherSection_1w1am_7",tTemp:"_tTemp_1w1am_14",infos:"_infos_1w1am_18",homeTitle:"_homeTitle_1w1am_24",homeContent:"_homeContent_1w1am_31",homeworkText:"_homeworkText_1w1am_34",pSection:"_pSection_1w1am_38",p1:"_p1_1w1am_41",p2:"_p2_1w1am_42",title:"_title_1w1am_65",text:"_text_1w1am_70",stitcTitle:"_stitcTitle_1w1am_76",stitcConent:"_stitcConent_1w1am_95",contentRect:"_contentRect_1w1am_98",nums:"_nums_1w1am_109",teacherList:"_teacherList_1w1am_130",teacherHeader:"_teacherHeader_1w1am_147",teacherHeaderBorder:"_teacherHeaderBorder_1w1am_155",teacherHeaderImg:"_teacherHeaderImg_1w1am_167",workafterInfo:"_workafterInfo_1w1am_173",wordDetailModel:"_wordDetailModel_1w1am_193"};e("default",l({name:"homewrok-record-detail",setup(){const e=_(),t=s({searchForm:{keyword:"",trainingStatus:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],workInfo:{},detailVisiable:!1,activeRow:null,index:0}),l=c(),D=c([{name:"作业",path:"/homework-record"},{name:e.query.name,path:"/homework-record-detail"}]),E=()=>{t.pagination.page=1,R()},L=()=>{t.searchForm={keyword:"",trainingStatus:""},E()},R=async()=>{t.loading=!0;try{const a=await o({trainingId:e.query.id,...t.searchForm,...t.pagination});t.tableList=a.data.rows,t.pagination.pageTotal=a.data.total,t.loading=!1}catch(a){t.loading=!1,console.log(a)}};m((()=>{(async()=>{try{const a=(await r({id:e.query.id})).data||{};let i="",n="";a.studentLessonTrainingDetails&&a.studentLessonTrainingDetails.length>0&&a.studentLessonTrainingDetails.forEach((e=>{"PRACTICE"===e.trainingType&&e.musicName&&(i+=i?"、《"+e.musicName+"》":"练习曲目《"+e.musicName+"》"),"EVALUATION"===e.trainingType&&e.musicName&&(n+=n?"、《"+e.musicName+"》":"评测曲目《"+e.musicName+"》")})),a.pTitle=i,a.eTitle=n,t.workInfo=a}catch(a){console.log(a)}})(),R()}));const P=()=>[{title:"学生姓名",key:"studentName"},{title:"最后提交时间",key:"submitTime",render:e=>e.submitTime?h(e.submitTime).format("YYYY-MM-DD"):"--"},{title:"作业状态",key:"sex",render:e=>w("div",null,["UNSUBMITTED"==e.trainingStatus?w("p",{class:j.nosub},[g("未提交")]):null,"SUBMITTED"==e.trainingStatus?w("p",{class:j.ison},[g("不合格")]):null,"TARGET"==e.trainingStatus?w("p",{class:j.isok},[g("合格")]):null])},{title:"操作",key:"id",render:(e,a)=>w(y,{text:!0,type:"primary",onClick:()=>{((e,a)=>{console.log(a,"index"),t.index=a+1,t.activeRow=e,t.detailVisiable=!0})(e,a)}},{default:()=>[g("详情")]})}];return()=>w("div",null,[w(b,{list:D.value},null),w("div",{class:j.listWrap},[w("div",{class:j.teacherSection},[w("div",{class:j.teacherList},[w("div",{class:j.tTemp},[w("div",{class:j.teacherHeader},[w("div",{class:j.teacherHeaderBorder},[w(d,{class:j.teacherHeaderImg,src:t.workInfo.teacherAvatar||S,previewDisabled:!0},null)])]),w("div",{class:j.workafterInfo},[w("h4",null,[t.workInfo.teacherName]),t.workInfo.createTime&&w("p",null,[g("布置时间:"),t.workInfo.createTime&&h(t.workInfo.createTime).format("YYYY-MM-DD HH:mm")," ",g("|")," ",w("span",null,[g("截止时间:"),t.workInfo.expireDate&&h(t.workInfo.expireDate).format("YYYY-MM-DD HH:mm")])])])]),w("div",{class:j.infos},[w("div",{class:j.homeTitle},[t.workInfo.name]),w("div",{class:[j.homeContent,j.homeworkText]},[w("div",{class:j.pSection},[t.workInfo.pTitle&&w("p",{class:[j.text,j.p1]},[t.workInfo.pTitle]),t.workInfo.eTitle&&w("p",{class:[j.text,j.p2]},[t.workInfo.eTitle])])])])]),w("div",null,[w("div",{class:j.stitcTitle},[g("作业完成情况")]),w("div",{class:j.stitcConent},[w(f,{size:[38,0]},{default:()=>[w(p,{percentage:t.workInfo.trainingRate||0,"offset-degree":180,type:"circle",strokeWidth:6,"rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[w("div",{class:j.contentRect},[w("div",{class:j.nums},[t.workInfo.trainingNum||0,w("i",null,[g("/")]),t.workInfo.expectNum||0,w("span",null,[g("人")])]),w("div",{class:j.text},[g("已提交")])])]}),w(p,{percentage:t.workInfo.trainingRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[w("div",{class:j.contentRect},[w("div",{class:j.nums},[t.workInfo.trainingRate||0,g("%")]),w("div",{class:j.text},[g("提交率")])])]}),w(p,{percentage:t.workInfo.qualifiedRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[w("div",{class:j.contentRect},[w("div",{class:j.nums},[t.workInfo.standardNum||0,w("span",null,[g("人")])]),w("div",{class:j.text},[g("合格人数")])])]}),w(p,{percentage:t.workInfo.qualifiedRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[w("div",{class:j.contentRect},[w("div",{class:j.nums},[t.workInfo.qualifiedRate||0,g("%")]),w("div",{class:j.text},[g("合格率")])])]})]})])])]),w("div",{class:j.searchList},[w(u,{"label-placement":"left",inline:!0},{default:()=>[w(v,null,{default:()=>[w(a,x({placeholder:"请输入学生姓名"},{class:j.searchInput,searchWord:t.searchForm.keyword,onChangeValue:e=>t.searchForm.keyword=e}),null)]}),w(v,null,{default:()=>[w(i,x({options:[{label:"全部状态",value:""},...I],placeholder:"作业状态",clearable:!0,inline:!0},{value:t.searchForm.trainingStatus,"onUpdate:value":e=>t.searchForm.trainingStatus=e}),null)]}),w(v,null,{default:()=>[w(f,{justify:"end"},{default:()=>[w(y,{type:"primary",class:"searchBtn",onClick:E},{default:()=>[g("搜索")]}),w(y,{type:"primary",ghost:!0,class:"resetBtn",onClick:L},{default:()=>[g("重置")]})]})]})]})]),w("div",{class:j.tableWrap},[w(k,{class:j.classTable,loading:t.loading,columns:P(),data:t.tableList},{empty:()=>w(C,null,null)}),w(n,{page:t.pagination.page,"onUpdate:page":e=>t.pagination.page=e,pageSize:t.pagination.rows,"onUpdate:pageSize":e=>t.pagination.rows=e,pageTotal:t.pagination.pageTotal,"onUpdate:pageTotal":e=>t.pagination.pageTotal=e,onList:R},null)])]),w(T,{show:t.detailVisiable,"onUpdate:show":e=>t.detailVisiable=e,preset:"card",class:["modalTitle background",j.wordDetailModel],title:"作业详情"},{default:()=>[w(F,{onNext:()=>(++t.index,t.activeRow=t.tableList[t.index-1],void l.value.getTrainingDetail(t.activeRow.studentLessonTrainingId)),onPre:()=>(--t.index,t.activeRow=t.tableList[t.index-1],void l.value.getTrainingDetail(t.activeRow.studentLessonTrainingId)),ref:l,onClose:()=>t.detailVisiable=!1,total:t.tableList.length,current:t.index,activeRow:t.activeRow},null)]})])}}))}}}));