1 |
- System.register(["./index.module-legacy-250d90e8-1713776975640.js","./index-legacy-559c98fa-1713776975640.js","./index-legacy-ad496d04-1713776975640.js","./index-legacy-e036114e-1713776975640.js","./api-legacy-bc71a0e7-1713776975640.js","./index-legacy-16682d5c-1713776975640.js","./index-legacy-4ef27317-1713776975640.js","./teacherIcon-legacy-3eeb62c3-1713776975640.js","./dateFormat-legacy-eec21a74-1713776975640.js","./searchArray-legacy-180070cf-1713776975640.js","./TrainingDetails-legacy-520ddc38-1713776975640.js","./index-legacy-651b3ed9-1713776975640.js","./index-legacy-139a7fb2-1713776975640.js","./Slider-legacy-495b42f4-1713776975640.js","./urlUtils-legacy-cfb03d91-1713776975640.js","./index-legacy-45252d6a-1713776975640.js","./icon_default-legacy-fa9bb009-1713776975640.js","./icon-plus-t-legacy-9d0f221a-1713776975640.js","./api-legacy-c5ab91a4-1713776975640.js","./icon-pan-legacy-9492b61b-1713776975640.js","./index-legacy-533f27f6-1713776975640.js","./index-legacy-5b54087b-1713776975640.js","./api-legacy-df770d8a-1713776975640.js","./Scrollbar-legacy-5bf2e206-1713776975640.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,D,I,S,L,Y,M;return{setters:[e=>{l=e.s},e=>{t=e.S},e=>{n=e.C},e=>{i=e.P},e=>{s=e.s,r=e.t},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.M,w=e.N,f=e.g,v=e.x,T=e.w,x=e.j,j=e.aD,k=e.l},e=>{b=e.C},e=>{D=e.d},e=>{I=e.g,S=e.a},e=>{L=e.t},e=>{Y=e.T},e=>{M=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}),U=d([I((new Date).getTime()),S((new Date).getTime())]),F=d(),R=u(),C=d([{name:"班级管理",path:"/classList"},{name:R.query.name,path:"/classDetail"},{name:R.query.teacherName,path:"/afterWorkDetail"}]),q=()=>{o.pagination.page=1,N(),console.log("search",o)},H=()=>{o.searchForm={keyword:"",trainingStatus:""},U.value=[I((new Date).getTime()),S((new Date).getTime())],q()},N=async()=>{o.loading=!0;try{console.log(R.query,"route.query");const e=await s({classGroupId:R.query.classGroupId||"",trainingId:R.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:R.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:C.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:D,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(M,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)]})])}}))}}}));
|