1 |
- System.register(["./index.module-legacy-1ef1eaf5-1720699367816.js","./api-legacy-7bb326ea-1720699367816.js","./index-legacy-e0181e36-1720699367816.js","./index-legacy-3b86c891-1720699367816.js","./teacherIcon-legacy-3eeb62c3-1720699367816.js","./maleIcon-legacy-f2aee668-1720699367816.js","./evaluationRecords-legacy-67f54fb2-1720699367816.js","./index.module-legacy-85d3d2e3-1720699367816.js","./api-legacy-18f140e4-1720699367816.js","./contants-legacy-b34d755a-1720699367816.js","./index-legacy-58c8800d-1720699367816.js","./index-legacy-c8cbce8c-1720699367816.js","./index-legacy-ef18eacf-1720699367816.js","./dateFormat-legacy-ae8504f8-1720699367816.js","./searchArray-legacy-95d8c847-1720699367816.js","./index-legacy-f7759d1b-1720699367816.js","./index-legacy-6cbb876b-1720699367816.js","./Scrollbar-legacy-9dfa8483-1720699367816.js","./index-legacy-de40bbb0-1720699367816.js","./use-async-legacy-f3df0cba-1720699367816.js","./useECharts-legacy-72d5aac4-1720699367816.js","./index-legacy-ba4d191d-1720699367816.js","./urlUtils-legacy-0ad6488a-1720699367816.js","./index-legacy-03e8d245-1720699367816.js","./Slider-legacy-2010a947-1720699367816.js","./icon_default-legacy-fa9bb009-1720699367816.js","./icon-plus-t-legacy-9d0f221a-1720699367816.js","./api-legacy-c886a139-1720699367816.js","./icon-pan-legacy-9492b61b-1720699367816.js","./api-legacy-8c887cd0-1720699367816.js"],(function(e,a){"use strict";var t,l,n,s,r,u,i,d,o,c,m,p,g,v,f,y,b,h,I,w,T,D,k,x,C,j,N,Y,S,L,U,A,G,M,E,B,F,H,R,q,W,$,V,J,O,z,P,K,Q,_,X,Z,ee,ae,te,le,ne,se,re,ue;return{setters:[e=>{t=e.s},e=>{l=e.o,n=e.p},e=>{s=e.d,r=e.a,u=e.b,i=e.r,d=e.e,o=e.A,c=e.q,m=e.f,p=e.N,g=e.aA,v=e.aB,f=e.g,y=e.h,b=e.I,h=e.x,I=e.j,w=e.k,T=e.l,D=e.m,k=e.E,x=e.w,C=e.Q,j=e.y,N=e.aG,Y=e.t,S=e.v},e=>{L=e.C},e=>{U=e.d},e=>{A=e.m,G=e.f},e=>{M=e.P,E=e.E},e=>{B=e.s},e=>{F=e.a,H=e.r,R=e.b},e=>{q=e.g,W=e.c},e=>{$=e.C},e=>{V=e.P},e=>{J=e.C},e=>{O=e.g,z=e.a,P=e.b},e=>{K=e.t},e=>{Q=e.n,_=e.u,X=e.q,Z=e.W,ee=e.C},e=>{ae=e.e},e=>{te=e.N},e=>{le=e.T},e=>{ne=e.i,se=e.s,re=e.g,ue=e.a},null,null,null,null,null,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=u(),l=i(),n=d({sexs:[{label:"男",value:1,class:"option"},{label:"女",value:0,class:"option"}],areaList:[]}),s=i(),k=i(!1),x=i(q()),C=i([]),j=i(e.studentInfo.historyClassStudent||""),N=()=>e.studentInfo.currentGradeNum?-1===x.value.findIndex((a=>a.value===e.studentInfo.currentGradeNum))?null:e.studentInfo.currentGradeNum:null,Y=e=>{-1===C.value.findIndex((a=>a.value===e))&&e&&C.value.push({label:e,value:e})},S=d({upgradeFlag:0==a.query.upgradeFlag?1:0,nickname:e.studentInfo.nickname,phone:e.studentInfo.phone,gender:e.studentInfo.gender,id:e.studentInfo.id,currentGradeNum:N(),gradeYear:e.studentInfo.gradeYear,currentClass:e.studentInfo.currentClass}),L=i([...W]),U=d({disabled:!0,openChangePwd:!1,uploadShow:!0});o((()=>e.studentInfo),(a=>{S.nickname=a.nickname,S.phone=a.phone,S.gender=a.gender,S.id=a.id,S.currentGradeNum=N(),S.currentClass=a.currentClass,S.gradeYear=a.gradeYear,console.log(e.studentInfo,"props.studentInfo"),Y(a.gradeYear)})),c((async()=>{await G(),Y(e.studentInfo.gradeYear)}));const A=()=>{l.value=!0,s.value.validate((async a=>{if(!a)try{await H({...e.studentInfo,...S}),U.disabled=!0,t.success("修改成功"),l.value=!1,k.value=!1}catch(n){l.value=!1}}))},G=async()=>{try{const{data:e}=await F({}),a=[{label:e+1,value:e+1},{label:e,value:e}];C.value=a}catch{}},M=e=>!e||/^\d+$/.test(e);return()=>m("div",{class:B.infoWrap},[m("div",{class:B.setInfo},[m(p,{ref:s,model:S,disabled:U.disabled},{default:()=>[m(g,{cols:4,"x-gap":"100"},{default:()=>[m(v,null,{default:()=>[m(f,{label:"姓名",path:"nickname",rule:{required:!0,message:"请填写学生姓名",trigger:"blur"}},{default:()=>[m(y,{maxlength:15,bordered:!U.disabled,placeholder:"请填写学生姓名",value:S.nickname,"onUpdate:value":e=>S.nickname=e},null)]})]}),m(v,null,{default:()=>[m(f,{label:"手机号",path:"phone",rule:[{required:!0,message:"请填写学生手机号",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"手机号格式不正确",trigger:"blur"}]},{default:()=>[m(y,{maxlength:11,allowInput:M,bordered:!U.disabled,placeholder:"请填写学生手机号",value:S.phone,"onUpdate:value":e=>S.phone=e},null)]})]}),m(v,null,{default:()=>[m(f,{label:"性别",path:"sex"},{default:()=>[m(b,{bordered:!U.disabled,class:B.select,showArrow:!U.disabled,placeholder:"请选择性别",options:n.sexs,value:S.gender,"onUpdate:value":e=>S.gender=e},null)]})]}),m(v,null,{default:()=>[m(f,{label:"学年",path:""},{default:()=>[m(b,{bordered:!U.disabled,class:B.select,showArrow:!U.disabled,placeholder:"请选择学年",options:C.value,value:S.gradeYear,"onUpdate:value":e=>S.gradeYear=e},null)]})]}),m(v,null,{default:()=>[m(f,{label:"年级",path:""},{default:()=>[m(b,{bordered:!U.disabled,class:B.select,showArrow:!U.disabled,placeholder:"请选择年级",options:x.value,value:S.currentGradeNum,"onUpdate:value":e=>S.currentGradeNum=e},null)]})]}),m(v,null,{default:()=>[m(f,{label:"班级",path:""},{default:()=>[m(b,{bordered:!U.disabled,class:B.select,showArrow:!U.disabled,placeholder:"请选择班级",options:L.value,value:S.currentClass,"onUpdate:value":e=>S.currentClass=e},null)]})]})]})]})]),U.disabled?!S.upgradeFlag&&m(h,{class:B.btnList,align:"center",justify:"end"},{default:()=>[m(I,{class:B.btn,strong:!0,color:"#f24433",disabled:!!j.value,onClick:()=>U.disabled=!1},{default:()=>[w("修改信息")]})]}):m(h,{class:B.btnList,align:"center",justify:"end"},{default:()=>[m(I,{class:B.btn,onClick:()=>(S.nickname=e.studentInfo.nickname,S.phone=e.studentInfo.phone,S.gender=e.studentInfo.gender,S.currentGradeNum=N(),S.currentClass=e.studentInfo.currentClass,S.gradeYear=e.studentInfo.gradeYear,void(U.disabled=!0))},{default:()=>[w("取消")]}),m(I,{class:B.btn,type:"primary",onClick:()=>k.value=!0},{default:()=>[w("完成")]})]}),m(T,{maskClosable:D,show:k.value,"onUpdate:show":e=>k.value=e,preset:"card",class:["modalTitle",B.removeVisiable],title:"确认修改"},{default:()=>[m("div",{class:B.studentRemove},[m("p",null,[w("是否确认修改学员信息")]),m(h,{class:B.btnGroup,justify:"center"},{default:()=>[m(I,{round:!0,type:"primary",onClick:A,loading:l.value},{default:()=>[w("确定")]}),m(I,{round:!0,onClick:()=>k.value=!1},{default:()=>[w("取消")]})]})])]})])}}),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=i(!1),r=i(!1),u=i({teacherName:"",createTime:"",expireDate:"",teacherAvatar:"",studentLessonTrainingDetails:[]}),d=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?[`${ae[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,fileList:e.fileJsonList&&e.fileJsonList[0]||{},allTimes:JSON.parse(e.trainingContent).trainingTimes,typeList:a||[]}}));u.value={...a.data,studentLessonTrainingDetails:t},console.log(u.value," teacherInfo.value")}catch(a){console.log(a)}r.value=!1};return n({getTrainingDetail:d}),c((()=>{d(e.activeRow.id)})),()=>m("div",{class:[t.trainingDetails]},[m(k,{show:r.value},{default:()=>[m("div",{class:t.studentList},[m("div",{class:t.studentHeaderWrap},[m("div",{class:t.studentHeader},[m("div",{class:t.studentHeaderBorder},[m(x,{class:t.studentHeaderImg,src:u.value.teacherAvatar?u.value.teacherAvatar:U,previewDisabled:!0},null)])]),m("div",{class:t.workafterInfo},[m("h4",null,[u.value.teacherName," ",m("div",{class:[t.workafterInfoDot,t.workafterTeacherInfoDot]},[w("老师")])]),m("p",null,[w("开始时间:"),u.value.createTime?C(new Date(u.value.createTime)).format("YYYY-MM-DD HH:mm"):"--"," ",w("| 结束时间:"),u.value.expireDate?C(new Date(u.value.expireDate)).format("YYYY-MM-DD HH:mm"):"--"])]),"UNSUBMITTED"==u.value.trainingStatus?m(x,{previewDisabled:!0,class:t.workStatus,src:Q},null):null,"SUBMITTED"==u.value.trainingStatus?m(x,{previewDisabled:!0,class:t.workStatus,src:_},null):null,"TARGET"==u.value.trainingStatus?m(x,{previewDisabled:!0,class:t.workStatus,src:X},null):null]),u.value.expireFlag&&m(I,{onClick:()=>s.value=!0,class:t.commentBtnGroup},{default:()=>[m("div",{class:t.text},[m("i",{class:u.value.comment&&t.look},null),u.value.comment?"修改点评":"点评作业"])]})]),(u.value.fileExpireDay||0)>0&&m("div",{class:t.expireDateTip},[m("i",{class:t.expireDateIcon},null),m("span",null,[w("作业截止"),u.value.fileExpireDay||0,w("天后,学生上传的文件将过期,请及时查看")])]),m(te,{style:"max-height:400px;min-height: 260px;",trigger:"none"},{default:()=>[m("div",{class:t.workList},[u.value.studentLessonTrainingDetails.map((e=>m(Z,{style:{marginBottom:"20px"},item:{...e,studentName:u.value.studentName}},null)))]),u.value.comment&&m("div",{class:t.commentSection},[m("h3",null,[m("i",{class:t.iconComment},null),m("i",{class:t.myText},null)]),m("div",{class:t.commentContent},[u.value.comment])])]})]}),m(T,{maskClosable:D,show:s.value,"onUpdate:show":e=>s.value=e},{default:()=>[m(ee,{comment:u.value.comment,workInfo:{isLook:!!u.value.comment,studentAvatar:u.value.studentAvatar,studentName:u.value.studentName,submitTime:u.value.submitTime,studentLessonTrainingId:u.value.studentLessonTrainingId},onClose:()=>s.value=!1,onConfrim:()=>{d(e.activeRow.id),s.value=!1}},null)]})])}}),de=s({name:"student-studentList",setup(){const e=d({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=i([O((new Date).getTime()),z((new Date).getTime())]),t=i(),l=r(),n=()=>{e.pagination.page=1,u(),se({current:{...e.searchForm,timer:a.value},saveKey:"studentDetailAfterWork"})},s=()=>{e.searchForm={keyword:"",trainingStatus:""},a.value=[O((new Date).getTime()),z((new Date).getTime())],n(),se({current:{...e.searchForm,timer:a.value},saveKey:"studentDetailAfterWork"})};ne({current:{...e.searchForm,timer:a.value},saveKey:"studentDetailAfterWork",callBack:t=>{e.searchForm=t,a.value=t.timer}});const u=async()=>{e.loading=!0;try{const t=await R({studentId:l.query.studentId,...e.searchForm,...e.pagination,...P(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)}};c((()=>{u()}));const o=()=>[{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=>m("div",null,["UNSUBMITTED"==e.trainingStatus?m("p",{class:B.nosub,style:{color:"#aaa"}},[w("未提交")]):null,"SUBMITTED"==e.trainingStatus?m("p",{style:{color:"#EA4132"},class:B.ison},[w("不合格")]):null,"TARGET"==e.trainingStatus?m("p",{class:B.isok},[w("合格")]):null])},{title:"操作",key:"id",render:(a,t)=>m(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:()=>[w("详情")]})}];return()=>m("div",null,[m("div",null,[m("div",{class:B.searchList},[m(p,{"label-placement":"left",inline:!0},{default:()=>[m(f,null,{default:()=>[m(J,{value:a.value,"onUpdate:value":e=>a.value=e,separator:"至",type:"daterange",timerValue:a.value},null)]}),m(f,null,{default:()=>[m($,j({options:[{label:"全部状态",value:""},...K],placeholder:"提交状态",clearable:!0,inline:!0},{value:e.searchForm.trainingStatus,"onUpdate:value":a=>e.searchForm.trainingStatus=a}),null)]}),m(f,null,{default:()=>[m(h,{justify:"end"},{default:()=>[m(I,{type:"primary",class:"searchBtn",onClick:n},{default:()=>[w("搜索")]}),m(I,{type:"primary",ghost:!0,class:"resetBtn",onClick:s},{default:()=>[w("重置")]})]})]})]})]),m("div",null,[m(N,{class:B.classTable,loading:e.loading,columns:o(),data:e.tableList},{empty:()=>m(le,null,null)}),m(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:u,sync:!0},null)])]),m(T,{maskClosable:D,show:e.detailVisiable,"onUpdate:show":a=>e.detailVisiable=a,preset:"card",class:["modalTitle background",B.wordDetailModel],title:"作业详情"},{default:()=>[m(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=d({studentInfo:{avatar:"",nickname:"",gender:null,subjectNames:"",classInstrumentName:"",classGroupName:""}}),u=i("baseInfo"),o=r();console.log(o.meta.isClass);const p=i(o.meta.isClass?[{name:"班级管理",path:"/classList"},{name:o.query.name,path:"/classDetail"},{name:o.query.studentName,path:"/classStudentRecode"}]:[{name:"学生管理",path:"/studentList"},{name:o.query.studentName,path:"/classStudentRecode"}]);return c((()=>{(async()=>{console.log(o.query.studentId);try{const e=await n({id:o.query.studentId});s.studentInfo={...e.data}}catch(e){console.log(e)}})()})),re((e=>{e.form.tabName&&(u.value=e.form.tabName)})),()=>m("div",null,[m(L,{list:p.value},null),m("div",{class:[t.listWrap,t.infoListWrap]},[m("div",{class:t.teacherList},[m("div",{class:t.teacherHeader},[m("div",{class:t.teacherHeaderBorder},[m(x,{class:t.teacherHeaderImg,src:s.studentInfo.avatar?s.studentInfo.avatar:U,previewDisabled:!0},null)])]),m("div",{class:t.workafterInfo},[m("h4",{class:t.studentGender},[s.studentInfo.nickname," ",m(x,{previewDisabled:!0,src:s.studentInfo.gender?A:G},null)]),m("p",null,[s.studentInfo.classGroupName," ",s.studentInfo.classInstrumentName?"| "+s.studentInfo.classInstrumentName:" "])])]),m(Y,{"onUpdate:value":[e=>(e=>{ue(e,"tabName",o)})(e),e=>u.value=e],class:t.customTabs,value:u.value,size:"large",animated:!1,"pane-wrapper-style":"margin: 0 -4px","pane-style":"padding-left: 4px; padding-right: 4px; box-sizing: border-box;"},{default:()=>[m(S,{name:"baseInfo",tab:"基本信息"},{default:()=>[m(a,{studentInfo:s.studentInfo},null)]}),m(S,{name:"afterWork",tab:"课后作业"},{default:()=>[m(de,null,null)]}),m(S,{name:"textRcode",tab:"练习记录"},{default:()=>[m(M,{studentId:o.query.studentId},null)]}),m(S,{name:"evaluatingRcode",tab:"评测记录"},{default:()=>[m(E,{studentId:o.query.studentId},null)]})]})])])}}))}}}));
|