index-legacy-4faffc05-1734950731618.js 14 KB

1
  1. System.register(["./index-legacy-83c28d0b-1734950731618.js","./index-legacy-cd7fea03-1734950731618.js","./index-legacy-a561af25-1734950731618.js","./api-legacy-f2f80221-1734950731618.js","./index-legacy-4630884d-1734950731618.js","./index-legacy-2af42881-1734950731618.js","./teacherIcon-legacy-3eeb62c3-1734950731618.js","./searchArray-legacy-6b8f6cdf-1734950731618.js","./index-legacy-e3a3b720-1734950731618.js","./TrainingDetails-legacy-3dd56cd2-1734950731618.js","./contants-legacy-71300fc2-1734950731618.js","./api-legacy-37b6770f-1734950731618.js","./index.module-legacy-7948c6f2-1734950731618.js","./index-legacy-1faf213e-1734950731618.js","./api-legacy-ffcfe147-1734950731618.js","./index-legacy-308e11e0-1734950731618.js","./Slider-legacy-7133cde0-1734950731618.js","./index-legacy-d4e0b22b-1734950731618.js","./urlUtils-legacy-47a65e18-1734950731618.js","./icon_default-legacy-fa9bb009-1734950731618.js","./useSpeak-legacy-4037e929-1734950731618.js","./api-legacy-9d2d8545-1734950731618.js","./icon-pan-legacy-9492b61b-1734950731618.js","./api-legacy-3c6cf578-1734950731618.js","./Scrollbar-legacy-0b9059a1-1734950731618.js"],(function(e,n){"use strict";var t,a,i,o,c,l,r,s,_,p,d,g,k,h,u,f,m,w,v,x,y,T,b,S,C,I,F,j,E,L;return{setters:[e=>{t=e.S},e=>{a=e.C},e=>{i=e.P},e=>{o=e.c,c=e.d},e=>{l=e.d,r=e.a,s=e.e,_=e.r,p=e.q,d=e.U,g=e.f,k=e.w,h=e.k,u=e.Q,f=e.x,m=e.aO,w=e.N,v=e.g,x=e.y,y=e.j,T=e.aG,b=e.l,S=e.m},e=>{C=e.C},e=>{I=e.d},e=>{F=e.t},e=>{j=e.T},e=>{E=e.T},e=>{L=e.e},null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var n=document.createElement("style");n.textContent='._listWrap_1kcpn_1{padding:1.66666667vw;background-color:#fff;border-radius:1.04166667vw;min-height:calc(100vh - 7.8125vw)!important}._teacherSection_1kcpn_7{display:flex;align-items:center;border-bottom:1px solid #E9E9E9;margin-bottom:1.5625vw;padding-bottom:1.25vw}._teacherSection_1kcpn_7 ._tTemp_1kcpn_14{display:flex;align-content:center}._teacherSection_1kcpn_7 ._infos_1kcpn_18{margin-top:.41666667vw;padding:.67708333vw;background:#FFFFFF;border-radius:.52083333vw}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeTitle_1kcpn_24{font-size:max(.88541667rem,14Px);font-family:PingFangSC,PingFang SC;font-weight:600;color:#000;padding-bottom:.41666667vw}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeContent_1kcpn_31{padding-bottom:.26041667vw}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34{display:flex;align-items:flex-start}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._pSection_1kcpn_38{max-width:41.14583333vw}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p1_1kcpn_41>div,._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p2_1kcpn_42>div{display:flex;align-items:flex-start;color:#838383}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p1_1kcpn_41>div span,._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p2_1kcpn_42>div span{color:#313131;flex-shrink:0}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p1_1kcpn_41:before,._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p2_1kcpn_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_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p2_1kcpn_42{padding-top:.3125vw}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._homeworkText_1kcpn_34 ._p2_1kcpn_42:before{background:#F44040}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._title_1kcpn_70{font-size:max(.67708333rem,12Px);color:#777;flex-shrink:0}._teacherSection_1kcpn_7 ._infos_1kcpn_18 ._text_1kcpn_75{font-size:max(.67708333rem,12Px);font-weight:500;color:#333;line-height:1.14583333vw;display:flex;align-items:baseline}._teacherSection_1kcpn_7 ._stitcTitle_1kcpn_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_1kcpn_7 ._stitcTitle_1kcpn_83:before{content:"";display:inline-block;width:.20833333vw;height:.72916667vw;background:#198CFE;border-radius:.10416667vw;margin-right:.41666667vw}._teacherSection_1kcpn_7 ._stitcConent_1kcpn_102 .n-progress{width:116Px}._teacherSection_1kcpn_7 ._stitcConent_1kcpn_102 ._contentRect_1kcpn_105{text-align:center}._teacherSection_1kcpn_7 ._stitcConent_1kcpn_102 ._contentRect_1kcpn_105 ._text_1kcpn_75{padding-top:.26041667vw;font-size:12Px;font-family:PingFangSC,PingFang SC;font-weight:400;color:#777;line-height:.88541667vw}._teacherSection_1kcpn_7 ._stitcConent_1kcpn_102 ._nums_1kcpn_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_1kcpn_7 ._stitcConent_1kcpn_102 ._nums_1kcpn_116 i{font-style:normal;font-size:max(1.04166667rem,14Px)}._teacherSection_1kcpn_7 ._stitcConent_1kcpn_102 ._nums_1kcpn_116 span{font-size:12Px;font-family:PingFangSC,PingFang SC;font-weight:500;color:#333;line-height:.88541667vw}._teacherList_1kcpn_137{display:flex;flex-direction:column;flex:1;margin-right:3.125vw;position:relative}._teacherList_1kcpn_137:after{content:"";position:absolute;right:0;width:1px;height:55%;background:#E9E9E9;top:50%;margin-top:-3.125vw}._teacherList_1kcpn_137 ._teacherHeader_1kcpn_154{width:5.20833333vw;height:5.20833333vw;padding:.20833333vw;border-radius:5.15625vw;background:linear-gradient(228deg,#02baff,#007afe);margin-right:1.04166667vw}._teacherList_1kcpn_137 ._teacherHeader_1kcpn_154 ._teacherHeaderBorder_1kcpn_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_1kcpn_137 ._teacherHeaderImg_1kcpn_174{width:4.375vw;height:4.375vw;border-radius:50%;overflow:hidden}._teacherList_1kcpn_137 ._workafterInfo_1kcpn_180{display:flex;justify-content:center;flex-direction:column}._teacherList_1kcpn_137 ._workafterInfo_1kcpn_180 h4{font-size:1.14583333rem;line-height:1.5625vw;font-weight:600;color:#131415;margin-bottom:.625vw}._teacherList_1kcpn_137 ._workafterInfo_1kcpn_180 p{font-size:max(.83333333rem,12Px);line-height:1.14583333vw;color:#777}._teacherList_1kcpn_137 ._workafterInfo_1kcpn_180 p span{color:#ea4132}._wordDetailModel_1kcpn_200{width:52.70833333vw}._isok_1kcpn_203{font-weight:600;color:#333}._ison_1kcpn_207{font-weight:600;color:#ea4132}._nosub_1kcpn_211{font-weight:600;color:#aaa}\n',document.head.appendChild(n);const D={listWrap:"_listWrap_1kcpn_1",teacherSection:"_teacherSection_1kcpn_7",tTemp:"_tTemp_1kcpn_14",infos:"_infos_1kcpn_18",homeTitle:"_homeTitle_1kcpn_24",homeContent:"_homeContent_1kcpn_31",homeworkText:"_homeworkText_1kcpn_34",pSection:"_pSection_1kcpn_38",p1:"_p1_1kcpn_41",p2:"_p2_1kcpn_42",title:"_title_1kcpn_70",text:"_text_1kcpn_75",stitcTitle:"_stitcTitle_1kcpn_83",stitcConent:"_stitcConent_1kcpn_102",contentRect:"_contentRect_1kcpn_105",nums:"_nums_1kcpn_116",teacherList:"_teacherList_1kcpn_137",teacherHeader:"_teacherHeader_1kcpn_154",teacherHeaderBorder:"_teacherHeaderBorder_1kcpn_162",teacherHeaderImg:"_teacherHeaderImg_1kcpn_174",workafterInfo:"_workafterInfo_1kcpn_180",wordDetailModel:"_wordDetailModel_1kcpn_200",isok:"_isok_1kcpn_203",ison:"_ison_1kcpn_207",nosub:"_nosub_1kcpn_211"};e("default",l({name:"homewrok-record-detail",setup(){const e=r(),n=s({searchForm:{keyword:"",vipFlag:null,trainingStatus:"",classGroupId:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},studentClassList:[],tableList:[],workInfo:{},detailVisiable:!1,activeRow:null,index:0}),l=_(),R=_([{name:"作业",path:"/homework-record"},{name:e.query.name,path:"/homework-record-detail"}]),P=()=>{n.pagination.page=1,A()},H=()=>{n.searchForm={keyword:"",vipFlag:null,trainingStatus:"",classGroupId:""},P()},A=async(t,a)=>{n.loading=!0;try{const i=await o({trainingId:e.query.id,...n.searchForm,...n.pagination,page:a||n.pagination.page});n.tableList=i.data.rows,n.pagination.pageTotal=i.data.total,n.pagination.page=i.data.current,n.loading=!1,"next"===t?(n.index=0,Y()):"prev"===t&&(n.index=n.tableList.length+1,z())}catch(i){n.loading=!1,console.log(i)}};p((()=>{(async()=>{try{const t=(await c({id:e.query.id})).data||{};let a="",i="";t.studentLessonTrainingDetails&&t.studentLessonTrainingDetails.length>0&&t.studentLessonTrainingDetails.forEach((e=>{const n=e.trainingContent?JSON.parse(e.trainingContent):null;if("PRACTICE"===e.trainingType&&e.musicName&&(a+="《"+e.musicName+"》",n)){const e=[`${n.practiceChapterBegin}-${n.practiceChapterEnd}小节`,`速度${n.practiceSpeed}`,`${n.trainingTimes}分钟`];a+=e.join(" | ")+";"}if("EVALUATION"===e.trainingType&&e.musicName&&(i+="《"+e.musicName+"》",n)){const e=[`${L[n.evaluateDifficult]}`,n.practiceChapterBegin||n.practiceChapterEnd?`${n.practiceChapterBegin}-${n.practiceChapterEnd}小节`:"全部小节",`${n.trainingTimes}分达标`];i+=e.join(" | ")+";"}})),t.pTitle=a,t.eTitle=i,n.workInfo=t,(t.studentClassGroup||[]).forEach((e=>{n.studentClassList.push({label:e.name,value:e.id})}))}catch(t){console.log(t)}})(),A()}));const N=()=>[{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=>g("div",null,["UNSUBMITTED"==e.trainingStatus?g("p",{class:D.nosub},[h("未提交")]):null,"SUBMITTED"==e.trainingStatus?g("p",{class:D.ison},[h("未达标")]):null,"TARGET"==e.trainingStatus?g("p",{class:D.isok},[h("达标")]):null])},{title:"是否会员",key:"vipFlag",render:e=>e.vipFlag?"是":"否"},{title:"操作",key:"id",render:(e,t)=>g(y,{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("详情")]})}],Y=()=>{n.index>=n.tableList.length?A("next",n.pagination.page+1):(++n.index,n.activeRow=n.tableList[n.index-1],l.value.getTrainingDetail(n.activeRow.studentLessonTrainingId))},z=()=>{1===n.index&&1!==n.pagination.page?A("prev",n.pagination.page-1):(--n.index,n.activeRow=n.tableList[n.index-1],l.value.getTrainingDetail(n.activeRow.studentLessonTrainingId))},U=d((()=>n.index+(n.pagination.page-1)*n.pagination.rows));return()=>g("div",null,[g(C,{list:R.value},null),g("div",{class:D.listWrap},[g("div",{class:D.teacherSection},[g("div",{class:D.teacherList},[g("div",{class:D.tTemp},[g("div",{class:D.teacherHeader},[g("div",{class:D.teacherHeaderBorder},[g(k,{class:D.teacherHeaderImg,src:n.workInfo.teacherAvatar||I,previewDisabled:!0},null)])]),g("div",{class:D.workafterInfo},[g("h4",null,[n.workInfo.teacherName]),n.workInfo.createTime&&g("p",null,[h("布置时间:"),n.workInfo.createTime&&u(n.workInfo.createTime).format("YYYY-MM-DD HH:mm")," ",h("|")," ",g("span",null,[h("截止时间:"),n.workInfo.expireDate&&u(n.workInfo.expireDate).format("YYYY-MM-DD HH:mm")])])])]),g("div",{class:D.infos},[g("div",{class:D.homeTitle},[n.workInfo.name]),g("div",{class:[D.homeContent,D.homeworkText]},[g("div",{class:D.pSection},[n.workInfo.pTitle&&g("p",{class:[D.text,D.p1]},[g("div",null,[g("span",null,[h("练习曲目:")]),g("p",null,[n.workInfo.pTitle])])]),n.workInfo.eTitle&&g("p",{class:[D.text,D.p2]},[g("div",null,[g("span",null,[h("评测曲目:")]),g("p",null,[n.workInfo.eTitle])])])])])])]),g("div",null,[g("div",{class:D.stitcTitle},[h("作业完成情况")]),g("div",{class:D.stitcConent},[g(f,{size:[38,0]},{default:()=>[g(m,{percentage:n.workInfo.trainingRate||0,"offset-degree":180,type:"circle",strokeWidth:6,"rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[g("div",{class:D.contentRect},[g("div",{class:D.nums},[n.workInfo.trainingNum||0,g("i",null,[h("/")]),n.workInfo.expectNum||0,g("span",null,[h("人")])]),g("div",{class:D.text},[h("已提交")])])]}),g(m,{percentage:n.workInfo.trainingRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#64A5FF"},{default:()=>[g("div",{class:D.contentRect},[g("div",{class:D.nums},[n.workInfo.trainingRate||0,h("%")]),g("div",{class:D.text},[h("提交率")])])]}),g(m,{percentage:n.workInfo.qualifiedRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[g("div",{class:D.contentRect},[g("div",{class:D.nums},[n.workInfo.standardNum||0,g("span",null,[h("人")])]),g("div",{class:D.text},[h("达标人数")])])]}),g(m,{percentage:n.workInfo.qualifiedRate||0,"offset-degree":180,strokeWidth:6,type:"circle","rail-color":"EDEFFA",color:"#40CEAE"},{default:()=>[g("div",{class:D.contentRect},[g("div",{class:D.nums},[n.workInfo.qualifiedRate||0,h("%")]),g("div",{class:D.text},[h("达标率")])])]})]})])])]),g("div",{class:D.searchList},[g(w,{"label-placement":"left",inline:!0},{default:()=>[g(v,null,{default:()=>[g(t,x({placeholder:"请输入学生姓名"},{class:D.searchInput,searchWord:n.searchForm.keyword,onChangeValue:e=>n.searchForm.keyword=e}),null)]}),g(v,null,{default:()=>[g(a,x({options:[{label:"全部班级",value:""},...n.studentClassList],placeholder:"全部班级",clearable:!0,inline:!0},{value:n.searchForm.classGroupId,"onUpdate:value":e=>n.searchForm.classGroupId=e}),null)]}),g(v,null,{default:()=>[g(a,x({options:[{label:"全部状态",value:""},...F],placeholder:"作业状态",clearable:!0,inline:!0},{value:n.searchForm.trainingStatus,"onUpdate:value":e=>n.searchForm.trainingStatus=e}),null)]}),g(v,null,{default:()=>[g(a,x({options:[{label:"是",value:!0},{label:"否",value:!1}],placeholder:"是否会员",clearable:!0,inline:!0},{value:n.searchForm.vipFlag,"onUpdate:value":e=>n.searchForm.vipFlag=e}),null)]}),g(v,null,{default:()=>[g(f,{justify:"end"},{default:()=>[g(y,{type:"primary",class:"searchBtn",onClick:P},{default:()=>[h("搜索")]}),g(y,{type:"primary",ghost:!0,class:"resetBtn",onClick:H},{default:()=>[h("重置")]})]})]})]})]),g("div",{class:D.tableWrap},[g(T,{class:D.classTable,loading:n.loading,columns:N(),data:n.tableList},{empty:()=>g(j,null,null)}),g(i,{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:A},null)])]),g(b,{maskClosable:S,show:n.detailVisiable,"onUpdate:show":e=>n.detailVisiable=e,preset:"card",class:["modalTitle background",D.wordDetailModel],title:"作业详情"},{default:()=>[g(E,{onNext:()=>Y(),onPre:()=>z(),ref:l,onClose:()=>n.detailVisiable=!1,total:n.pagination.pageTotal,current:U.value,activeRow:n.activeRow},null)]})])}}))}}}));