index-legacy-df2e3112-1715743749367.js 14 KB

1
  1. System.register(["./index-legacy-4788c3f8-1715743749367.js","./index-legacy-e10e788f-1715743749367.js","./index-legacy-c8a4c021-1715743749367.js","./api-legacy-60c6b096-1715743749367.js","./index-legacy-b298f53a-1715743749367.js","./index-legacy-04d97858-1715743749367.js","./teacherIcon-legacy-3eeb62c3-1715743749367.js","./searchArray-legacy-68a0c616-1715743749367.js","./index-legacy-83516087-1715743749367.js","./TrainingDetails-legacy-31acc88f-1715743749367.js","./index-legacy-5fb74a3f-1715743749367.js","./api-legacy-1ce0c8f2-1715743749367.js","./index.module-legacy-99f4b996-1715743749367.js","./index-legacy-5504d317-1715743749367.js","./api-legacy-0517a7eb-1715743749367.js","./index-legacy-2793934a-1715743749367.js","./Slider-legacy-cb34c9fe-1715743749367.js","./urlUtils-legacy-133e91cc-1715743749367.js","./Scrollbar-legacy-59e5a004-1715743749367.js","./icon_default-legacy-fa9bb009-1715743749367.js","./icon-plus-t-legacy-9d0f221a-1715743749367.js","./api-legacy-1664769a-1715743749367.js","./icon-pan-legacy-9492b61b-1715743749367.js","./api-legacy-ad882cac-1715743749367.js"],(function(e,t){"use strict";var o,a,i,n,l,r,s,_,c,g,d,p,h,b,u,f,m,w,v,x,k,y,T,S,I,C,F,E,j;return{setters:[e=>{o=e.S},e=>{a=e.C},e=>{i=e.P},e=>{n=e.c,l=e.d},e=>{r=e.d,s=e.a,_=e.e,c=e.r,g=e.p,d=e.S,p=e.f,h=e.v,b=e.k,u=e.M,f=e.w,m=e.b7,w=e.N,v=e.g,x=e.x,k=e.j,y=e.aE,T=e.l},e=>{S=e.C},e=>{I=e.d},e=>{C=e.t},e=>{F=e.T},e=>{E=e.T},e=>{j=e.e},null,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 L={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:"homewrok-record-detail",setup(){const e=s(),t=_({searchForm:{keyword:"",vipFlag:null,trainingStatus:"",classGroupId:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},studentClassList:[],tableList:[],workInfo:{},detailVisiable:!1,activeRow:null,index:0}),r=c(),D=c([{name:"作业",path:"/homework-record"},{name:e.query.name,path:"/homework-record-detail"}]),R=()=>{t.pagination.page=1,N()},P=()=>{t.searchForm={keyword:"",vipFlag:null,trainingStatus:"",classGroupId:""},R()},N=async(o,a)=>{t.loading=!0;try{const i=await n({trainingId:e.query.id,...t.searchForm,...t.pagination,page:a||t.pagination.page});t.tableList=i.data.rows,t.pagination.pageTotal=i.data.total,t.pagination.page=i.data.current,t.loading=!1,"next"===o?(t.index=0,A()):"prev"===o&&(t.index=t.tableList.length+1,z())}catch(i){t.loading=!1,console.log(i)}};g((()=>{(async()=>{try{const o=(await l({id:e.query.id})).data||{};let a="",i="";o.studentLessonTrainingDetails&&o.studentLessonTrainingDetails.length>0&&o.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&&(i+="《"+e.musicName+"》",t)){const e=[`${j[t.evaluateDifficult]}`,t.practiceChapterBegin||t.practiceChapterEnd?`${t.practiceChapterBegin}-${t.practiceChapterEnd}小节`:"全部小节",`${t.trainingTimes}分合格`];i+=e.join(" | ")+";"}})),o.pTitle=a,o.eTitle=i,t.workInfo=o,(o.studentClassGroup||[]).forEach((e=>{t.studentClassList.push({label:e.name,value:e.id})}))}catch(o){console.log(o)}})(),N()}));const H=()=>[{title:"学生姓名",key:"studentName"},{title:"最后提交时间",key:"submitTime",render:e=>e.submitTime?u(e.submitTime).format("YYYY-MM-DD"):"--"},{title:"所属班级",key:"classGroupName"},{title:"作业状态",key:"trainingStatus",render:e=>p("div",null,["UNSUBMITTED"==e.trainingStatus?p("p",{class:L.nosub},[b("未提交")]):null,"SUBMITTED"==e.trainingStatus?p("p",{class:L.ison},[b("不合格")]):null,"TARGET"==e.trainingStatus?p("p",{class:L.isok},[b("合格")]):null])},{title:"是否会员",key:"vipFlag",render:e=>e.vipFlag?"是":"否"},{title:"操作",key:"id",render:(e,o)=>p(k,{text:!0,type:"primary",onClick:()=>{((e,o)=>{console.log(o,"index"),t.index=o+1,t.activeRow=e,t.detailVisiable=!0})(e,o)}},{default:()=>[b("详情")]})}],A=()=>{t.index>=t.tableList.length?N("next",t.pagination.page+1):(++t.index,t.activeRow=t.tableList[t.index-1],r.value.getTrainingDetail(t.activeRow.studentLessonTrainingId))},z=()=>{1===t.index&&1!==t.pagination.page?N("prev",t.pagination.page-1):(--t.index,t.activeRow=t.tableList[t.index-1],r.value.getTrainingDetail(t.activeRow.studentLessonTrainingId))},Y=d((()=>t.index+(t.pagination.page-1)*t.pagination.rows));return()=>p("div",null,[p(S,{list:D.value},null),p("div",{class:L.listWrap},[p("div",{class:L.teacherSection},[p("div",{class:L.teacherList},[p("div",{class:L.tTemp},[p("div",{class:L.teacherHeader},[p("div",{class:L.teacherHeaderBorder},[p(h,{class:L.teacherHeaderImg,src:t.workInfo.teacherAvatar||I,previewDisabled:!0},null)])]),p("div",{class:L.workafterInfo},[p("h4",null,[t.workInfo.teacherName]),t.workInfo.createTime&&p("p",null,[b("布置时间:"),t.workInfo.createTime&&u(t.workInfo.createTime).format("YYYY-MM-DD HH:mm")," ",b("|")," ",p("span",null,[b("截止时间:"),t.workInfo.expireDate&&u(t.workInfo.expireDate).format("YYYY-MM-DD HH:mm")])])])]),p("div",{class:L.infos},[p("div",{class:L.homeTitle},[t.workInfo.name]),p("div",{class:[L.homeContent,L.homeworkText]},[p("div",{class:L.pSection},[t.workInfo.pTitle&&p("p",{class:[L.text,L.p1]},[p("div",null,[p("span",null,[b("练习曲目:")]),p("p",null,[t.workInfo.pTitle])])]),t.workInfo.eTitle&&p("p",{class:[L.text,L.p2]},[p("div",null,[p("span",null,[b("评测曲目:")]),p("p",null,[t.workInfo.eTitle])])])])])])]),p("div",null,[p("div",{class:L.stitcTitle},[b("作业完成情况")]),p("div",{class:L.stitcConent},[p(f,{size:[38,0]},{default:()=>[p(m,{percentage:t.workInfo.trainingRate||0,"offset-degree":180,type:"circle",strokeWidth:6,"rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[p("div",{class:L.contentRect},[p("div",{class:L.nums},[t.workInfo.trainingNum||0,p("i",null,[b("/")]),t.workInfo.expectNum||0,p("span",null,[b("人")])]),p("div",{class:L.text},[b("已提交")])])]}),p(m,{percentage:t.workInfo.trainingRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[p("div",{class:L.contentRect},[p("div",{class:L.nums},[t.workInfo.trainingRate||0,b("%")]),p("div",{class:L.text},[b("提交率")])])]}),p(m,{percentage:t.workInfo.qualifiedRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[p("div",{class:L.contentRect},[p("div",{class:L.nums},[t.workInfo.standardNum||0,p("span",null,[b("人")])]),p("div",{class:L.text},[b("合格人数")])])]}),p(m,{percentage:t.workInfo.qualifiedRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[p("div",{class:L.contentRect},[p("div",{class:L.nums},[t.workInfo.qualifiedRate||0,b("%")]),p("div",{class:L.text},[b("合格率")])])]})]})])])]),p("div",{class:L.searchList},[p(w,{"label-placement":"left",inline:!0},{default:()=>[p(v,null,{default:()=>[p(o,x({placeholder:"请输入学生姓名"},{class:L.searchInput,searchWord:t.searchForm.keyword,onChangeValue:e=>t.searchForm.keyword=e}),null)]}),p(v,null,{default:()=>[p(a,x({options:[{label:"全部班级",value:""},...t.studentClassList],placeholder:"全部班级",clearable:!0,inline:!0},{value:t.searchForm.classGroupId,"onUpdate:value":e=>t.searchForm.classGroupId=e}),null)]}),p(v,null,{default:()=>[p(a,x({options:[{label:"全部状态",value:""},...C],placeholder:"作业状态",clearable:!0,inline:!0},{value:t.searchForm.trainingStatus,"onUpdate:value":e=>t.searchForm.trainingStatus=e}),null)]}),p(v,null,{default:()=>[p(a,x({options:[{label:"是",value:!0},{label:"否",value:!1}],placeholder:"是否会员",clearable:!0,inline:!0},{value:t.searchForm.vipFlag,"onUpdate:value":e=>t.searchForm.vipFlag=e}),null)]}),p(v,null,{default:()=>[p(f,{justify:"end"},{default:()=>[p(k,{type:"primary",class:"searchBtn",onClick:R},{default:()=>[b("搜索")]}),p(k,{type:"primary",ghost:!0,class:"resetBtn",onClick:P},{default:()=>[b("重置")]})]})]})]})]),p("div",{class:L.tableWrap},[p(y,{class:L.classTable,loading:t.loading,columns:H(),data:t.tableList},{empty:()=>p(F,null,null)}),p(i,{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:N},null)])]),p(T,{show:t.detailVisiable,"onUpdate:show":e=>t.detailVisiable=e,preset:"card",class:["modalTitle background",L.wordDetailModel],title:"作业详情"},{default:()=>[p(E,{onNext:()=>A(),onPre:()=>z(),ref:r,onClose:()=>t.detailVisiable=!1,total:t.pagination.pageTotal,current:Y.value,activeRow:t.activeRow},null)]})])}}))}}}));