afterWorkDetail-legacy-3f325dd3-1715335720454.js 12 KB

12345
  1. <<<<<<<< HEAD:dist/afterWorkDetail-legacy-3f325dd3-1715335720454.js
  2. System.register(["./index.module-legacy-990676cd-1715335720454.js","./index-legacy-3e322f46-1715335720454.js","./index-legacy-0996d87a-1715335720454.js","./index-legacy-2eaaf1e5-1715335720454.js","./api-legacy-b2d3fcfd-1715335720454.js","./index-legacy-1e148d29-1715335720454.js","./index-legacy-d1d951c5-1715335720454.js","./teacherIcon-legacy-3eeb62c3-1715335720454.js","./dateFormat-legacy-5ace0859-1715335720454.js","./searchArray-legacy-7535a75f-1715335720454.js","./TrainingDetails-legacy-901db994-1715335720454.js","./index-legacy-a7ad9165-1715335720454.js","./index-legacy-2940887c-1715335720454.js","./Slider-legacy-eb1c778d-1715335720454.js","./urlUtils-legacy-133e91cc-1715335720454.js","./index-legacy-79cfc574-1715335720454.js","./icon_default-legacy-fa9bb009-1715335720454.js","./icon-plus-t-legacy-9d0f221a-1715335720454.js","./api-legacy-46d69524-1715335720454.js","./icon-pan-legacy-9492b61b-1715335720454.js","./api-legacy-14e1a3e7-1715335720454.js","./index-legacy-11055ab2-1715335720454.js","./index-legacy-db6c9cd7-1715335720454.js","./api-legacy-50973ef2-1715335720454.js","./Scrollbar-legacy-30003dd3-1715335720454.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-1715329869173.js","./index-legacy-4ec5e7fd-1715329869173.js","./index-legacy-0115763a-1715329869173.js","./index-legacy-6941cec6-1715329869173.js","./api-legacy-dcfe0192-1715329869173.js","./index-legacy-20e1f1fa-1715329869173.js","./index-legacy-4e29813a-1715329869173.js","./teacherIcon-legacy-3eeb62c3-1715329869173.js","./dateFormat-legacy-f5d11733-1715329869173.js","./searchArray-legacy-a71cb065-1715329869173.js","./TrainingDetails-legacy-71d32dfd-1715329869173.js","./index-legacy-15cc754c-1715329869173.js","./index-legacy-88ac27c0-1715329869173.js","./Slider-legacy-12a6d00b-1715329869173.js","./urlUtils-legacy-cfb03d91-1715329869173.js","./index-legacy-f3bf3ba0-1715329869173.js","./icon_default-legacy-fa9bb009-1715329869173.js","./icon-plus-t-legacy-9d0f221a-1715329869173.js","./api-legacy-a5617241-1715329869173.js","./icon-pan-legacy-9492b61b-1715329869173.js","./api-legacy-3e0fafff-1715329869173.js","./index-legacy-33c631e5-1715329869173.js","./index-legacy-5ad44583-1715329869173.js","./api-legacy-643c61ca-1715329869173.js","./Scrollbar-legacy-b5de2751-1715329869173.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,R;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=>{R=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}),U=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:""},U.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(R,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-45aaaaab-1715329869173.js