afterWorkDetail-legacy-a59f7d88-1716357111495.js 14 KB

1
  1. System.register(["./index-legacy-3d8e8c4f-1716357111495.js","./index-legacy-da14c8f6-1716357111495.js","./index-legacy-b52bac8d-1716357111495.js","./api-legacy-87501743-1716357111495.js","./index-legacy-62c80fa3-1716357111495.js","./index-legacy-19dd87cc-1716357111495.js","./teacherIcon-legacy-3eeb62c3-1716357111495.js","./searchArray-legacy-ec3e7406-1716357111495.js","./TrainingDetails-legacy-ca3b83e4-1716357111495.js","./index-legacy-c3eee0ad-1716357111495.js","./index-legacy-8c7bc428-1716357111495.js","./index.module-legacy-6953cfaa-1716357111495.js","./index-legacy-ecd13ed5-1716357111495.js","./api-legacy-aec78a07-1716357111495.js","./index-legacy-5a46efec-1716357111495.js","./Slider-legacy-64dd48e8-1716357111495.js","./urlUtils-legacy-133e91cc-1716357111495.js","./Scrollbar-legacy-02864026-1716357111495.js","./icon_default-legacy-fa9bb009-1716357111495.js","./icon-plus-t-legacy-9d0f221a-1716357111495.js","./api-legacy-41799795-1716357111495.js","./icon-pan-legacy-9492b61b-1716357111495.js","./api-legacy-3b55f3be-1716357111495.js"],(function(e,t){"use strict";var a,o,i,n,l,r,_,s,c,g,d,p,h,b,f,u,m,w,v,x,y,k,T,S,I,C,F,j,D;return{setters:[e=>{a=e.S},e=>{o=e.C},e=>{i=e.P},e=>{n=e.q,l=e.r},e=>{r=e.d,_=e.e,s=e.r,c=e.a,g=e.p,d=e.T,p=e.f,h=e.v,b=e.k,f=e.O,u=e.w,m=e.aM,w=e.N,v=e.g,x=e.x,y=e.j,k=e.aF,T=e.l},e=>{S=e.C},e=>{I=e.d},e=>{C=e.t},e=>{F=e.T},e=>{j=e.T},e=>{D=e.e},null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var t=document.createElement("style");t.textContent='._listWrap_4go2b_1{padding:1.66666667vw;background-color:#fff;border-radius:1.04166667vw;min-height:calc(100vh - 7.8125vw)!important}._teacherSection_4go2b_7{display:flex;align-items:center;border-bottom:1px solid #E9E9E9;margin-bottom:1.5625vw;padding-bottom:1.25vw}._teacherSection_4go2b_7 ._tTemp_4go2b_14{display:flex;align-content:center}._teacherSection_4go2b_7 ._infos_4go2b_18{margin-top:.41666667vw;padding:.67708333vw;background:#FFFFFF;border-radius:.52083333vw}._teacherSection_4go2b_7 ._infos_4go2b_18 ._homeTitle_4go2b_24{font-size:max(.88541667rem,14Px);font-family:PingFangSC,PingFang SC;font-weight:600;color:#000;padding-bottom:.41666667vw}._teacherSection_4go2b_7 ._infos_4go2b_18 ._homeContent_4go2b_31{padding-bottom:.26041667vw}._teacherSection_4go2b_7 ._infos_4go2b_18 ._homeworkText_4go2b_34{display:flex;align-items:flex-start}._teacherSection_4go2b_7 ._infos_4go2b_18 ._homeworkText_4go2b_34 ._pSection_4go2b_38{max-width:41.14583333vw}._teacherSection_4go2b_7 ._infos_4go2b_18 ._homeworkText_4go2b_34 ._p1_4go2b_41>div,._teacherSection_4go2b_7 ._infos_4go2b_18 ._homeworkText_4go2b_34 ._p2_4go2b_42>div{display:flex;align-items:flex-start;color:#838383}._teacherSection_4go2b_7 ._infos_4go2b_18 ._homeworkText_4go2b_34 ._p1_4go2b_41>div span,._teacherSection_4go2b_7 ._infos_4go2b_18 ._homeworkText_4go2b_34 ._p2_4go2b_42>div span{color:#313131;flex-shrink:0}._teacherSection_4go2b_7 ._infos_4go2b_18 ._homeworkText_4go2b_34 ._p1_4go2b_41:before,._teacherSection_4go2b_7 ._infos_4go2b_18 ._homeworkText_4go2b_34 ._p2_4go2b_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_4go2b_7 ._infos_4go2b_18 ._homeworkText_4go2b_34 ._p2_4go2b_42{padding-top:.3125vw}._teacherSection_4go2b_7 ._infos_4go2b_18 ._homeworkText_4go2b_34 ._p2_4go2b_42:before{background:#F44040}._teacherSection_4go2b_7 ._infos_4go2b_18 ._title_4go2b_70{font-size:max(.67708333rem,12Px);color:#777;flex-shrink:0}._teacherSection_4go2b_7 ._infos_4go2b_18 ._text_4go2b_75{font-size:max(.67708333rem,12Px);font-weight:500;color:#333;line-height:1.14583333vw;display:flex;align-items:baseline}._teacherSection_4go2b_7 ._stitcTitle_4go2b_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_4go2b_7 ._stitcTitle_4go2b_83:before{content:"";display:inline-block;width:.20833333vw;height:.72916667vw;background:#198CFE;border-radius:.10416667vw;margin-right:.41666667vw}._teacherSection_4go2b_7 ._stitcConent_4go2b_102 .n-progress{width:116Px}._teacherSection_4go2b_7 ._stitcConent_4go2b_102 ._contentRect_4go2b_105{text-align:center}._teacherSection_4go2b_7 ._stitcConent_4go2b_102 ._contentRect_4go2b_105 ._text_4go2b_75{padding-top:.26041667vw;font-size:12Px;font-family:PingFangSC,PingFang SC;font-weight:400;color:#777;line-height:.88541667vw}._teacherSection_4go2b_7 ._stitcConent_4go2b_102 ._nums_4go2b_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_4go2b_7 ._stitcConent_4go2b_102 ._nums_4go2b_116 i{font-style:normal;font-size:max(1.04166667rem,14Px)}._teacherSection_4go2b_7 ._stitcConent_4go2b_102 ._nums_4go2b_116 span{font-size:12Px;font-family:PingFangSC,PingFang SC;font-weight:500;color:#333;line-height:.88541667vw}._teacherList_4go2b_137{display:flex;flex-direction:column;flex:1;margin-right:3.125vw;position:relative}._teacherList_4go2b_137:after{content:"";position:absolute;right:0;width:1px;height:55%;background:#E9E9E9;top:50%;margin-top:-3.125vw}._teacherList_4go2b_137 ._teacherHeader_4go2b_154{width:5.20833333vw;height:5.20833333vw;padding:.20833333vw;border-radius:5.15625vw;background:linear-gradient(228deg,#02baff,#007afe);margin-right:1.04166667vw}._teacherList_4go2b_137 ._teacherHeader_4go2b_154 ._teacherHeaderBorder_4go2b_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_4go2b_137 ._teacherHeaderImg_4go2b_174{width:4.375vw;height:4.375vw;border-radius:50%;overflow:hidden}._teacherList_4go2b_137 ._workafterInfo_4go2b_180{display:flex;justify-content:center;flex-direction:column}._teacherList_4go2b_137 ._workafterInfo_4go2b_180 h4{font-size:1.14583333rem;line-height:1.5625vw;font-weight:600;color:#131415;margin-bottom:.625vw}._teacherList_4go2b_137 ._workafterInfo_4go2b_180 p{font-size:max(.83333333rem,12Px);line-height:1.14583333vw;color:#777}._teacherList_4go2b_137 ._workafterInfo_4go2b_180 p span{color:#ea4132}._wordDetailModel_4go2b_200{width:52.70833333vw}\n',document.head.appendChild(t);const E={listWrap:"_listWrap_4go2b_1",teacherSection:"_teacherSection_4go2b_7",tTemp:"_tTemp_4go2b_14",infos:"_infos_4go2b_18",homeTitle:"_homeTitle_4go2b_24",homeContent:"_homeContent_4go2b_31",homeworkText:"_homeworkText_4go2b_34",pSection:"_pSection_4go2b_38",p1:"_p1_4go2b_41",p2:"_p2_4go2b_42",title:"_title_4go2b_70",text:"_text_4go2b_75",stitcTitle:"_stitcTitle_4go2b_83",stitcConent:"_stitcConent_4go2b_102",contentRect:"_contentRect_4go2b_105",nums:"_nums_4go2b_116",teacherList:"_teacherList_4go2b_137",teacherHeader:"_teacherHeader_4go2b_154",teacherHeaderBorder:"_teacherHeaderBorder_4go2b_162",teacherHeaderImg:"_teacherHeaderImg_4go2b_174",workafterInfo:"_workafterInfo_4go2b_180",wordDetailModel:"_wordDetailModel_4go2b_200"};e("default",r({name:"student-studentList",setup(){const e=_({searchForm:{keyword:"",vipFlag:null,trainingStatus:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},studentClassList:[],tableList:[],workInfo:{},detailVisiable:!1,activeRow:null,index:0}),t=s(),r=c(),L=s([{name:"班级管理",path:"/classList"},{name:r.query.name,path:"/classDetail"},{name:r.query.teacherName,path:"/afterWorkDetail"}]),R=()=>{e.pagination.page=1,A(),console.log("search",e)},P=()=>{e.searchForm={keyword:"",trainingStatus:"",vipFlag:null},R()},A=async(t,a)=>{e.loading=!0;try{const o=await n({classGroupId:r.query.classGroupId||"",trainingId:r.query.trainingId,...e.searchForm,...e.pagination,page:a||e.pagination.page});e.tableList=o.data.rows,e.pagination.page=o.data.current,e.pagination.pageTotal=o.data.total,e.loading=!1,"next"===t?(e.index=0,N()):"prev"===t&&(e.index=e.tableList.length+1,M())}catch(o){e.loading=!1,console.log(o)}};g((()=>{(async()=>{try{const t=(await l({trainingId:r.query.trainingId})).data||{};let a="",o="";t.studentLessonTrainingDetails&&t.studentLessonTrainingDetails.length>0&&t.studentLessonTrainingDetails.forEach((e=>{const t=e.trainingContent?JSON.parse(e.trainingContent):null;if("PRACTICE"===e.trainingType&&e.musicName&&(a+="《"+e.musicName+"》",t)){const e=[`${t.practiceChapterBegin}-${t.practiceChapterEnd}小节`,`速度${t.practiceSpeed}`,`${t.trainingTimes}分钟`];a+=e.join(" | ")+";"}if("EVALUATION"===e.trainingType&&e.musicName&&(o+="《"+e.musicName+"》",t)){const e=[`${D[t.evaluateDifficult]}`,t.practiceChapterBegin||t.practiceChapterEnd?`${t.practiceChapterBegin}-${t.practiceChapterEnd}小节`:"全部小节",`${t.trainingTimes}分合格`];o+=e.join(" | ")+";"}})),t.pTitle=a,t.eTitle=o,e.workInfo=t}catch(t){console.log(t)}})(),A()}));const H=()=>[{title:"学生姓名",key:"studentName"},{title:"最后提交时间",key:"submitTime",render:e=>e.submitTime?f(e.submitTime).format("YYYY-MM-DD"):"--"},{title:"作业状态",key:"trainingStatus",render:e=>p("div",null,["UNSUBMITTED"==e.trainingStatus?p("p",{class:E.nosub},[b("未提交")]):null,"SUBMITTED"==e.trainingStatus?p("p",{class:E.ison},[b("不合格")]):null,"TARGET"==e.trainingStatus?p("p",{class:E.isok},[b("合格")]):null])},{title:"是否会员",key:"vipFlag",render:e=>e.vipFlag?"是":"否"},{title:"操作",key:"id",render:(t,a)=>p(y,{text:!0,type:"primary",onClick:()=>{((t,a)=>{e.index=a+1,e.activeRow=t,e.detailVisiable=!0})(t,a)}},{default:()=>[b("详情")]})}],N=()=>{e.index>=e.tableList.length?A("next",e.pagination.page+1):(++e.index,e.activeRow=e.tableList[e.index-1],t.value.getTrainingDetail(e.activeRow.studentLessonTrainingId))},M=()=>{1===e.index&&1!==e.pagination.page?A("prev",e.pagination.page-1):(--e.index,e.activeRow=e.tableList[e.index-1],t.value.getTrainingDetail(e.activeRow.studentLessonTrainingId))},Y=d((()=>e.index+(e.pagination.page-1)*e.pagination.rows));return()=>p("div",null,[p(S,{list:L.value},null),p("div",{class:E.listWrap},[p("div",{class:E.teacherSection},[p("div",{class:E.teacherList},[p("div",{class:E.tTemp},[p("div",{class:E.teacherHeader},[p("div",{class:E.teacherHeaderBorder},[p(h,{class:E.teacherHeaderImg,src:e.workInfo.teacherAvatar||I,previewDisabled:!0},null)])]),p("div",{class:E.workafterInfo},[p("h4",null,[e.workInfo.teacherName]),e.workInfo.createTime&&p("p",null,[b("布置时间:"),e.workInfo.createTime&&f(e.workInfo.createTime).format("YYYY-MM-DD HH:mm")," ",b("|")," ",p("span",null,[b("截止时间:"),e.workInfo.expireDate&&f(e.workInfo.expireDate).format("YYYY-MM-DD HH:mm")])])])]),p("div",{class:E.infos},[p("div",{class:E.homeTitle},[e.workInfo.name]),p("div",{class:[E.homeContent,E.homeworkText]},[p("div",{class:E.pSection},[e.workInfo.pTitle&&p("p",{class:[E.text,E.p1]},[p("div",null,[p("span",null,[b("练习曲目:")]),p("p",null,[e.workInfo.pTitle])])]),e.workInfo.eTitle&&p("p",{class:[E.text,E.p2]},[p("div",null,[p("span",null,[b("评测曲目:")]),p("p",null,[e.workInfo.eTitle])])])])])])]),p("div",null,[p("div",{class:E.stitcTitle},[b("作业完成情况")]),p("div",{class:E.stitcConent},[p(u,{size:[38,0]},{default:()=>[p(m,{percentage:e.workInfo.trainingRate||0,"offset-degree":180,type:"circle",strokeWidth:6,"rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[p("div",{class:E.contentRect},[p("div",{class:E.nums},[e.workInfo.trainingNum||0,p("i",null,[b("/")]),e.workInfo.expectNum||0,p("span",null,[b("人")])]),p("div",{class:E.text},[b("已提交")])])]}),p(m,{percentage:e.workInfo.trainingRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[p("div",{class:E.contentRect},[p("div",{class:E.nums},[e.workInfo.trainingRate||0,b("%")]),p("div",{class:E.text},[b("提交率")])])]}),p(m,{percentage:e.workInfo.qualifiedRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[p("div",{class:E.contentRect},[p("div",{class:E.nums},[e.workInfo.standardNum||0,p("span",null,[b("人")])]),p("div",{class:E.text},[b("合格人数")])])]}),p(m,{percentage:e.workInfo.qualifiedRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[p("div",{class:E.contentRect},[p("div",{class:E.nums},[e.workInfo.qualifiedRate||0,b("%")]),p("div",{class:E.text},[b("合格率")])])]})]})])])]),p("div",{class:E.searchList},[p(w,{"label-placement":"left",inline:!0},{default:()=>[p(v,null,{default:()=>[p(a,x({placeholder:"请输入学生姓名"},{class:E.searchInput,searchWord:e.searchForm.keyword,onChangeValue:t=>e.searchForm.keyword=t}),null)]}),p(v,null,{default:()=>[p(o,x({options:[{label:"全部状态",value:""},...C],placeholder:"作业状态",clearable:!0,inline:!0},{value:e.searchForm.trainingStatus,"onUpdate:value":t=>e.searchForm.trainingStatus=t}),null)]}),p(v,null,{default:()=>[p(o,x({options:[{label:"是",value:!0},{label:"否",value:!1}],placeholder:"是否会员",clearable:!0,inline:!0},{value:e.searchForm.vipFlag,"onUpdate:value":t=>e.searchForm.vipFlag=t}),null)]}),p(v,null,{default:()=>[p(u,{justify:"end"},{default:()=>[p(y,{type:"primary",class:"searchBtn",onClick:R},{default:()=>[b("搜索")]}),p(y,{type:"primary",ghost:!0,class:"resetBtn",onClick:P},{default:()=>[b("重置")]})]})]})]})]),p("div",{class:E.tableWrap},[p(k,{class:E.classTable,loading:e.loading,columns:H(),data:e.tableList},{empty:()=>p(j,null,null)}),p(i,{page:e.pagination.page,"onUpdate:page":t=>e.pagination.page=t,pageSize:e.pagination.rows,"onUpdate:pageSize":t=>e.pagination.rows=t,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":t=>e.pagination.pageTotal=t,onList:A},null)])]),p(T,{show:e.detailVisiable,"onUpdate:show":t=>e.detailVisiable=t,preset:"card",class:["modalTitle background",E.wordDetailModel],title:"作业详情"},{default:()=>[p(F,{onNext:()=>N(),onPre:()=>M(),ref:t,onClose:()=>e.detailVisiable=!1,total:e.pagination.pageTotal,current:Y.value,activeRow:e.activeRow},null)]})])}}))}}}));