1 |
- System.register(["./index.module-legacy-7948c6f2-1731319840132.js","./api-legacy-66c5127b-1731319840132.js","./index-legacy-bb6bf184-1731319840132.js","./index-legacy-ce90e130-1731319840132.js","./teacherIcon-legacy-3eeb62c3-1731319840132.js","./evaluationRecords-legacy-2d202745-1731319840132.js","./index.module-legacy-6f3d4809-1731319840132.js","./api-legacy-a2724e79-1731319840132.js","./contants-legacy-37d666a7-1731319840132.js","./index-legacy-4dbcb4b9-1731319840132.js","./index-legacy-725f2f20-1731319840132.js","./index-legacy-5433e0d9-1731319840132.js","./icon-sort-asc-legacy-8c8821c6-1731319840132.js","./searchArray-legacy-82b7096a-1731319840132.js","./index-legacy-0bfcbac0-1731319840132.js","./contants-legacy-8af64912-1731319840132.js","./Scrollbar-legacy-0c52b7af-1731319840132.js","./index-legacy-aabee6fc-1731319840132.js","./use-async-legacy-12fcc473-1731319840132.js","./useECharts-legacy-7111fa42-1731319840132.js","./index-legacy-1ce90d5a-1731319840132.js","./urlUtils-legacy-0ad6488a-1731319840132.js","./catchData-legacy-4a4f9fbe-1731319840132.js","./index-legacy-d4c4a717-1731319840132.js","./index-legacy-c34f7809-1731319840132.js","./Slider-legacy-cbf44307-1731319840132.js","./index-legacy-8b2185d7-1731319840132.js","./icon_default-legacy-fa9bb009-1731319840132.js","./useSpeak-legacy-04e21ea5-1731319840132.js","./api-legacy-605ba057-1731319840132.js","./icon-pan-legacy-9492b61b-1731319840132.js","./api-legacy-a9e15595-1731319840132.js","./Cascader-legacy-17668143-1731319840132.js"],(function(e,a){"use strict";var t,l,n,s,r,u,i,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,E,M,H,R,B,q,F,W,$,V,O,z,J,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,p=e.f,m=e.N,g=e.aB,v=e.aC,f=e.g,y=e.h,h=e.I,b=e.x,I=e.j,w=e.k,T=e.l,D=e.m,x=e.E,k=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=e.P,M=e.E},e=>{H=e.s},e=>{R=e.a,B=e.r,q=e.b},e=>{F=e.g,W=e.c},e=>{$=e.C},e=>{V=e.P},e=>{O=e.C},e=>{z=e.g,J=e.a,P=e.b},e=>{K=e.t},e=>{_=e.n,Q=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,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(),x=i(!1),k=i(F()),C=i([]),j=i(e.studentInfo.historyClassStudent||""),N=()=>e.studentInfo.currentGradeNum?-1===k.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 B({...e.studentInfo,...S}),U.disabled=!0,t.success("修改成功"),l.value=!1,x.value=!1}catch(n){l.value=!1}}))},G=async()=>{try{const{data:e}=await R({}),a=[{label:e+1,value:e+1},{label:e,value:e}];C.value=a}catch{}},E=e=>!e||/^\d+$/.test(e);return()=>p("div",{class:H.infoWrap},[p("div",{class:H.setInfo},[p(m,{ref:s,model:S,disabled:U.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:!U.disabled,placeholder:"请填写学生姓名",value:S.nickname,"onUpdate:value":e=>S.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:E,bordered:!U.disabled,placeholder:"请填写学生手机号",value:S.phone,"onUpdate:value":e=>S.phone=e},null)]})]}),p(v,null,{default:()=>[p(f,{label:"性别",path:"sex"},{default:()=>[p(h,{bordered:!U.disabled,class:H.select,showArrow:!U.disabled,placeholder:"请选择性别",options:n.sexs,value:S.gender,"onUpdate:value":e=>S.gender=e},null)]})]}),p(v,null,{default:()=>[p(f,{label:"学年",path:""},{default:()=>[p(h,{bordered:!U.disabled,class:H.select,showArrow:!U.disabled,placeholder:"请选择学年",options:C.value,value:S.gradeYear,"onUpdate:value":e=>S.gradeYear=e},null)]})]}),p(v,null,{default:()=>[p(f,{label:"年级",path:""},{default:()=>[p(h,{bordered:!U.disabled,class:H.select,showArrow:!U.disabled,placeholder:"请选择年级",options:k.value,value:S.currentGradeNum,"onUpdate:value":e=>S.currentGradeNum=e},null)]})]}),p(v,null,{default:()=>[p(f,{label:"班级",path:""},{default:()=>[p(h,{bordered:!U.disabled,class:H.select,showArrow:!U.disabled,placeholder:"请选择班级",options:L.value,value:S.currentClass,"onUpdate:value":e=>S.currentClass=e},null)]})]})]})]})]),U.disabled?!S.upgradeFlag&&p(b,{class:H.btnList,align:"center",justify:"end"},{default:()=>[p(I,{class:H.btn,strong:!0,color:"#f24433",disabled:!!j.value,onClick:()=>U.disabled=!1},{default:()=>[w("修改信息")]})]}):p(b,{class:H.btnList,align:"center",justify:"end"},{default:()=>[p(I,{class:H.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("取消")]}),p(I,{class:H.btn,type:"primary",onClick:()=>x.value=!0},{default:()=>[w("完成")]})]}),p(T,{maskClosable:D,show:x.value,"onUpdate:show":e=>x.value=e,preset:"card",class:["modalTitle",H.removeVisiable],title:"确认修改"},{default:()=>[p("div",{class:H.studentRemove},[p("p",null,[w("是否确认修改学员信息")]),p(b,{class:H.btnGroup,justify:"center"},{default:()=>[p(I,{round:!0,type:"primary",onClick:A,loading:l.value},{default:()=>[w("确定")]}),p(I,{round:!0,onClick:()=>x.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)})),()=>p("div",{class:[t.trainingDetails]},[p(x,{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(k,{class:t.studentHeaderImg,src:u.value.teacherAvatar?u.value.teacherAvatar:U,previewDisabled:!0},null)])]),p("div",{class:t.workafterInfo},[p("h4",null,[u.value.teacherName," ",p("div",{class:[t.workafterInfoDot,t.workafterTeacherInfoDot]},[w("老师")])]),p("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?p(k,{previewDisabled:!0,class:t.workStatus,src:_},null):null,"SUBMITTED"==u.value.trainingStatus?p(k,{previewDisabled:!0,class:t.workStatus,src:Q},null):null,"TARGET"==u.value.trainingStatus?p(k,{previewDisabled:!0,class:t.workStatus,src:X},null):null]),u.value.expireFlag&&p(I,{onClick:()=>s.value=!0,class:t.commentBtnGroup},{default:()=>[p("div",{class:t.text},[p("i",{class:u.value.comment&&t.look},null),u.value.comment?"修改点评":"点评作业"])]})]),(u.value.fileExpireDay||0)>0&&p("div",{class:t.expireDateTip},[p("i",{class:t.expireDateIcon},null),p("span",null,[w("作业截止"),u.value.fileExpireDay||0,w("天后,学生上传的文件将过期,请及时查看")])]),p(te,{style:"max-height:400px;min-height: 260px;",trigger:"none"},{default:()=>[p("div",{class:t.workList},[u.value.studentLessonTrainingDetails.map((e=>p(Z,{style:{marginBottom:"20px"},item:{...e,studentName:u.value.studentName}},null)))]),u.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},[u.value.comment])])]})]}),p(T,{maskClosable:D,show:s.value,"onUpdate:show":e=>s.value=e},{default:()=>[p(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([z((new Date).getTime()),J((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=[z((new Date).getTime()),J((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 q({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=>p("div",null,["UNSUBMITTED"==e.trainingStatus?p("p",{class:H.nosub,style:{color:"#aaa"}},[w("未提交")]):null,"SUBMITTED"==e.trainingStatus?p("p",{style:{color:"#EA4132"},class:H.ison},[w("未达标")]):null,"TARGET"==e.trainingStatus?p("p",{class:H.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:H.searchList},[p(m,{"label-placement":"left",inline:!0},{default:()=>[p(f,null,{default:()=>[p(O,{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(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(N,{class:H.classTable,loading:e.loading,columns:o(),data:e.tableList},{empty:()=>p(le,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:u,sync:!0},null)])]),p(T,{maskClosable:D,show:e.detailVisiable,"onUpdate:show":a=>e.detailVisiable=a,preset:"card",class:["modalTitle background",H.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:""}}),u=i("baseInfo"),o=r();console.log(o.meta.isClass);const m=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)})),()=>p("div",null,[p(L,{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(k,{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(k,{previewDisabled:!0,src:s.studentInfo.gender?A:G},null)]),p("p",null,[s.studentInfo.classGroupName," ",s.studentInfo.classInstrumentName?"| "+s.studentInfo.classInstrumentName:" "])])]),p(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:()=>[p(S,{name:"baseInfo",tab:"基本信息"},{default:()=>[p(a,{studentInfo:s.studentInfo},null)]}),p(S,{name:"afterWork",tab:"课后作业"},{default:()=>[p(de,null,null)]}),p(S,{name:"textRcode",tab:"练习记录"},{default:()=>[p(E,{studentId:o.query.studentId},null)]}),p(S,{name:"evaluatingRcode",tab:"评测记录"},{default:()=>[p(M,{studentId:o.query.studentId},null)]})]})])])}}))}}}));
|