1 |
- System.register(["./index-legacy-b2e85ed5-1708220053196.js","./index-legacy-9daf4bed-1708220053196.js","./index-legacy-63a8ba26-1708220053196.js","./api-legacy-3ab0299a-1708220053196.js","./index-legacy-2f7e396d-1708220053196.js","./index-legacy-20022b30-1708220053196.js","./teacherIcon-legacy-3eeb62c3-1708220053196.js","./searchArray-legacy-64ff5908-1708220053196.js","./index-legacy-67c9779c-1708220053196.js","./TrainingDetails-legacy-38b41a74-1708220053196.js","./index-legacy-fb5d35d5-1708220053196.js","./Slider-legacy-c48b949a-1708220053196.js","./urlUtils-legacy-6df7f30c-1708220053196.js","./api-legacy-57cc81fd-1708220053196.js","./index.module-legacy-49c63b78-1708220053196.js","./index-legacy-aed204d6-1708220053196.js","./index-legacy-c1a1b8dd-1708220053196.js","./api-legacy-381e138c-1708220053196.js"],(function(e,t){"use strict";var i,a,n,s,o,r,l,_,c,u,d,g,h,f,m,p,w,q,v,x,k,y,T,b,S,I,C;return{setters:[e=>{i=e.S},e=>{a=e.C},e=>{n=e.P},e=>{s=e.c,o=e.d},e=>{r=e.d,l=e.a,_=e.e,c=e.r,u=e.p,d=e.f,g=e.v,h=e.k,f=e.K,m=e.w,p=e.br,w=e.N,q=e.g,v=e.x,x=e.j,k=e.$,y=e.l},e=>{T=e.C},e=>{b=e.d},e=>{S=e.t},e=>{I=e.T},e=>{C=e.T},null,null,null,null,null,null,null,null],execute:function(){var t=document.createElement("style");t.textContent='._listWrap_us3qi_1{min-height:100%;padding:1.66666667vw;background-color:#fff;border-radius:1.04166667vw}._teacherSection_us3qi_7{display:flex;align-items:center;border-bottom:1px solid #E9E9E9;margin-bottom:1.5625vw;padding-bottom:1.25vw}._teacherSection_us3qi_7 ._tTemp_us3qi_14{display:flex;align-content:center}._teacherSection_us3qi_7 ._infos_us3qi_18{padding:.67708333vw;background:#FFFFFF;border-radius:.52083333vw}._teacherSection_us3qi_7 ._infos_us3qi_18 ._homeTitle_us3qi_23{font-size:max(.88541667rem,14Px);font-family:PingFangSC,PingFang SC;font-weight:600;color:#000;padding-bottom:.26041667vw}._teacherSection_us3qi_7 ._infos_us3qi_18 ._homeContent_us3qi_30{padding-bottom:.26041667vw}._teacherSection_us3qi_7 ._infos_us3qi_18 ._homeworkText_us3qi_33{display:flex;align-items:flex-start}._teacherSection_us3qi_7 ._infos_us3qi_18 ._homeworkText_us3qi_33 ._pSection_us3qi_37{max-width:26.04166667vw}._teacherSection_us3qi_7 ._infos_us3qi_18 ._homeworkText_us3qi_33 ._p1_us3qi_40,._teacherSection_us3qi_7 ._infos_us3qi_18 ._homeworkText_us3qi_33 ._p2_us3qi_41{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._teacherSection_us3qi_7 ._infos_us3qi_18 ._homeworkText_us3qi_33 ._p1_us3qi_40:before,._teacherSection_us3qi_7 ._infos_us3qi_18 ._homeworkText_us3qi_33 ._p2_us3qi_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_us3qi_7 ._infos_us3qi_18 ._homeworkText_us3qi_33 ._p2_us3qi_41{padding-top:.3125vw}._teacherSection_us3qi_7 ._infos_us3qi_18 ._homeworkText_us3qi_33 ._p2_us3qi_41:before{background:#F44040}._teacherSection_us3qi_7 ._infos_us3qi_18 ._title_us3qi_64{font-size:max(.67708333rem,12Px);color:#777;flex-shrink:0}._teacherSection_us3qi_7 ._infos_us3qi_18 ._text_us3qi_69{font-size:max(.67708333rem,12Px);font-weight:500;color:#333;line-height:1.14583333vw}._teacherSection_us3qi_7 ._stitcTitle_us3qi_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_us3qi_7 ._stitcTitle_us3qi_75:before{content:"";display:inline-block;width:.20833333vw;height:.72916667vw;background:#198CFE;border-radius:.10416667vw;margin-right:.41666667vw}._teacherSection_us3qi_7 ._stitcConent_us3qi_94 .n-progress{width:116Px}._teacherSection_us3qi_7 ._stitcConent_us3qi_94 ._contentRect_us3qi_97{text-align:center}._teacherSection_us3qi_7 ._stitcConent_us3qi_94 ._contentRect_us3qi_97 ._text_us3qi_69{padding-top:.26041667vw;font-size:12Px;font-family:PingFangSC,PingFang SC;font-weight:400;color:#777;line-height:.88541667vw}._teacherSection_us3qi_7 ._stitcConent_us3qi_94 ._nums_us3qi_108{font-size:max(1.35416667rem,18Px);font-family:DINAlternate,DINAlternate;font-weight:700;color:#000;line-height:1.5625vw}._teacherSection_us3qi_7 ._stitcConent_us3qi_94 ._nums_us3qi_108 i{font-style:normal;font-size:max(1.04166667rem,14Px)}._teacherSection_us3qi_7 ._stitcConent_us3qi_94 ._nums_us3qi_108 span{font-size:12Px;font-family:PingFangSC,PingFang SC;font-weight:500;color:#333;line-height:.88541667vw}._teacherList_us3qi_126{display:flex;flex-direction:column;flex:1;margin-right:3.125vw;position:relative}._teacherList_us3qi_126:after{content:"";position:absolute;right:0;width:1px;height:6.25vw;background:#E9E9E9;top:50%;margin-top:-3.125vw}._teacherList_us3qi_126 ._teacherHeader_us3qi_143{width:5.20833333vw;height:5.20833333vw;padding:.20833333vw;border-radius:5.15625vw;background:linear-gradient(228deg,#02baff,#007afe);margin-right:1.04166667vw}._teacherList_us3qi_126 ._teacherHeader_us3qi_143 ._teacherHeaderBorder_us3qi_151{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_us3qi_126 ._teacherHeaderImg_us3qi_163{width:4.375vw;height:4.375vw;border-radius:50%;overflow:hidden}._teacherList_us3qi_126 ._workafterInfo_us3qi_169{display:flex;justify-content:center;flex-direction:column}._teacherList_us3qi_126 ._workafterInfo_us3qi_169 h4{font-size:1.14583333rem;line-height:1.5625vw;font-weight:600;color:#131415;margin-bottom:.625vw}._teacherList_us3qi_126 ._workafterInfo_us3qi_169 p{font-size:max(.83333333rem,12Px);line-height:1.14583333vw;color:#777}._teacherList_us3qi_126 ._workafterInfo_us3qi_169 p span{color:#ea4132}._wordDetailModel_us3qi_189{width:52.70833333vw}\n',document.head.appendChild(t);const F={listWrap:"_listWrap_us3qi_1",teacherSection:"_teacherSection_us3qi_7",tTemp:"_tTemp_us3qi_14",infos:"_infos_us3qi_18",homeTitle:"_homeTitle_us3qi_23",homeContent:"_homeContent_us3qi_30",homeworkText:"_homeworkText_us3qi_33",pSection:"_pSection_us3qi_37",p1:"_p1_us3qi_40",p2:"_p2_us3qi_41",title:"_title_us3qi_64",text:"_text_us3qi_69",stitcTitle:"_stitcTitle_us3qi_75",stitcConent:"_stitcConent_us3qi_94",contentRect:"_contentRect_us3qi_97",nums:"_nums_us3qi_108",teacherList:"_teacherList_us3qi_126",teacherHeader:"_teacherHeader_us3qi_143",teacherHeaderBorder:"_teacherHeaderBorder_us3qi_151",teacherHeaderImg:"_teacherHeaderImg_us3qi_163",workafterInfo:"_workafterInfo_us3qi_169",wordDetailModel:"_wordDetailModel_us3qi_189"};e("default",r({name:"homewrok-record-detail",setup(){const e=l(),t=_({searchForm:{keyword:"",trainingStatus:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],workInfo:{},detailVisiable:!1,activeRow:null,index:0}),r=c(),D=c([{name:"作业记录",path:"/homework-record"},{name:e.query.name,path:"/classDetail"}]),E=()=>{t.pagination.page=1,R()},L=()=>{t.searchForm={keyword:"",trainingStatus:""},E()},R=async()=>{t.loading=!0;try{const i=await s({trainingId:e.query.id,...t.searchForm,...t.pagination});t.tableList=i.data.rows,t.pagination.pageTotal=i.data.total,t.loading=!1}catch(i){t.loading=!1,console.log(i)}};u((()=>{(async()=>{try{const i=(await o({id:e.query.id})).data||{};let a="",n="";i.studentLessonTrainingDetails&&i.studentLessonTrainingDetails.length>0&&i.studentLessonTrainingDetails.forEach((e=>{"PRACTICE"===e.trainingType&&e.musicName&&(a+=a?"、"+e.musicName:e.musicName),"EVALUATION"===e.trainingType&&e.musicName&&(n+=n?"、"+e.musicName:e.musicName)})),i.pTitle=a,i.eTitle=n,t.workInfo=i}catch(i){console.log(i)}})(),R()}));const j=()=>[{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:F.nosub},[h("未提交")]):null,"SUBMITTED"==e.trainingStatus?d("p",{class:F.ison},[h("不合格")]):null,"TARGET"==e.trainingStatus?d("p",{class:F.isok},[h("合格")]):null])},{title:"操作",key:"id",render:(e,i)=>d(x,{text:!0,type:"primary",onClick:()=>{((e,i)=>{console.log(i,"index"),t.index=i+1,t.activeRow=e,t.detailVisiable=!0})(e,i)}},{default:()=>[h("详情")]})}];return()=>d("div",null,[d(T,{list:D.value},null),d("div",{class:F.listWrap},[d("div",{class:F.teacherSection},[d("div",{class:F.teacherList},[d("div",{class:F.tTemp},[d("div",{class:F.teacherHeader},[d("div",{class:F.teacherHeaderBorder},[d(g,{class:F.teacherHeaderImg,src:t.workInfo.teacherAvatar||b,previewDisabled:!0},null)])]),d("div",{class:F.workafterInfo},[d("h4",null,[t.workInfo.teacherName]),t.workInfo.createTime&&d("p",null,[h("布置时间:"),t.workInfo.createTime&&f(t.workInfo.createTime).format("YYYY-MM-DD")," ",h("|")," ",d("span",null,[h("截止时间:"),t.workInfo.expireDate&&f(t.workInfo.expireDate).format("YYYY-MM-DD")])])])]),d("div",{class:F.infos},[d("div",{class:F.homeTitle},[t.workInfo.name]),d("div",{class:[F.homeContent,F.homeworkText]},[d("div",{class:F.pSection},[t.workInfo.pTitle&&d("p",{class:[F.text,F.p1]},[t.workInfo.pTitle]),t.workInfo.eTitle&&d("p",{class:[F.text,F.p2]},[t.workInfo.eTitle])])])])]),d("div",null,[d("div",{class:F.stitcTitle},[h("作业完成情况")]),d("div",{class:F.stitcConent},[d(m,{size:[38,0]},{default:()=>[d(p,{percentage:t.workInfo.trainingRate||0,"offset-degree":180,type:"circle","rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[d("div",{class:F.contentRect},[d("div",{class:F.nums},[t.workInfo.trainingNum||0,d("i",null,[h("/")]),t.workInfo.expectNum||0,d("span",null,[h("人")])]),d("div",{class:F.text},[h("已提交")])])]}),d(p,{percentage:t.workInfo.trainingRate||0,"offset-degree":180,type:"circle","rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[d("div",{class:F.contentRect},[d("div",{class:F.nums},[t.workInfo.trainingRate||0,h("%")]),d("div",{class:F.text},[h("提交率")])])]}),d(p,{percentage:t.workInfo.standardNum||0,"offset-degree":180,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[d("div",{class:F.contentRect},[d("div",{class:F.nums},[t.workInfo.standardNum||0,d("span",null,[h("人")])]),d("div",{class:F.text},[h("合格人数")])])]}),d(p,{percentage:t.workInfo.qualifiedRate||0,"offset-degree":180,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[d("div",{class:F.contentRect},[d("div",{class:F.nums},[t.workInfo.qualifiedRate||0,h("%")]),d("div",{class:F.text},[h("合格率")])])]})]})])])]),d("div",{class:F.searchList},[d(w,{"label-placement":"left",inline:!0},{default:()=>[d(q,null,{default:()=>[d(i,v({placeholder:"请输入学生姓名"},{class:F.searchInput,searchWord:t.searchForm.keyword,onChangeValue:e=>t.searchForm.keyword=e}),null)]}),d(q,null,{default:()=>[d(a,v({options:[{label:"全部状态",value:""},...S],placeholder:"作业状态",clearable:!0,inline:!0},{value:t.searchForm.trainingStatus,"onUpdate:value":e=>t.searchForm.trainingStatus=e}),null)]}),d(q,null,{default:()=>[d(m,{justify:"end"},{default:()=>[d(x,{type:"primary",class:"searchBtn",onClick:E},{default:()=>[h("搜索")]}),d(x,{type:"primary",ghost:!0,class:"resetBtn",onClick:L},{default:()=>[h("重置")]})]})]})]})]),d("div",{class:F.tableWrap},[d(k,{class:F.classTable,loading:t.loading,columns:j(),data:t.tableList},{empty:()=>d(I,null,null)}),d(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,sync:!0},null)])]),d(y,{show:t.detailVisiable,"onUpdate:show":e=>t.detailVisiable=e,preset:"card",class:["modalTitle background",F.wordDetailModel],title:"作业详情"},{default:()=>[d(C,{onNext:()=>(++t.index,t.activeRow=t.tableList[t.index-1],void r.value.getTrainingDetail(t.activeRow.studentLessonTrainingId)),onPre:()=>(--t.index,t.activeRow=t.tableList[t.index-1],void r.value.getTrainingDetail(t.activeRow.studentLessonTrainingId)),ref:r,onClose:()=>t.detailVisiable=!1,total:t.tableList.length,current:t.index,activeRow:t.activeRow},null)]})])}}))}}}));
|