1 |
- System.register(["./index.module-legacy-1ef1eaf5-1715840129614.js","./api-legacy-c1f38ec7-1715840129614.js","./index-legacy-f35addb7-1715840129614.js","./index-legacy-8c0b7d9b-1715840129614.js","./teacherIcon-legacy-3eeb62c3-1715840129614.js","./maleIcon-legacy-f2aee668-1715840129614.js","./evaluationRecords-legacy-df6e1510-1715840129614.js","./index.module-legacy-7efba815-1715840129614.js","./api-legacy-fad13c4d-1715840129614.js","./contants-legacy-81064306-1715840129614.js","./index-legacy-42112fac-1715840129614.js","./index-legacy-84c89aec-1715840129614.js","./index-legacy-e05a8185-1715840129614.js","./dateFormat-legacy-30a125a5-1715840129614.js","./searchArray-legacy-a3ad31a9-1715840129614.js","./index-legacy-f7171940-1715840129614.js","./index-legacy-a9df44f2-1715840129614.js","./Scrollbar-legacy-f600a812-1715840129614.js","./index-legacy-2f080daf-1715840129614.js","./use-async-legacy-2751088f-1715840129614.js","./useECharts-legacy-467b80c9-1715840129614.js","./index-legacy-96518846-1715840129614.js","./NumberAnimation-legacy-cf30dbc7-1715840129614.js","./urlUtils-legacy-133e91cc-1715840129614.js","./index-legacy-892e2080-1715840129614.js","./Slider-legacy-ab6e576b-1715840129614.js","./icon_default-legacy-fa9bb009-1715840129614.js","./icon-plus-t-legacy-9d0f221a-1715840129614.js","./api-legacy-f6612378-1715840129614.js","./icon-pan-legacy-9492b61b-1715840129614.js","./api-legacy-dac26997-1715840129614.js"],(function(e,a){"use strict";var t,l,n,s,r,i,u,d,o,c,p,m,g,v,f,y,h,b,I,w,T,D,x,k,C,j,N,Y,S,L,U,A,G,M,E,H,R,B,F,q,$,W,V,z,O,J,K,P,_,Q,X,Z,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.r,d=e.e,o=e.y,c=e.p,p=e.f,m=e.N,g=e.ay,v=e.az,f=e.g,y=e.h,h=e.G,b=e.w,I=e.j,w=e.k,T=e.l,D=e.C,x=e.v,k=e.M,C=e.x,j=e.aE,N=e.q,Y=e.t},e=>{S=e.C},e=>{L=e.d},e=>{U=e.m,A=e.f},e=>{G=e.P,M=e.E},e=>{E=e.s},e=>{H=e.a,R=e.r,B=e.b},e=>{F=e.g,q=e.c},e=>{$=e.C},e=>{W=e.P},e=>{V=e.C},e=>{z=e.g,O=e.a,J=e.b},e=>{K=e.t},e=>{P=e.n,_=e.u,Q=e.q,X=e.W,Z=e.C},e=>{ee=e.e},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,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=i(),l=u(),n=d({sexs:[{label:"男",value:1,class:"option"},{label:"女",value:0,class:"option"}],areaList:[]}),s=u(),D=u(!1),x=u(F()),k=u([]),C=u(e.studentInfo.historyClassStudent||""),j=()=>e.studentInfo.currentGradeNum?-1===x.value.findIndex((a=>a.value===e.studentInfo.currentGradeNum))?null:e.studentInfo.currentGradeNum:null,N=e=>{-1===k.value.findIndex((a=>a.value===e))&&e&&k.value.push({label:e,value:e})},Y=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:j(),gradeYear:e.studentInfo.gradeYear,currentClass:e.studentInfo.currentClass}),S=u([...q]),L=d({disabled:!0,openChangePwd:!1,uploadShow:!0});o((()=>e.studentInfo),(a=>{Y.nickname=a.nickname,Y.phone=a.phone,Y.gender=a.gender,Y.id=a.id,Y.currentGradeNum=j(),Y.currentClass=a.currentClass,Y.gradeYear=a.gradeYear,console.log(e.studentInfo,"props.studentInfo"),N(a.gradeYear)})),c((async()=>{await A(),N(e.studentInfo.gradeYear)}));const U=()=>{l.value=!0,s.value.validate((async a=>{if(!a)try{await R({...e.studentInfo,...Y}),L.disabled=!0,t.success("修改成功"),l.value=!1,D.value=!1}catch(n){l.value=!1}}))},A=async()=>{try{const{data:e}=await H({}),a=[{label:e+1,value:e+1},{label:e,value:e}];k.value=a}catch{}},G=e=>!e||/^\d+$/.test(e);return()=>p("div",{class:E.infoWrap},[p("div",{class:E.setInfo},[p(m,{ref:s,model:Y,disabled:L.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(y,{maxlength:15,bordered:!L.disabled,placeholder:"请填写学生姓名",value:Y.nickname,"onUpdate:value":e=>Y.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(y,{maxlength:11,allowInput:G,bordered:!L.disabled,placeholder:"请填写学生手机号",value:Y.phone,"onUpdate:value":e=>Y.phone=e},null)]})]}),p(v,null,{default:()=>[p(f,{label:"性别",path:"sex"},{default:()=>[p(h,{bordered:!L.disabled,class:E.select,showArrow:!L.disabled,placeholder:"请选择性别",options:n.sexs,value:Y.gender,"onUpdate:value":e=>Y.gender=e},null)]})]}),p(v,null,{default:()=>[p(f,{label:"学年",path:""},{default:()=>[p(h,{bordered:!L.disabled,class:E.select,showArrow:!L.disabled,placeholder:"请选择学年",options:k.value,value:Y.gradeYear,"onUpdate:value":e=>Y.gradeYear=e},null)]})]}),p(v,null,{default:()=>[p(f,{label:"年级",path:""},{default:()=>[p(h,{bordered:!L.disabled,class:E.select,showArrow:!L.disabled,placeholder:"请选择年级",options:x.value,value:Y.currentGradeNum,"onUpdate:value":e=>Y.currentGradeNum=e},null)]})]}),p(v,null,{default:()=>[p(f,{label:"班级",path:""},{default:()=>[p(h,{bordered:!L.disabled,class:E.select,showArrow:!L.disabled,placeholder:"请选择班级",options:S.value,value:Y.currentClass,"onUpdate:value":e=>Y.currentClass=e},null)]})]})]})]})]),L.disabled?!Y.upgradeFlag&&p(b,{class:E.btnList,align:"center",justify:"end"},{default:()=>[p(I,{class:E.btn,strong:!0,color:"#f24433",disabled:!!C.value,onClick:()=>L.disabled=!1},{default:()=>[w("修改信息")]})]}):p(b,{class:E.btnList,align:"center",justify:"end"},{default:()=>[p(I,{class:E.btn,onClick:()=>(Y.nickname=e.studentInfo.nickname,Y.phone=e.studentInfo.phone,Y.gender=e.studentInfo.gender,Y.currentGradeNum=j(),Y.currentClass=e.studentInfo.currentClass,Y.gradeYear=e.studentInfo.gradeYear,void(L.disabled=!0))},{default:()=>[w("取消")]}),p(I,{class:E.btn,type:"primary",onClick:()=>D.value=!0},{default:()=>[w("完成")]})]}),p(T,{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,[w("是否确认修改学员信息")]),p(b,{class:E.btnGroup,justify:"center"},{default:()=>[p(I,{round:!0,type:"primary",onClick:U,loading:l.value},{default:()=>[w("确定")]}),p(I,{round:!0,onClick:()=>D.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=u(!1),r=u(!1),i=u({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?[`${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,fileList:e.fileJsonList&&e.fileJsonList[0]||{},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:d}),c((()=>{d(e.activeRow.id)})),()=>p("div",{class:[t.trainingDetails]},[p(D,{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:L,previewDisabled:!0},null)])]),p("div",{class:t.workafterInfo},[p("h4",null,[i.value.teacherName," ",p("div",{class:[t.workafterInfoDot,t.workafterTeacherInfoDot]},[w("老师")])]),p("p",null,[w("开始时间:"),i.value.createTime?k(new Date(i.value.createTime)).format("YYYY-MM-DD HH:mm"):"--"," ",w("| 结束时间:"),i.value.expireDate?k(new Date(i.value.expireDate)).format("YYYY-MM-DD HH:mm"):"--"])]),"UNSUBMITTED"==i.value.trainingStatus?p(x,{previewDisabled:!0,class:t.workStatus,src:P},null):null,"SUBMITTED"==i.value.trainingStatus?p(x,{previewDisabled:!0,class:t.workStatus,src:_},null):null,"TARGET"==i.value.trainingStatus?p(x,{previewDisabled:!0,class:t.workStatus,src:Q},null):null]),i.value.expireFlag&&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?"修改点评":"点评作业"])]})]),(i.value.fileExpireDay||0)>0&&p("div",{class:t.expireDateTip},[p("i",{class:t.expireDateIcon},null),p("span",null,[w("作业截止"),i.value.fileExpireDay||0,w("天后,学生上传的文件将过期,请及时查看")])]),p(ae,{style:"max-height:400px;min-height: 260px;",trigger:"none"},{default:()=>[p("div",{class:t.workList},[i.value.studentLessonTrainingDetails.map((e=>p(X,{style:{marginBottom:"20px"},item:e},null)))]),i.value.comment&&p("div",{class:t.commentSection},[p("h3",null,[p("i",{class:t.iconComment},null),p("i",{class:t.myText},null)]),p("div",{class:t.commentContent},[i.value.comment])])]})]}),p(T,{show:s.value,"onUpdate:show":e=>s.value=e},{default:()=>[p(Z,{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:()=>{d(e.activeRow.id),s.value=!1}},null)]})])}}),ue=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=u([z((new Date).getTime()),O((new Date).getTime())]),t=u(),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 B({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)}};c((()=>{i()}));const o=()=>[{title:"布置老师",key:"teacherName"},{title:"布置时间",key:"createTime",render:e=>e.createTime?k(e.createTime).format("YYYY-MM-DD HH:mm"):"--"},{title:"截止时间",key:"expireDate",render:e=>e.expireDate?k(e.expireDate).format("YYYY-MM-DD HH:mm"):"--"},{title:"最后提交时间",key:"submitTime",render:e=>e.submitTime?k(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"}},[w("未提交")]):null,"SUBMITTED"==e.trainingStatus?p("p",{style:{color:"#EA4132"},class:E.ison},[w("不合格")]):null,"TARGET"==e.trainingStatus?p("p",{class:E.isok},[w("合格")]):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:()=>[w("详情")]})}];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(V,{value:a.value,"onUpdate:value":e=>a.value=e,separator:"至",type:"daterange",timerValue:a.value},null)]}),p(f,null,{default:()=>[p($,C({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(b,{justify:"end"},{default:()=>[p(I,{type:"primary",class:"searchBtn",onClick:n},{default:()=>[w("搜索")]}),p(I,{type:"primary",ghost:!0,class:"resetBtn",onClick:s},{default:()=>[w("重置")]})]})]})]})]),p("div",null,[p(j,{class:E.classTable,loading:e.loading,columns:o(),data:e.tableList},{empty:()=>p(te,null,null)}),p(W,{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(T,{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=d({studentInfo:{avatar:"",nickname:"",gender:null,subjectNames:"",classInstrumentName:"",classGroupName:""}}),i=u("baseInfo"),o=r();console.log(o.meta.isClass);const m=u(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)}})()})),se((e=>{e.form.tabName&&(i.value=e.form.tabName)})),()=>p("div",null,[p(S,{list:m.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:L,previewDisabled:!0},null)])]),p("div",{class:t.workafterInfo},[p("h4",{class:t.studentGender},[s.studentInfo.nickname," ",p(x,{previewDisabled:!0,src:s.studentInfo.gender?U:A},null)]),p("p",null,[s.studentInfo.classGroupName," ",s.studentInfo.classInstrumentName?"| "+s.studentInfo.classInstrumentName:" "])])]),p(N,{"onUpdate:value":[e=>(e=>{re(e,"tabName",o)})(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(Y,{name:"baseInfo",tab:"基本信息"},{default:()=>[p(a,{studentInfo:s.studentInfo},null)]}),p(Y,{name:"afterWork",tab:"课后作业"},{default:()=>[p(ue,null,null)]}),p(Y,{name:"textRcode",tab:"练习记录"},{default:()=>[p(G,{studentId:o.query.studentId},null)]}),p(Y,{name:"evaluatingRcode",tab:"评测记录"},{default:()=>[p(M,{studentId:o.query.studentId},null)]})]})])])}}))}}}));
|