1 |
- System.register(["./index-legacy-7266490c-1708392485456.js","./index-legacy-b58ad2ec-1708392485456.js","./index-legacy-6a9cd1bb-1708392485456.js","./api-legacy-ee3333e2-1708392485456.js","./index-legacy-8edb2ec7-1708392485456.js","./index-legacy-ef452644-1708392485456.js","./teacherIcon-legacy-3eeb62c3-1708392485456.js","./searchArray-legacy-9b02737e-1708392485456.js","./index-legacy-2ec03ac7-1708392485456.js","./TrainingDetails-legacy-db7d4b42-1708392485456.js","./index-legacy-983b8fad-1708392485456.js","./Slider-legacy-c38a95e1-1708392485456.js","./urlUtils-legacy-6df7f30c-1708392485456.js","./api-legacy-249df47a-1708392485456.js","./index.module-legacy-49c63b78-1708392485456.js","./index-legacy-5c7c880b-1708392485456.js","./index-legacy-416409f2-1708392485456.js","./api-legacy-a0be9300-1708392485456.js"],(function(e,n){"use strict";var t,i,a,o,r,l,_,s,c,w,d,g,h,f,m,p,u,v,x,k,y,T,b,S,I,C,F;return{setters:[e=>{t=e.S},e=>{i=e.C},e=>{a=e.P},e=>{o=e.c,r=e.d},e=>{l=e.d,_=e.a,s=e.e,c=e.r,w=e.p,d=e.f,g=e.v,h=e.k,f=e.K,m=e.w,p=e.br,u=e.N,v=e.g,x=e.x,k=e.j,y=e.$,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],execute:function(){var n=document.createElement("style");n.textContent='._listWrap_w3nn3_1{min-height:100%;padding:1.66666667vw;background-color:#fff;border-radius:1.04166667vw}._teacherSection_w3nn3_7{display:flex;align-items:center;border-bottom:1px solid #E9E9E9;margin-bottom:1.5625vw;padding-bottom:1.25vw}._teacherSection_w3nn3_7 ._tTemp_w3nn3_14{display:flex;align-content:center}._teacherSection_w3nn3_7 ._infos_w3nn3_18{padding:.67708333vw;background:#FFFFFF;border-radius:.52083333vw}._teacherSection_w3nn3_7 ._infos_w3nn3_18 ._homeTitle_w3nn3_23{font-size:max(.88541667rem,14Px);font-family:PingFangSC,PingFang SC;font-weight:600;color:#000;padding-bottom:.26041667vw}._teacherSection_w3nn3_7 ._infos_w3nn3_18 ._homeContent_w3nn3_30{padding-bottom:.26041667vw}._teacherSection_w3nn3_7 ._infos_w3nn3_18 ._homeworkText_w3nn3_33{display:flex;align-items:flex-start}._teacherSection_w3nn3_7 ._infos_w3nn3_18 ._homeworkText_w3nn3_33 ._pSection_w3nn3_37{max-width:26.04166667vw}._teacherSection_w3nn3_7 ._infos_w3nn3_18 ._homeworkText_w3nn3_33 ._p1_w3nn3_40,._teacherSection_w3nn3_7 ._infos_w3nn3_18 ._homeworkText_w3nn3_33 ._p2_w3nn3_41{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._teacherSection_w3nn3_7 ._infos_w3nn3_18 ._homeworkText_w3nn3_33 ._p1_w3nn3_40:before,._teacherSection_w3nn3_7 ._infos_w3nn3_18 ._homeworkText_w3nn3_33 ._p2_w3nn3_41:before{content:"";display:inline-block;width:.26041667vw;height:.26041667vw;background:#198CFE;margin-right:.36458333vw;border-radius:50%;flex-shrink:0;transform:translateY(-.15625vw)}._teacherSection_w3nn3_7 ._infos_w3nn3_18 ._homeworkText_w3nn3_33 ._p2_w3nn3_41{padding-top:.3125vw}._teacherSection_w3nn3_7 ._infos_w3nn3_18 ._homeworkText_w3nn3_33 ._p2_w3nn3_41:before{background:#F44040}._teacherSection_w3nn3_7 ._infos_w3nn3_18 ._title_w3nn3_64{font-size:max(.67708333rem,12Px);color:#777;flex-shrink:0}._teacherSection_w3nn3_7 ._infos_w3nn3_18 ._text_w3nn3_69{font-size:max(.67708333rem,12Px);font-weight:500;color:#333;line-height:1.14583333vw}._teacherSection_w3nn3_7 ._stitcTitle_w3nn3_75{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_w3nn3_7 ._stitcTitle_w3nn3_75:before{content:"";display:inline-block;width:.20833333vw;height:.72916667vw;background:#198CFE;border-radius:.10416667vw;margin-right:.41666667vw}._teacherSection_w3nn3_7 ._stitcConent_w3nn3_94 .n-progress{width:116Px}._teacherSection_w3nn3_7 ._stitcConent_w3nn3_94 ._contentRect_w3nn3_97{text-align:center}._teacherSection_w3nn3_7 ._stitcConent_w3nn3_94 ._contentRect_w3nn3_97 ._text_w3nn3_69{padding-top:.26041667vw;font-size:12Px;font-family:PingFangSC,PingFang SC;font-weight:400;color:#777;line-height:.88541667vw}._teacherSection_w3nn3_7 ._stitcConent_w3nn3_94 ._nums_w3nn3_108{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_w3nn3_7 ._stitcConent_w3nn3_94 ._nums_w3nn3_108 i{font-style:normal;font-size:max(1.04166667rem,14Px)}._teacherSection_w3nn3_7 ._stitcConent_w3nn3_94 ._nums_w3nn3_108 span{font-size:12Px;font-family:PingFangSC,PingFang SC;font-weight:500;color:#333;line-height:.88541667vw}._teacherList_w3nn3_129{display:flex;flex-direction:column;flex:1;margin-right:3.125vw;position:relative}._teacherList_w3nn3_129:after{content:"";position:absolute;right:0;width:1px;height:6.25vw;background:#E9E9E9;top:50%;margin-top:-3.125vw}._teacherList_w3nn3_129 ._teacherHeader_w3nn3_146{width:5.20833333vw;height:5.20833333vw;padding:.20833333vw;border-radius:5.15625vw;background:linear-gradient(228deg,#02baff,#007afe);margin-right:1.04166667vw}._teacherList_w3nn3_129 ._teacherHeader_w3nn3_146 ._teacherHeaderBorder_w3nn3_154{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_w3nn3_129 ._teacherHeaderImg_w3nn3_166{width:4.375vw;height:4.375vw;border-radius:50%;overflow:hidden}._teacherList_w3nn3_129 ._workafterInfo_w3nn3_172{display:flex;justify-content:center;flex-direction:column}._teacherList_w3nn3_129 ._workafterInfo_w3nn3_172 h4{font-size:1.14583333rem;line-height:1.5625vw;font-weight:600;color:#131415;margin-bottom:.625vw}._teacherList_w3nn3_129 ._workafterInfo_w3nn3_172 p{font-size:max(.83333333rem,12Px);line-height:1.14583333vw;color:#777}._teacherList_w3nn3_129 ._workafterInfo_w3nn3_172 p span{color:#ea4132}._wordDetailModel_w3nn3_192{width:52.70833333vw}\n',document.head.appendChild(n);const D={listWrap:"_listWrap_w3nn3_1",teacherSection:"_teacherSection_w3nn3_7",tTemp:"_tTemp_w3nn3_14",infos:"_infos_w3nn3_18",homeTitle:"_homeTitle_w3nn3_23",homeContent:"_homeContent_w3nn3_30",homeworkText:"_homeworkText_w3nn3_33",pSection:"_pSection_w3nn3_37",p1:"_p1_w3nn3_40",p2:"_p2_w3nn3_41",title:"_title_w3nn3_64",text:"_text_w3nn3_69",stitcTitle:"_stitcTitle_w3nn3_75",stitcConent:"_stitcConent_w3nn3_94",contentRect:"_contentRect_w3nn3_97",nums:"_nums_w3nn3_108",teacherList:"_teacherList_w3nn3_129",teacherHeader:"_teacherHeader_w3nn3_146",teacherHeaderBorder:"_teacherHeaderBorder_w3nn3_154",teacherHeaderImg:"_teacherHeaderImg_w3nn3_166",workafterInfo:"_workafterInfo_w3nn3_172",wordDetailModel:"_wordDetailModel_w3nn3_192"};e("default",l({name:"homewrok-record-detail",setup(){const e=_(),n=s({searchForm:{keyword:"",trainingStatus:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],workInfo:{},detailVisiable:!1,activeRow:null,index:0}),l=c(),E=c([{name:"作业记录",path:"/homework-record"},{name:e.query.name,path:"/homework-record-detail"}]),L=()=>{n.pagination.page=1,R()},j=()=>{n.searchForm={keyword:"",trainingStatus:""},L()},R=async()=>{n.loading=!0;try{const t=await o({trainingId:e.query.id,...n.searchForm,...n.pagination});n.tableList=t.data.rows,n.pagination.pageTotal=t.data.total,n.loading=!1}catch(t){n.loading=!1,console.log(t)}};w((()=>{(async()=>{try{const t=(await r({id:e.query.id})).data||{};let i="",a="";t.studentLessonTrainingDetails&&t.studentLessonTrainingDetails.length>0&&t.studentLessonTrainingDetails.forEach((e=>{"PRACTICE"===e.trainingType&&e.musicName&&(i+=i?"、"+e.musicName:e.musicName),"EVALUATION"===e.trainingType&&e.musicName&&(a+=a?"、"+e.musicName:e.musicName)})),t.pTitle=i,t.eTitle=a,n.workInfo=t}catch(t){console.log(t)}})(),R()}));const P=()=>[{title:"学生姓名",key:"studentName"},{title:"最后提交时间",key:"submitTime",render:e=>e.submitTime?f(e.submitTime).format("YYYY-MM-DD"):"--"},{title:"作业状态",key:"sex",render:e=>d("div",null,["UNSUBMITTED"==e.trainingStatus?d("p",{class:D.nosub},[h("未提交")]):null,"SUBMITTED"==e.trainingStatus?d("p",{class:D.ison},[h("不合格")]):null,"TARGET"==e.trainingStatus?d("p",{class:D.isok},[h("合格")]):null])},{title:"操作",key:"id",render:(e,t)=>d(k,{text:!0,type:"primary",onClick:()=>{((e,t)=>{console.log(t,"index"),n.index=t+1,n.activeRow=e,n.detailVisiable=!0})(e,t)}},{default:()=>[h("详情")]})}];return()=>d("div",null,[d(b,{list:E.value},null),d("div",{class:D.listWrap},[d("div",{class:D.teacherSection},[d("div",{class:D.teacherList},[d("div",{class:D.tTemp},[d("div",{class:D.teacherHeader},[d("div",{class:D.teacherHeaderBorder},[d(g,{class:D.teacherHeaderImg,src:n.workInfo.teacherAvatar||S,previewDisabled:!0},null)])]),d("div",{class:D.workafterInfo},[d("h4",null,[n.workInfo.teacherName]),n.workInfo.createTime&&d("p",null,[h("布置时间:"),n.workInfo.createTime&&f(n.workInfo.createTime).format("YYYY-MM-DD")," ",h("|")," ",d("span",null,[h("截止时间:"),n.workInfo.expireDate&&f(n.workInfo.expireDate).format("YYYY-MM-DD")])])])]),d("div",{class:D.infos},[d("div",{class:D.homeTitle},[n.workInfo.name]),d("div",{class:[D.homeContent,D.homeworkText]},[d("div",{class:D.pSection},[n.workInfo.pTitle&&d("p",{class:[D.text,D.p1]},[n.workInfo.pTitle]),n.workInfo.eTitle&&d("p",{class:[D.text,D.p2]},[n.workInfo.eTitle])])])])]),d("div",null,[d("div",{class:D.stitcTitle},[h("作业完成情况")]),d("div",{class:D.stitcConent},[d(m,{size:[38,0]},{default:()=>[d(p,{percentage:n.workInfo.trainingRate||0,"offset-degree":180,type:"circle","rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[d("div",{class:D.contentRect},[d("div",{class:D.nums},[n.workInfo.trainingNum||0,d("i",null,[h("/")]),n.workInfo.expectNum||0,d("span",null,[h("人")])]),d("div",{class:D.text},[h("已提交")])])]}),d(p,{percentage:n.workInfo.trainingRate||0,"offset-degree":180,type:"circle","rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[d("div",{class:D.contentRect},[d("div",{class:D.nums},[n.workInfo.trainingRate||0,h("%")]),d("div",{class:D.text},[h("提交率")])])]}),d(p,{percentage:n.workInfo.standardNum||0,"offset-degree":180,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[d("div",{class:D.contentRect},[d("div",{class:D.nums},[n.workInfo.standardNum||0,d("span",null,[h("人")])]),d("div",{class:D.text},[h("合格人数")])])]}),d(p,{percentage:n.workInfo.qualifiedRate||0,"offset-degree":180,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[d("div",{class:D.contentRect},[d("div",{class:D.nums},[n.workInfo.qualifiedRate||0,h("%")]),d("div",{class:D.text},[h("合格率")])])]})]})])])]),d("div",{class:D.searchList},[d(u,{"label-placement":"left",inline:!0},{default:()=>[d(v,null,{default:()=>[d(t,x({placeholder:"请输入学生姓名"},{class:D.searchInput,searchWord:n.searchForm.keyword,onChangeValue:e=>n.searchForm.keyword=e}),null)]}),d(v,null,{default:()=>[d(i,x({options:[{label:"全部状态",value:""},...I],placeholder:"作业状态",clearable:!0,inline:!0},{value:n.searchForm.trainingStatus,"onUpdate:value":e=>n.searchForm.trainingStatus=e}),null)]}),d(v,null,{default:()=>[d(m,{justify:"end"},{default:()=>[d(k,{type:"primary",class:"searchBtn",onClick:L},{default:()=>[h("搜索")]}),d(k,{type:"primary",ghost:!0,class:"resetBtn",onClick:j},{default:()=>[h("重置")]})]})]})]})]),d("div",{class:D.tableWrap},[d(y,{class:D.classTable,loading:n.loading,columns:P(),data:n.tableList},{empty:()=>d(C,null,null)}),d(a,{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:R},null)])]),d(T,{show:n.detailVisiable,"onUpdate:show":e=>n.detailVisiable=e,preset:"card",class:["modalTitle background",D.wordDetailModel],title:"作业详情"},{default:()=>[d(F,{onNext:()=>(++n.index,n.activeRow=n.tableList[n.index-1],void l.value.getTrainingDetail(n.activeRow.studentLessonTrainingId)),onPre:()=>(--n.index,n.activeRow=n.tableList[n.index-1],void l.value.getTrainingDetail(n.activeRow.studentLessonTrainingId)),ref:l,onClose:()=>n.detailVisiable=!1,total:n.tableList.length,current:n.index,activeRow:n.activeRow},null)]})])}}))}}}));
|