afterWorkDetail-legacy-aeeb72f5-1715344654498.js 12 KB

12345
  1. <<<<<<<< HEAD:dist/afterWorkDetail-legacy-3a8e74a4-1715338362022.js
  2. System.register(["./index.module-legacy-990676cd-1715338362022.js","./index-legacy-2024e936-1715338362022.js","./index-legacy-7aa27522-1715338362022.js","./index-legacy-eb8f9b43-1715338362022.js","./api-legacy-b7406361-1715338362022.js","./index-legacy-78badcda-1715338362022.js","./index-legacy-ee3fa3ce-1715338362022.js","./teacherIcon-legacy-3eeb62c3-1715338362022.js","./dateFormat-legacy-c4691682-1715338362022.js","./searchArray-legacy-53536441-1715338362022.js","./TrainingDetails-legacy-5947b048-1715338362022.js","./index-legacy-6ab89013-1715338362022.js","./index-legacy-48024547-1715338362022.js","./Slider-legacy-5f6933ed-1715338362022.js","./urlUtils-legacy-133e91cc-1715338362022.js","./index-legacy-956d8665-1715338362022.js","./icon_default-legacy-fa9bb009-1715338362022.js","./icon-plus-t-legacy-9d0f221a-1715338362022.js","./api-legacy-40a5daa7-1715338362022.js","./icon-pan-legacy-9492b61b-1715338362022.js","./api-legacy-13b630dc-1715338362022.js","./index-legacy-63666194-1715338362022.js","./index-legacy-7d259dff-1715338362022.js","./api-legacy-c9742369-1715338362022.js","./Scrollbar-legacy-532c8be4-1715338362022.js"],(function(e,a){"use strict";var t,l,n,i,s,r,o,c,g,d,u,p,y,m,h,w,v,f,x,T,j,k,b,D,I,S,L,Y,M,U;return{setters:[e=>{t=e.s},e=>{l=e.S},e=>{n=e.C},e=>{i=e.P},e=>{s=e.q,r=e.r},e=>{o=e.d,c=e.e,g=e.r,d=e.a,u=e.p,p=e.S,y=e.f,m=e.v,h=e.k,w=e.M,v=e.N,f=e.g,x=e.x,T=e.w,j=e.j,k=e.aE,b=e.l},e=>{D=e.C},e=>{I=e.d},e=>{S=e.g,L=e.a},e=>{Y=e.t},e=>{M=e.T},e=>{U=e.T},null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",o({name:"student-studentList",setup(e,{emit:a}){const o=c({searchForm:{keyword:"",trainingStatus:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],workInfo:{createTime:"",expireDate:"",teacherAvatar:"",teacherName:""},detailVisiable:!1,activeRow:null,index:0}),R=g([S((new Date).getTime()),L((new Date).getTime())]),F=g(),C=d(),H=g([{name:"班级管理",path:"/classList"},{name:C.query.name,path:"/classDetail"},{name:C.query.teacherName,path:"/afterWorkDetail"}]),N=()=>{o.pagination.page=1,q(),console.log("search",o)},V=()=>{o.searchForm={keyword:"",trainingStatus:""},R.value=[S((new Date).getTime()),L((new Date).getTime())],N()},q=async(e,a)=>{o.loading=!0;try{const t=await s({classGroupId:C.query.classGroupId||"",trainingId:C.query.trainingId,...o.searchForm,...o.pagination,page:a||o.pagination.page});o.tableList=t.data.rows,o.pagination.page=t.data.current,o.pagination.pageTotal=t.data.total,o.loading=!1,"next"===e?(o.index=0,A()):"prev"===e&&(o.index=o.tableList.length+1,W())}catch(t){o.loading=!1,console.log(t)}};u((()=>{(async()=>{try{const e=await r({trainingId:C.query.trainingId});o.workInfo={...e.data}}catch(e){console.log(e)}})(),q()}));const B=()=>[{title:"学生姓名",key:"studentName"},{title:"最后提交时间",key:"submitTime",render:e=>e.submitTime?w(e.submitTime).format("YYYY-MM-DD"):"--"},{title:"作业状态",key:"sex",render:e=>y("div",null,["UNSUBMITTED"==e.trainingStatus?y("p",{class:t.nosub},[h("未提交")]):null,"SUBMITTED"==e.trainingStatus?y("p",{class:t.ison},[h("不合格")]):null,"TARGET"==e.trainingStatus?y("p",{class:t.isok},[h("合格")]):null])},{title:"操作",key:"id",render:(e,a)=>y(j,{text:!0,type:"primary",onClick:()=>{((e,a)=>{o.index=a+1,o.activeRow=e,o.detailVisiable=!0})(e,a)}},{default:()=>[h("详情")]})}],A=()=>{o.index>=o.tableList.length?q("next",o.pagination.page+1):(++o.index,o.activeRow=o.tableList[o.index-1],F.value.getTrainingDetail(o.activeRow.studentLessonTrainingId))},W=()=>{1===o.index&&1!==o.pagination.page?q("prev",o.pagination.page-1):(--o.index,o.activeRow=o.tableList[o.index-1],F.value.getTrainingDetail(o.activeRow.studentLessonTrainingId))},E=p((()=>o.index+(o.pagination.page-1)*o.pagination.rows));return()=>y("div",null,[y(D,{list:H.value},null),y("div",{class:t.listWrap},[y("div",{class:t.teacherList},[y("div",{class:t.teacherHeader},[y("div",{class:t.teacherHeaderBorder},[y(m,{class:t.teacherHeaderImg,src:o.workInfo.teacherAvatar?o.workInfo.teacherAvatar:I,previewDisabled:!0},null)])]),y("div",{class:t.workafterInfo},[y("h4",null,[o.workInfo.teacherName]),y("p",null,[h("布置时间:"),o.workInfo.createTime?w(o.workInfo.createTime).format("YYYY-MM-DD HH:mm"):"--"," ",h("|")," ",y("span",null,[h("截止时间:"),o.workInfo.expireDate?w(o.workInfo.expireDate).format("YYYY-MM-DD HH:mm"):"--"])])])]),y("div",{class:t.searchList},[y(v,{"label-placement":"left",inline:!0},{default:()=>[y(f,null,{default:()=>[y(l,x({placeholder:"请输入学生姓名"},{class:t.searchInput,searchWord:o.searchForm.keyword,onChangeValue:e=>o.searchForm.keyword=e}),null)]}),y(f,null,{default:()=>[y(n,x({options:[{label:"全部状态",value:""},...Y],placeholder:"作业状态",clearable:!0,inline:!0},{value:o.searchForm.trainingStatus,"onUpdate:value":e=>o.searchForm.trainingStatus=e}),null)]}),y(f,null,{default:()=>[y(T,{justify:"end"},{default:()=>[y(j,{type:"primary",class:"searchBtn",onClick:N},{default:()=>[h("搜索")]}),y(j,{type:"primary",ghost:!0,class:"resetBtn",onClick:V},{default:()=>[h("重置")]})]})]})]})]),y("div",{class:t.tableWrap},[y(k,{class:t.classTable,loading:o.loading,columns:B(),data:o.tableList},{empty:()=>y(U,null,null)}),y(i,{page:o.pagination.page,"onUpdate:page":e=>o.pagination.page=e,pageSize:o.pagination.rows,"onUpdate:pageSize":e=>o.pagination.rows=e,pageTotal:o.pagination.pageTotal,"onUpdate:pageTotal":e=>o.pagination.pageTotal=e,onList:q,sync:!0},null)])]),y(b,{show:o.detailVisiable,"onUpdate:show":e=>o.detailVisiable=e,preset:"card",class:["modalTitle background",t.wordDetailModel],title:"作业详情"},{default:()=>[y(M,{onNext:()=>A(),onPre:()=>W(),ref:F,onClose:()=>o.detailVisiable=!1,total:o.pagination.pageTotal,current:E.value,activeRow:o.activeRow},null)]})])}}))}}}));
  3. ========
  4. System.register(["./index.module-legacy-990676cd-1715344654498.js","./index-legacy-875956f0-1715344654498.js","./index-legacy-5d36018a-1715344654498.js","./index-legacy-23e236b8-1715344654498.js","./api-legacy-8c41511d-1715344654498.js","./index-legacy-c18b80f1-1715344654498.js","./index-legacy-02aaee83-1715344654498.js","./teacherIcon-legacy-3eeb62c3-1715344654498.js","./dateFormat-legacy-f0f4aebc-1715344654498.js","./searchArray-legacy-ab2a5be9-1715344654498.js","./TrainingDetails-legacy-52c7ac36-1715344654498.js","./index-legacy-3ac1463e-1715344654498.js","./index-legacy-7e1da025-1715344654498.js","./Slider-legacy-191e3c1c-1715344654498.js","./urlUtils-legacy-133e91cc-1715344654498.js","./index-legacy-0b765cb9-1715344654498.js","./icon_default-legacy-fa9bb009-1715344654498.js","./icon-plus-t-legacy-9d0f221a-1715344654498.js","./api-legacy-c822badf-1715344654498.js","./icon-pan-legacy-9492b61b-1715344654498.js","./api-legacy-82f9f5d8-1715344654498.js","./index-legacy-fa525068-1715344654498.js","./index-legacy-22b410fb-1715344654498.js","./api-legacy-4ba0a75f-1715344654498.js","./Scrollbar-legacy-2fe32f90-1715344654498.js"],(function(e,a){"use strict";var t,l,n,i,s,r,o,c,g,d,u,p,y,m,h,w,v,f,x,T,j,k,b,D,I,S,L,Y,M,U;return{setters:[e=>{t=e.s},e=>{l=e.S},e=>{n=e.C},e=>{i=e.P},e=>{s=e.q,r=e.r},e=>{o=e.d,c=e.e,g=e.r,d=e.a,u=e.p,p=e.S,y=e.f,m=e.v,h=e.k,w=e.M,v=e.N,f=e.g,x=e.x,T=e.w,j=e.j,k=e.aE,b=e.l},e=>{D=e.C},e=>{I=e.d},e=>{S=e.g,L=e.a},e=>{Y=e.t},e=>{M=e.T},e=>{U=e.T},null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",o({name:"student-studentList",setup(e,{emit:a}){const o=c({searchForm:{keyword:"",trainingStatus:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],workInfo:{createTime:"",expireDate:"",teacherAvatar:"",teacherName:""},detailVisiable:!1,activeRow:null,index:0}),R=g([S((new Date).getTime()),L((new Date).getTime())]),F=g(),q=d(),C=g([{name:"班级管理",path:"/classList"},{name:q.query.name,path:"/classDetail"},{name:q.query.teacherName,path:"/afterWorkDetail"}]),H=()=>{o.pagination.page=1,V(),console.log("search",o)},N=()=>{o.searchForm={keyword:"",trainingStatus:""},R.value=[S((new Date).getTime()),L((new Date).getTime())],H()},V=async(e,a)=>{o.loading=!0;try{const t=await s({classGroupId:q.query.classGroupId||"",trainingId:q.query.trainingId,...o.searchForm,...o.pagination,page:a||o.pagination.page});o.tableList=t.data.rows,o.pagination.page=t.data.current,o.pagination.pageTotal=t.data.total,o.loading=!1,"next"===e?(o.index=0,A()):"prev"===e&&(o.index=o.tableList.length+1,W())}catch(t){o.loading=!1,console.log(t)}};u((()=>{(async()=>{try{const e=await r({trainingId:q.query.trainingId});o.workInfo={...e.data}}catch(e){console.log(e)}})(),V()}));const B=()=>[{title:"学生姓名",key:"studentName"},{title:"最后提交时间",key:"submitTime",render:e=>e.submitTime?w(e.submitTime).format("YYYY-MM-DD"):"--"},{title:"作业状态",key:"sex",render:e=>y("div",null,["UNSUBMITTED"==e.trainingStatus?y("p",{class:t.nosub},[h("未提交")]):null,"SUBMITTED"==e.trainingStatus?y("p",{class:t.ison},[h("不合格")]):null,"TARGET"==e.trainingStatus?y("p",{class:t.isok},[h("合格")]):null])},{title:"操作",key:"id",render:(e,a)=>y(j,{text:!0,type:"primary",onClick:()=>{((e,a)=>{o.index=a+1,o.activeRow=e,o.detailVisiable=!0})(e,a)}},{default:()=>[h("详情")]})}],A=()=>{o.index>=o.tableList.length?V("next",o.pagination.page+1):(++o.index,o.activeRow=o.tableList[o.index-1],F.value.getTrainingDetail(o.activeRow.studentLessonTrainingId))},W=()=>{1===o.index&&1!==o.pagination.page?V("prev",o.pagination.page-1):(--o.index,o.activeRow=o.tableList[o.index-1],F.value.getTrainingDetail(o.activeRow.studentLessonTrainingId))},E=p((()=>o.index+(o.pagination.page-1)*o.pagination.rows));return()=>y("div",null,[y(D,{list:C.value},null),y("div",{class:t.listWrap},[y("div",{class:t.teacherList},[y("div",{class:t.teacherHeader},[y("div",{class:t.teacherHeaderBorder},[y(m,{class:t.teacherHeaderImg,src:o.workInfo.teacherAvatar?o.workInfo.teacherAvatar:I,previewDisabled:!0},null)])]),y("div",{class:t.workafterInfo},[y("h4",null,[o.workInfo.teacherName]),y("p",null,[h("布置时间:"),o.workInfo.createTime?w(o.workInfo.createTime).format("YYYY-MM-DD HH:mm"):"--"," ",h("|")," ",y("span",null,[h("截止时间:"),o.workInfo.expireDate?w(o.workInfo.expireDate).format("YYYY-MM-DD HH:mm"):"--"])])])]),y("div",{class:t.searchList},[y(v,{"label-placement":"left",inline:!0},{default:()=>[y(f,null,{default:()=>[y(l,x({placeholder:"请输入学生姓名"},{class:t.searchInput,searchWord:o.searchForm.keyword,onChangeValue:e=>o.searchForm.keyword=e}),null)]}),y(f,null,{default:()=>[y(n,x({options:[{label:"全部状态",value:""},...Y],placeholder:"作业状态",clearable:!0,inline:!0},{value:o.searchForm.trainingStatus,"onUpdate:value":e=>o.searchForm.trainingStatus=e}),null)]}),y(f,null,{default:()=>[y(T,{justify:"end"},{default:()=>[y(j,{type:"primary",class:"searchBtn",onClick:H},{default:()=>[h("搜索")]}),y(j,{type:"primary",ghost:!0,class:"resetBtn",onClick:N},{default:()=>[h("重置")]})]})]})]})]),y("div",{class:t.tableWrap},[y(k,{class:t.classTable,loading:o.loading,columns:B(),data:o.tableList},{empty:()=>y(U,null,null)}),y(i,{page:o.pagination.page,"onUpdate:page":e=>o.pagination.page=e,pageSize:o.pagination.rows,"onUpdate:pageSize":e=>o.pagination.rows=e,pageTotal:o.pagination.pageTotal,"onUpdate:pageTotal":e=>o.pagination.pageTotal=e,onList:V,sync:!0},null)])]),y(b,{show:o.detailVisiable,"onUpdate:show":e=>o.detailVisiable=e,preset:"card",class:["modalTitle background",t.wordDetailModel],title:"作业详情"},{default:()=>[y(M,{onNext:()=>A(),onPre:()=>W(),ref:F,onClose:()=>o.detailVisiable=!1,total:o.pagination.pageTotal,current:E.value,activeRow:o.activeRow},null)]})])}}))}}}));
  5. >>>>>>>> iteration-20240506:dist/afterWorkDetail-legacy-aeeb72f5-1715344654498.js