afterWorkDetail-70fb5f53-1713776975640.js 11 KB

12345
  1. <<<<<<<< HEAD:dist/afterWorkDetail-ef9fc964-1713538570197.js
  2. import{s as r}from"./index.module-d504ad9a-1713538570197.js";import{S as F}from"./index-251c9e26-1713538570197.js";import{C as N}from"./index-1d5ed748-1713538570197.js";import{P as S}from"./index-fd320d70-1713538570197.js";import{s as x,t as L}from"./api-6b172978-1713538570197.js";import{d as C,e as M,r as u,a as A,p as R,f as a,v as Y,k as o,M as c,N as E,g as d,x as g,w as B,j as p,aD as H,l as U}from"./index-b2343721-1713538570197.js";import{C as V}from"./index-d9035d0b-1713538570197.js";import{d as q}from"./teacherIcon-b8e3946d-1713538570197.js";import{g as f,a as h}from"./dateFormat-4b227f15-1713538570197.js";import{t as W}from"./searchArray-8a310045-1713538570197.js";import{T as P}from"./TrainingDetails-828519db-1713538570197.js";import{T as j}from"./index-a09c0e92-1713538570197.js";import"./index-57c90c04-1713538570197.js";import"./Slider-c8b0e55e-1713538570197.js";import"./urlUtils-ae95598a-1713538570197.js";import"./index-a9944152-1713538570197.js";import"./icon_default-d1bcaf5f-1713538570197.js";import"./icon-plus-t-35f4cdeb-1713538570197.js";import"./api-53935f7a-1713538570197.js";import"./icon-pan-16e35a82-1713538570197.js";import"./index-a2be37cb-1713538570197.js";import"./index-3982dd6a-1713538570197.js";import"./api-2433dab2-1713538570197.js";import"./Scrollbar-7840b5d4-1713538570197.js";const he=C({name:"student-studentList",setup(G,{emit:z}){const e=M({searchForm:{keyword:"",trainingStatus:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],workInfo:{createTime:"",expireDate:"",teacherAvatar:"",teacherName:""},detailVisiable:!1,activeRow:null,index:0}),T=u([f(new Date().getTime()),h(new Date().getTime())]),s=u(),i=A(),w=u([{name:"班级管理",path:"/classList"},{name:i.query.name,path:"/classDetail"},{name:i.query.teacherName,path:"/afterWorkDetail"}]),m=()=>{e.pagination.page=1,l(),console.log("search",e)},y=()=>{e.searchForm={keyword:"",trainingStatus:""},T.value=[f(new Date().getTime()),h(new Date().getTime())],m()},l=async()=>{e.loading=!0;try{console.log(i.query,"route.query");const t=await x({classGroupId:i.query.classGroupId||"",trainingId:i.query.trainingId,...e.searchForm,...e.pagination});e.tableList=t.data.rows,e.pagination.pageTotal=t.data.total,e.loading=!1}catch(t){e.loading=!1,console.log(t)}},D=async()=>{try{const t=await L({trainingId:i.query.trainingId});e.workInfo={...t.data}}catch(t){console.log(t)}},v=(t,n)=>{console.log(n,"index"),e.index=n+1,e.activeRow=t,e.detailVisiable=!0};R(()=>{D(),l()});const k=()=>[{title:"学生姓名",key:"studentName"},{title:"最后提交时间",key:"submitTime",render(t){return t.submitTime?c(t.submitTime).format("YYYY-MM-DD"):"--"}},{title:"作业状态",key:"sex",render(t){return a("div",null,[t.trainingStatus=="UNSUBMITTED"?a("p",{class:r.nosub},[o("未提交")]):null,t.trainingStatus=="SUBMITTED"?a("p",{class:r.ison},[o("不合格")]):null,t.trainingStatus=="TARGET"?a("p",{class:r.isok},[o("合格")]):null])}},{title:"操作",key:"id",render(t,n){return a(p,{text:!0,type:"primary",onClick:()=>{v(t,n)}},{default:()=>[o("详情")]})}}],I=()=>{++e.index,e.activeRow=e.tableList[e.index-1],s.value.getTrainingDetail(e.activeRow.studentLessonTrainingId)},b=()=>{--e.index,e.activeRow=e.tableList[e.index-1],s.value.getTrainingDetail(e.activeRow.studentLessonTrainingId)};return()=>a("div",null,[a(V,{list:w.value},null),a("div",{class:r.listWrap},[a("div",{class:r.teacherList},[a("div",{class:r.teacherHeader},[a("div",{class:r.teacherHeaderBorder},[a(Y,{class:r.teacherHeaderImg,src:e.workInfo.teacherAvatar?e.workInfo.teacherAvatar:q,previewDisabled:!0},null)])]),a("div",{class:r.workafterInfo},[a("h4",null,[e.workInfo.teacherName]),a("p",null,[o("布置时间:"),e.workInfo.createTime?c(e.workInfo.createTime).format("YYYY-MM-DD HH:mm"):"--"," ",o("|")," ",a("span",null,[o("截止时间:"),e.workInfo.expireDate?c(e.workInfo.expireDate).format("YYYY-MM-DD HH:mm"):"--"])])])]),a("div",{class:r.searchList},[a(E,{"label-placement":"left",inline:!0},{default:()=>[a(d,null,{default:()=>[a(F,g({placeholder:"请输入学生姓名"},{class:r.searchInput,searchWord:e.searchForm.keyword,onChangeValue:t=>e.searchForm.keyword=t}),null)]}),a(d,null,{default:()=>[a(N,g({options:[{label:"全部状态",value:""},...W],placeholder:"作业状态",clearable:!0,inline:!0},{value:e.searchForm.trainingStatus,"onUpdate:value":t=>e.searchForm.trainingStatus=t}),null)]}),a(d,null,{default:()=>[a(B,{justify:"end"},{default:()=>[a(p,{type:"primary",class:"searchBtn",onClick:m},{default:()=>[o("搜索")]}),a(p,{type:"primary",ghost:!0,class:"resetBtn",onClick:y},{default:()=>[o("重置")]})]})]})]})]),a("div",{class:r.tableWrap},[a(H,{class:r.classTable,loading:e.loading,columns:k(),data:e.tableList},{empty:()=>a(j,null,null)}),a(S,{page:e.pagination.page,"onUpdate:page":t=>e.pagination.page=t,pageSize:e.pagination.rows,"onUpdate:pageSize":t=>e.pagination.rows=t,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":t=>e.pagination.pageTotal=t,onList:l,sync:!0},null)])]),a(U,{show:e.detailVisiable,"onUpdate:show":t=>e.detailVisiable=t,preset:"card",class:["modalTitle background",r.wordDetailModel],title:"作业详情"},{default:()=>[a(P,{onNext:()=>I(),onPre:()=>b(),ref:s,onClose:()=>e.detailVisiable=!1,total:e.tableList.length,current:e.index,activeRow:e.activeRow},null)]})])}});export{he as default};
  3. ========
  4. import{s as r}from"./index.module-d504ad9a-1713776975640.js";import{S as F}from"./index-18292c25-1713776975640.js";import{C as N}from"./index-2fabd42a-1713776975640.js";import{P as S}from"./index-cf67b284-1713776975640.js";import{s as x,t as L}from"./api-d811e5be-1713776975640.js";import{d as C,e as M,r as u,a as A,p as R,f as a,v as Y,k as o,M as c,N as E,g as d,x as g,w as B,j as p,aD as H,l as U}from"./index-0351d306-1713776975640.js";import{C as V}from"./index-b34312f4-1713776975640.js";import{d as q}from"./teacherIcon-b8e3946d-1713776975640.js";import{g as f,a as h}from"./dateFormat-f0ae595c-1713776975640.js";import{t as W}from"./searchArray-e4373c9f-1713776975640.js";import{T as P}from"./TrainingDetails-f683ef0a-1713776975640.js";import{T as j}from"./index-42cfe010-1713776975640.js";import"./index-32c01c9a-1713776975640.js";import"./Slider-28bbbe95-1713776975640.js";import"./urlUtils-ae95598a-1713776975640.js";import"./index-61e00372-1713776975640.js";import"./icon_default-d1bcaf5f-1713776975640.js";import"./icon-plus-t-35f4cdeb-1713776975640.js";import"./api-8e8d947c-1713776975640.js";import"./icon-pan-16e35a82-1713776975640.js";import"./index-7c24704a-1713776975640.js";import"./index-d4e168fd-1713776975640.js";import"./api-7efd3008-1713776975640.js";import"./Scrollbar-8f625fd4-1713776975640.js";const he=C({name:"student-studentList",setup(G,{emit:z}){const e=M({searchForm:{keyword:"",trainingStatus:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],workInfo:{createTime:"",expireDate:"",teacherAvatar:"",teacherName:""},detailVisiable:!1,activeRow:null,index:0}),T=u([f(new Date().getTime()),h(new Date().getTime())]),s=u(),i=A(),w=u([{name:"班级管理",path:"/classList"},{name:i.query.name,path:"/classDetail"},{name:i.query.teacherName,path:"/afterWorkDetail"}]),m=()=>{e.pagination.page=1,l(),console.log("search",e)},y=()=>{e.searchForm={keyword:"",trainingStatus:""},T.value=[f(new Date().getTime()),h(new Date().getTime())],m()},l=async()=>{e.loading=!0;try{console.log(i.query,"route.query");const t=await x({classGroupId:i.query.classGroupId||"",trainingId:i.query.trainingId,...e.searchForm,...e.pagination});e.tableList=t.data.rows,e.pagination.pageTotal=t.data.total,e.loading=!1}catch(t){e.loading=!1,console.log(t)}},D=async()=>{try{const t=await L({trainingId:i.query.trainingId});e.workInfo={...t.data}}catch(t){console.log(t)}},v=(t,n)=>{console.log(n,"index"),e.index=n+1,e.activeRow=t,e.detailVisiable=!0};R(()=>{D(),l()});const k=()=>[{title:"学生姓名",key:"studentName"},{title:"最后提交时间",key:"submitTime",render(t){return t.submitTime?c(t.submitTime).format("YYYY-MM-DD"):"--"}},{title:"作业状态",key:"sex",render(t){return a("div",null,[t.trainingStatus=="UNSUBMITTED"?a("p",{class:r.nosub},[o("未提交")]):null,t.trainingStatus=="SUBMITTED"?a("p",{class:r.ison},[o("不合格")]):null,t.trainingStatus=="TARGET"?a("p",{class:r.isok},[o("合格")]):null])}},{title:"操作",key:"id",render(t,n){return a(p,{text:!0,type:"primary",onClick:()=>{v(t,n)}},{default:()=>[o("详情")]})}}],I=()=>{++e.index,e.activeRow=e.tableList[e.index-1],s.value.getTrainingDetail(e.activeRow.studentLessonTrainingId)},b=()=>{--e.index,e.activeRow=e.tableList[e.index-1],s.value.getTrainingDetail(e.activeRow.studentLessonTrainingId)};return()=>a("div",null,[a(V,{list:w.value},null),a("div",{class:r.listWrap},[a("div",{class:r.teacherList},[a("div",{class:r.teacherHeader},[a("div",{class:r.teacherHeaderBorder},[a(Y,{class:r.teacherHeaderImg,src:e.workInfo.teacherAvatar?e.workInfo.teacherAvatar:q,previewDisabled:!0},null)])]),a("div",{class:r.workafterInfo},[a("h4",null,[e.workInfo.teacherName]),a("p",null,[o("布置时间:"),e.workInfo.createTime?c(e.workInfo.createTime).format("YYYY-MM-DD HH:mm"):"--"," ",o("|")," ",a("span",null,[o("截止时间:"),e.workInfo.expireDate?c(e.workInfo.expireDate).format("YYYY-MM-DD HH:mm"):"--"])])])]),a("div",{class:r.searchList},[a(E,{"label-placement":"left",inline:!0},{default:()=>[a(d,null,{default:()=>[a(F,g({placeholder:"请输入学生姓名"},{class:r.searchInput,searchWord:e.searchForm.keyword,onChangeValue:t=>e.searchForm.keyword=t}),null)]}),a(d,null,{default:()=>[a(N,g({options:[{label:"全部状态",value:""},...W],placeholder:"作业状态",clearable:!0,inline:!0},{value:e.searchForm.trainingStatus,"onUpdate:value":t=>e.searchForm.trainingStatus=t}),null)]}),a(d,null,{default:()=>[a(B,{justify:"end"},{default:()=>[a(p,{type:"primary",class:"searchBtn",onClick:m},{default:()=>[o("搜索")]}),a(p,{type:"primary",ghost:!0,class:"resetBtn",onClick:y},{default:()=>[o("重置")]})]})]})]})]),a("div",{class:r.tableWrap},[a(H,{class:r.classTable,loading:e.loading,columns:k(),data:e.tableList},{empty:()=>a(j,null,null)}),a(S,{page:e.pagination.page,"onUpdate:page":t=>e.pagination.page=t,pageSize:e.pagination.rows,"onUpdate:pageSize":t=>e.pagination.rows=t,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":t=>e.pagination.pageTotal=t,onList:l,sync:!0},null)])]),a(U,{show:e.detailVisiable,"onUpdate:show":t=>e.detailVisiable=t,preset:"card",class:["modalTitle background",r.wordDetailModel],title:"作业详情"},{default:()=>[a(P,{onNext:()=>I(),onPre:()=>b(),ref:s,onClose:()=>e.detailVisiable=!1,total:e.tableList.length,current:e.index,activeRow:e.activeRow},null)]})])}});export{he as default};
  5. >>>>>>>> iteration-20240417-subject:dist/afterWorkDetail-70fb5f53-1713776975640.js