afterWorkDetail-legacy-c2bd7103-1710984815184.js 5.4 KB

1
  1. System.register(["./index.module-legacy-6f5293cc-1710984815184.js","./index-legacy-2b254f57-1710984815184.js","./index-legacy-1052eaad-1710984815184.js","./index-legacy-270d6bb9-1710984815184.js","./api-legacy-bf0251ae-1710984815184.js","./index-legacy-cc1d7c26-1710984815184.js","./index-legacy-d9b00f4f-1710984815184.js","./teacherIcon-legacy-3eeb62c3-1710984815184.js","./dateFormat-legacy-43db2bf3-1710984815184.js","./searchArray-legacy-d4069060-1710984815184.js","./TrainingDetails-legacy-c358ed63-1710984815184.js","./index-legacy-dbfc64a5-1710984815184.js","./index-legacy-88581ac5-1710984815184.js","./Slider-legacy-4c10616c-1710984815184.js","./urlUtils-legacy-6df7f30c-1710984815184.js","./index-legacy-ec332a9d-1710984815184.js","./icon_default-legacy-fa9bb009-1710984815184.js","./icon-plus-t-legacy-9d0f221a-1710984815184.js","./api-legacy-3879536d-1710984815184.js","./icon-pan-legacy-9492b61b-1710984815184.js","./index-legacy-bc37934d-1710984815184.js","./index-legacy-4b081764-1710984815184.js","./api-legacy-6aa5bacb-1710984815184.js","./Scrollbar-legacy-2dd8eacb-1710984815184.js"],(function(e,a){"use strict";var l,t,n,i,s,r,o,c,d,u,g,p,y,m,h,w,f,v,T,x,j,k,b,I,D,S,L,Y,U;return{setters:[e=>{l=e.s},e=>{t=e.S},e=>{n=e.C},e=>{i=e.P},e=>{s=e.q,r=e.s},e=>{o=e.d,c=e.e,d=e.r,u=e.a,g=e.p,p=e.f,y=e.v,m=e.k,h=e.L,w=e.N,f=e.g,v=e.x,T=e.w,x=e.j,j=e.aC,k=e.l},e=>{b=e.C},e=>{I=e.d},e=>{D=e.g,S=e.a},e=>{L=e.t},e=>{Y=e.T},e=>{U=e.T},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}),C=d([D((new Date).getTime()),S((new Date).getTime())]),F=d(),M=u(),R=d([{name:"班级管理",path:"/classList"},{name:M.query.name,path:"/classDetail"},{name:M.query.teacherName,path:"/afterWorkDetail"}]),q=()=>{o.pagination.page=1,N(),console.log("search",o)},H=()=>{o.searchForm={keyword:"",trainingStatus:""},C.value=[D((new Date).getTime()),S((new Date).getTime())],q()},N=async()=>{o.loading=!0;try{console.log(M.query,"route.query");const e=await s({classGroupId:M.query.classGroupId||"",trainingId:M.query.trainingId,...o.searchForm,...o.pagination});o.tableList=e.data.rows,o.pagination.pageTotal=e.data.total,o.loading=!1}catch(e){o.loading=!1,console.log(e)}};g((()=>{(async()=>{try{const e=await r({trainingId:M.query.trainingId});o.workInfo={...e.data}}catch(e){console.log(e)}})(),N()}));const V=()=>[{title:"学生姓名",key:"studentName"},{title:"最后提交时间",key:"submitTime",render:e=>e.submitTime?h(e.submitTime).format("YYYY-MM-DD"):"--"},{title:"作业状态",key:"sex",render:e=>p("div",null,["UNSUBMITTED"==e.trainingStatus?p("p",{class:l.nosub},[m("未提交")]):null,"SUBMITTED"==e.trainingStatus?p("p",{class:l.ison},[m("不合格")]):null,"TARGET"==e.trainingStatus?p("p",{class:l.isok},[m("合格")]):null])},{title:"操作",key:"id",render:(e,a)=>p(x,{text:!0,type:"primary",onClick:()=>{((e,a)=>{console.log(a,"index"),o.index=a+1,o.activeRow=e,o.detailVisiable=!0})(e,a)}},{default:()=>[m("详情")]})}];return()=>p("div",null,[p(b,{list:R.value},null),p("div",{class:l.listWrap},[p("div",{class:l.teacherList},[p("div",{class:l.teacherHeader},[p("div",{class:l.teacherHeaderBorder},[p(y,{class:l.teacherHeaderImg,src:o.workInfo.teacherAvatar?o.workInfo.teacherAvatar:I,previewDisabled:!0},null)])]),p("div",{class:l.workafterInfo},[p("h4",null,[o.workInfo.teacherName]),p("p",null,[m("布置时间:"),o.workInfo.createTime?h(o.workInfo.createTime).format("YYYY-MM-DD HH:mm"):"--"," ",m("|")," ",p("span",null,[m("截止时间:"),o.workInfo.expireDate?h(o.workInfo.expireDate).format("YYYY-MM-DD HH:mm"):"--"])])])]),p("div",{class:l.searchList},[p(w,{"label-placement":"left",inline:!0},{default:()=>[p(f,null,{default:()=>[p(t,v({placeholder:"请输入学生姓名"},{class:l.searchInput,searchWord:o.searchForm.keyword,onChangeValue:e=>o.searchForm.keyword=e}),null)]}),p(f,null,{default:()=>[p(n,v({options:[{label:"全部状态",value:""},...L],placeholder:"作业状态",clearable:!0,inline:!0},{value:o.searchForm.trainingStatus,"onUpdate:value":e=>o.searchForm.trainingStatus=e}),null)]}),p(f,null,{default:()=>[p(T,{justify:"end"},{default:()=>[p(x,{type:"primary",class:"searchBtn",onClick:q},{default:()=>[m("搜索")]}),p(x,{type:"primary",ghost:!0,class:"resetBtn",onClick:H},{default:()=>[m("重置")]})]})]})]})]),p("div",{class:l.tableWrap},[p(j,{class:l.classTable,loading:o.loading,columns:V(),data:o.tableList},{empty:()=>p(U,null,null)}),p(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:N,sync:!0},null)])]),p(k,{show:o.detailVisiable,"onUpdate:show":e=>o.detailVisiable=e,preset:"card",class:["modalTitle background",l.wordDetailModel],title:"作业详情"},{default:()=>[p(Y,{onNext:()=>(++o.index,o.activeRow=o.tableList[o.index-1],void F.value.getTrainingDetail(o.activeRow.studentLessonTrainingId)),onPre:()=>(--o.index,o.activeRow=o.tableList[o.index-1],void F.value.getTrainingDetail(o.activeRow.studentLessonTrainingId)),ref:F,onClose:()=>o.detailVisiable=!1,total:o.tableList.length,current:o.index,activeRow:o.activeRow},null)]})])}}))}}}));