1 |
- System.register(["./index.module-legacy-6f5293cc-1709737149806.js","./api-legacy-8c4cad6e-1709737149806.js","./index-legacy-4630fa3a-1709737149806.js","./index-legacy-4504e87f-1709737149806.js","./teacherIcon-legacy-3eeb62c3-1709737149806.js","./maleIcon-legacy-f2aee668-1709737149806.js","./evaluationRecords-legacy-cf80a9e8-1709737149806.js","./index.module-legacy-2473877d-1709737149806.js","./api-legacy-3fbe4493-1709737149806.js","./contants-legacy-b1e303f9-1709737149806.js","./index-legacy-93fb4a16-1709737149806.js","./index-legacy-189f47a7-1709737149806.js","./index-legacy-7204f371-1709737149806.js","./dateFormat-legacy-527d8e02-1709737149806.js","./searchArray-legacy-a062c607-1709737149806.js","./index-legacy-034f998b-1709737149806.js","./index-legacy-5134a133-1709737149806.js","./index-legacy-6ce0497b-1709737149806.js","./Scrollbar-legacy-7908e13e-1709737149806.js","./index-legacy-bb058e50-1709737149806.js","./use-async-legacy-1c878429-1709737149806.js","./useECharts-legacy-bc165ce6-1709737149806.js","./index-legacy-de7272c9-1709737149806.js","./NumberAnimation-legacy-4e42e61e-1709737149806.js","./urlUtils-legacy-6df7f30c-1709737149806.js","./Slider-legacy-b80830b4-1709737149806.js"],(function(e,a){"use strict";var t,l,n,s,r,i,u,d,o,c,p,m,g,v,f,b,y,h,I,T,w,D,k,x,C,j,N,S,L,Y,U,A,M,B,G,E,H,R,F,q,$,V,W,z,O,J,K,P,X,Z,Q,_,ee,ae,te,le,ne,se,re;return{setters:[e=>{t=e.s},e=>{l=e.o,n=e.p},e=>{s=e.d,r=e.a,i=e.b,u=e.c,d=e.r,o=e.e,c=e.y,p=e.f,m=e.N,g=e.a9,v=e.aa,f=e.g,b=e.h,y=e.D,h=e.w,I=e.j,T=e.k,w=e.l,D=e.p,k=e.B,x=e.v,C=e.L,j=e.x,N=e.a0,S=e.q,L=e.t},e=>{Y=e.C},e=>{U=e.d},e=>{A=e.m,M=e.f},e=>{B=e.P,G=e.E},e=>{E=e.s},e=>{H=e.r,R=e.a},e=>{F=e.g,q=e.c},e=>{$=e.C},e=>{V=e.P},e=>{W=e.C},e=>{z=e.g,O=e.a,J=e.b},e=>{K=e.t},e=>{P=e.T},e=>{X=e.n,Z=e.u,Q=e.q,_=e.C},e=>{ee=e.k},e=>{ae=e.N},e=>{te=e.T},e=>{le=e.i,ne=e.s,se=e.g,re=e.a},null,null,null,null,null],execute:function(){const a=s({name:"setting-personInfo",props:{studentInfo:{type:Object,default:()=>({nickname:"",currentGradeNum:"",gender:null,phone:"",id:"",currentClass:""})}},setup(e){const a=r(),t=i();u();const l=d(),n=o({sexs:[{label:"男",value:1,class:"option"},{label:"女",value:0,class:"option"}],areaList:[]}),s=d(),D=d(!1),k=d(F()),x=()=>e.studentInfo.currentGradeNum?-1===k.value.findIndex((a=>a.value===e.studentInfo.currentGradeNum))?null:e.studentInfo.currentGradeNum:null,C=o({upgradeFlag:0==a.query.upgradeFlag?1:0,nickname:e.studentInfo.nickname,phone:e.studentInfo.phone,gender:e.studentInfo.gender,id:e.studentInfo.id,currentGradeNum:x(),currentClass:e.studentInfo.currentClass}),j=d([...q]),N=o({disabled:!0,openChangePwd:!1,uploadShow:!0});c((()=>e.studentInfo),(e=>{C.nickname=e.nickname,C.phone=e.phone,C.gender=e.gender,C.id=e.id,C.currentGradeNum=x(),C.currentClass=e.currentClass}));const S=()=>{l.value=!0,s.value.validate((async a=>{if(!a)try{await H({...e.studentInfo,...C}),N.disabled=!0,t.success("修改成功"),l.value=!1,D.value=!1}catch(n){l.value=!1}}))},L=e=>!e||/^\d+$/.test(e);return()=>p("div",{class:E.infoWrap},[p("div",{class:E.setInfo},[p(m,{ref:s,model:C,disabled:N.disabled},{default:()=>[p(g,{cols:4,"x-gap":"100"},{default:()=>[p(v,null,{default:()=>[p(f,{label:"姓名",path:"nickname",rule:{required:!0,message:"请填写学生姓名",trigger:"blur"}},{default:()=>[p(b,{maxlength:15,bordered:!N.disabled,placeholder:"请填写学生姓名",value:C.nickname,"onUpdate:value":e=>C.nickname=e},null)]})]}),p(v,null,{default:()=>[p(f,{label:"手机号",path:"phone",rule:[{required:!0,message:"请填写学生手机号",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"手机号格式不正确",trigger:"blur"}]},{default:()=>[p(b,{maxlength:11,allowInput:L,bordered:!N.disabled,placeholder:"请填写学生手机号",value:C.phone,"onUpdate:value":e=>C.phone=e},null)]})]}),p(v,null,{default:()=>[p(f,{label:"性别",path:"sex"},{default:()=>[p(y,{bordered:!N.disabled,class:E.select,showArrow:!N.disabled,placeholder:"请选择性别",options:n.sexs,value:C.gender,"onUpdate:value":e=>C.gender=e},null)]})]}),p(v,null,{default:()=>[p(f,{label:"年级",path:""},{default:()=>[p(y,{bordered:!N.disabled,class:E.select,showArrow:!N.disabled,placeholder:"请选择年级",options:k.value,value:C.currentGradeNum,"onUpdate:value":e=>C.currentGradeNum=e},null)]})]}),p(v,null,{default:()=>[p(f,{label:"班级",path:""},{default:()=>[p(y,{bordered:!N.disabled,class:E.select,showArrow:!N.disabled,placeholder:"请选择班级",options:j.value,value:C.currentClass,"onUpdate:value":e=>C.currentClass=e},null)]})]})]})]})]),N.disabled?!C.upgradeFlag&&p(h,{class:E.btnList,align:"center",justify:"end"},{default:()=>[p(I,{class:E.btn,strong:!0,color:"#f24433",onClick:()=>N.disabled=!1},{default:()=>[T("修改信息")]})]}):p(h,{class:E.btnList,align:"center",justify:"end"},{default:()=>[p(I,{class:E.btn,onClick:()=>(C.nickname=e.studentInfo.nickname,C.phone=e.studentInfo.phone,C.gender=e.studentInfo.gender,C.currentGradeNum=x(),C.currentClass=e.studentInfo.currentClass,void(N.disabled=!0))},{default:()=>[T("取消")]}),p(I,{class:E.btn,type:"primary",onClick:()=>D.value=!0},{default:()=>[T("完成")]})]}),p(w,{show:D.value,"onUpdate:show":e=>D.value=e,preset:"card",class:["modalTitle",E.removeVisiable],title:"确认修改"},{default:()=>[p("div",{class:E.studentRemove},[p("p",null,[T("是否确认修改学员信息")]),p(h,{class:E.btnGroup,justify:"center"},{default:()=>[p(I,{round:!0,type:"primary",onClick:S,loading:l.value},{default:()=>[T("确定")]}),p(I,{round:!0,onClick:()=>D.value=!1},{default:()=>[T("取消")]})]})])]})])}}),ie=s({props:{activeRow:{type:Object,default:()=>({id:""})},total:{type:Number,default:0},current:{type:Number,default:0}},name:"studentTraomomhDetails",emits:["close"],setup(e,{emit:a,expose:n}){const s=d(!1),r=d(!1),i=d({teacherName:"",createTime:"",expireDate:"",teacherAvatar:"",studentLessonTrainingDetails:[]}),u=async e=>{r.value=!0;try{const a=await l({studentLessonTrainingId:e}),t=a.data.studentLessonTrainingDetails.map((e=>{const a=((e,a)=>{let t=[];return t="EVALUATION"===e?[`${ee[a.evaluateDifficult]}`,a.practiceChapterBegin||a.practiceChapterEnd?`${a.practiceChapterBegin}-${a.practiceChapterEnd}小节`:"全部小节",`${a.trainingTimes}分合格`]:[`${a.practiceChapterBegin}-${a.practiceChapterEnd}小节`,`速度${a.practiceSpeed}`,`${a.trainingTimes}分钟`],t})(e.trainingType,JSON.parse(e.trainingContent));return{...e,coverImg:e.titleImg,allTimes:JSON.parse(e.trainingContent).trainingTimes,typeList:a||[]}}));i.value={...a.data,studentLessonTrainingDetails:t},console.log(i.value," teacherInfo.value")}catch(a){console.log(a)}r.value=!1};return n({getTrainingDetail:u}),D((()=>{u(e.activeRow.id)})),()=>p("div",{class:[t.trainingDetails]},[p(k,{show:r.value},{default:()=>[p("div",{class:t.studentList},[p("div",{class:t.studentHeaderWrap},[p("div",{class:t.studentHeader},[p("div",{class:t.studentHeaderBorder},[p(x,{class:t.studentHeaderImg,src:i.value.teacherAvatar?i.value.teacherAvatar:U,previewDisabled:!0},null)])]),p("div",{class:t.workafterInfo},[p("h4",null,[i.value.teacherName," ",p("div",{class:[t.workafterInfoDot,t.workafterTeacherInfoDot]},[T("老师")])]),p("p",null,[T("开始时间:"),i.value.createTime?C(new Date(i.value.createTime)).format("YYYY-MM-DD HH:mm"):"--"," ",T("| 结束时间:"),i.value.expireDate?C(new Date(i.value.expireDate)).format("YYYY-MM-DD HH:mm"):"--"])])]),"UNSUBMITTED"==i.value.trainingStatus?p(x,{previewDisabled:!0,class:t.workStatus,src:X},null):null,"SUBMITTED"==i.value.trainingStatus?p(x,{previewDisabled:!0,class:t.workStatus,src:Z},null):null,"TARGET"==i.value.trainingStatus?p(x,{previewDisabled:!0,class:t.workStatus,src:Q},null):null]),"UNSUBMITTED"!==i.value.trainingStatus&&p(I,{onClick:()=>s.value=!0,class:t.commentBtnGroup},{default:()=>[p("div",{class:t.text},[p("i",{class:i.value.comment&&t.look},null),i.value.comment?"查看评语":"点评作业"])]}),p(ae,{style:"max-height:400px",trigger:"none"},{default:()=>[p("div",{class:t.workList},[i.value.studentLessonTrainingDetails.map((e=>p(P,{style:{marginBottom:"20px"},isDisabled:!0,isDelete:!1,isCLassWork:!1,item:e},null)))])]})]}),p(w,{show:s.value,"onUpdate:show":e=>s.value=e},{default:()=>[p(_,{comment:i.value.comment,workInfo:{isLook:!!i.value.comment,studentAvatar:i.value.studentAvatar,studentName:i.value.studentName,submitTime:i.value.submitTime,studentLessonTrainingId:i.value.studentLessonTrainingId},onClose:()=>s.value=!1,onConfrim:()=>{u(e.activeRow.id),s.value=!1}},null)]})])}}),ue=s({name:"student-studentList",setup(){const e=o({searchForm:{keyword:"",trainingStatus:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],workInfo:{createTime:"",expireDate:"",teacherAvatar:"",teacherName:""},detailVisiable:!1,activeRow:null,index:0}),a=d([z((new Date).getTime()),O((new Date).getTime())]),t=d(),l=r(),n=()=>{e.pagination.page=1,i(),ne({current:{...e.searchForm,timer:a.value},saveKey:"studentDetailAfterWork"})},s=()=>{e.searchForm={keyword:"",trainingStatus:""},a.value=[z((new Date).getTime()),O((new Date).getTime())],n(),ne({current:{...e.searchForm,timer:a.value},saveKey:"studentDetailAfterWork"})};le({current:{...e.searchForm,timer:a.value},saveKey:"studentDetailAfterWork",callBack:t=>{e.searchForm=t,a.value=t.timer}});const i=async()=>{e.loading=!0;try{const t=await R({studentId:l.query.studentId,...e.searchForm,...e.pagination,...J(a.value,["startTime","endTime"],"YYYY-MM-DD")});e.tableList=t.data.rows,e.pagination.pageTotal=t.data.total,e.loading=!1}catch(t){e.loading=!1,console.log(t)}};D((()=>{i()}));const u=()=>[{title:"布置老师",key:"teacherName"},{title:"布置时间",key:"createTime",render:e=>e.createTime?C(e.createTime).format("YYYY-MM-DD HH:mm"):"--"},{title:"截止时间",key:"expireDate",render:e=>e.expireDate?C(e.expireDate).format("YYYY-MM-DD HH:mm"):"--"},{title:"最后提交时间",key:"submitTime",render:e=>e.submitTime?C(e.submitTime).format("YYYY-MM-DD"):"--"},{title:"提交状态",key:"sex",render:e=>p("div",null,["UNSUBMITTED"==e.trainingStatus?p("p",{class:E.nosub,style:{color:"#aaa"}},[T("未提交")]):null,"SUBMITTED"==e.trainingStatus?p("p",{style:{color:"#EA4132"},class:E.ison},[T("不合格")]):null,"TARGET"==e.trainingStatus?p("p",{class:E.isok},[T("合格")]):null])},{title:"操作",key:"id",render:(a,t)=>p(I,{text:!0,type:"primary",onClick:()=>{((a,t)=>{console.log(t,"index"),e.index=t+1,e.activeRow=a,e.detailVisiable=!0})(a,t)}},{default:()=>[T("详情")]})}];return()=>p("div",null,[p("div",null,[p("div",{class:E.searchList},[p(m,{"label-placement":"left",inline:!0},{default:()=>[p(f,null,{default:()=>[p(W,{value:a.value,"onUpdate:value":e=>a.value=e,separator:"至",type:"daterange",timerValue:a.value},null)]}),p(f,null,{default:()=>[p($,j({options:[{label:"全部状态",value:""},...K],placeholder:"提交状态",clearable:!0,inline:!0},{value:e.searchForm.trainingStatus,"onUpdate:value":a=>e.searchForm.trainingStatus=a}),null)]}),p(f,null,{default:()=>[p(h,{justify:"end"},{default:()=>[p(I,{type:"primary",class:"searchBtn",onClick:n},{default:()=>[T("搜索")]}),p(I,{type:"primary",ghost:!0,class:"resetBtn",onClick:s},{default:()=>[T("重置")]})]})]})]})]),p("div",null,[p(N,{class:E.classTable,loading:e.loading,columns:u(),data:e.tableList},{empty:()=>p(te,null,null)}),p(V,{page:e.pagination.page,"onUpdate:page":a=>e.pagination.page=a,pageSize:e.pagination.rows,"onUpdate:pageSize":a=>e.pagination.rows=a,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":a=>e.pagination.pageTotal=a,onList:i,sync:!0},null)])]),p(w,{show:e.detailVisiable,"onUpdate:show":a=>e.detailVisiable=a,preset:"card",class:["modalTitle background",E.wordDetailModel],title:"作业详情"},{default:()=>[p(ie,{ref:t,onClose:()=>e.detailVisiable=!1,total:e.tableList.length,current:e.index,activeRow:e.activeRow},null)]})])}});e("default",s({name:"studentDetail",setup(e,{emit:l}){const s=o({studentInfo:{avatar:"",nickname:"",gender:null,subjectNames:"",classGroupName:""}}),i=d("baseInfo"),u=r();console.log(u.meta.isClass);const c=d(u.meta.isClass?[{name:"班级管理",path:"/classList"},{name:u.query.name,path:"/classDetail"},{name:u.query.studentName,path:"/classStudentRecode"}]:[{name:"学生管理",path:"/studentList"},{name:u.query.studentName,path:"/classStudentRecode"}]);return D((()=>{(async()=>{console.log(u.query.studentId);try{const e=await n({id:u.query.studentId});s.studentInfo={...e.data}}catch(e){console.log(e)}})()})),se((e=>{e.form.tabName&&(i.value=e.form.tabName)})),()=>p("div",null,[p(Y,{list:c.value},null),p("div",{class:[t.listWrap,t.infoListWrap]},[p("div",{class:t.teacherList},[p("div",{class:t.teacherHeader},[p("div",{class:t.teacherHeaderBorder},[p(x,{class:t.teacherHeaderImg,src:s.studentInfo.avatar?s.studentInfo.avatar:U,previewDisabled:!0},null)])]),p("div",{class:t.workafterInfo},[p("h4",{class:t.studentGender},[s.studentInfo.nickname," ",p(x,{previewDisabled:!0,src:s.studentInfo.gender?A:M},null)]),p("p",null,[s.studentInfo.classGroupName," ",s.studentInfo.subjectNames?"| "+s.studentInfo.subjectNames:" "])])]),p(S,{"onUpdate:value":[e=>(e=>{re(e,"tabName",u)})(e),e=>i.value=e],class:t.customTabs,value:i.value,size:"large",animated:!1,"pane-wrapper-style":"margin: 0 -4px","pane-style":"padding-left: 4px; padding-right: 4px; box-sizing: border-box;"},{default:()=>[p(L,{name:"baseInfo",tab:"基本信息"},{default:()=>[p(a,{studentInfo:s.studentInfo},null)]}),p(L,{name:"afterWork",tab:"课后作业"},{default:()=>[p(ue,null,null)]}),p(L,{name:"textRcode",tab:"练习记录"},{default:()=>[p(B,{studentId:u.query.studentId},null)]}),p(L,{name:"evaluatingRcode",tab:"评测记录"},{default:()=>[p(G,{studentId:u.query.studentId},null)]})]})])])}}))}}}));
|