1 |
- System.register(["./index.module-legacy-7b43c8af-1694078809672.js","./index-legacy-da1c415f-1694078809672.js","./index-legacy-18a26f43-1694078809672.js","./index-legacy-621a1631-1694078809672.js","./index-legacy-858c391e-1694078809672.js","./index-legacy-d08d9fff-1694078809672.js","./api-legacy-86f8b9e5-1694078809672.js","./index-legacy-29bcc766-1694078809672.js","./index-legacy-97420f2b-1694078809672.js","./index-legacy-a9b7951a-1694078809672.js","./teacherIcon-legacy-3eeb62c3-1694078809672.js","./contants-legacy-4ea2bc50-1694078809672.js","./dateFormat-legacy-5de7e3c2-1694078809672.js","./index-legacy-c395b4d9-1694078809672.js","./Slider-legacy-f760b4cf-1694078809672.js","./isCollaose-legacy-ef637d9f-1694078809672.js","./index-legacy-9bf7a651-1694078809672.js","./index-legacy-69441be7-1694078809672.js","./catchData-legacy-1c3de09a-1694078809672.js","./index-legacy-c82e2503-1694078809672.js"],(function(e,a){"use strict";var t,l,n,s,i,r,o,c,u,d,p,g,m,f,y,v,h,b,w,T,_,D,k,C,I,x,F,j,L,N,Y,U,S,q,M,W,V,z,R,A,B,E,O,$,G,H,J,P,K,Q,X,Z=document.createElement("style");return Z.textContent="._tableSpace_gafsc_1{gap:.41666667vw .625vw}._tableContainer_gafsc_4{background:#F7F9FF;border-radius:.83333333vw;width:28.54166667vw;height:10.15625vw}._header_gafsc_10{display:flex;align-items:center;justify-content:space-between;padding:.83333333vw 1.04166667vw;font-size:1.04166667rem;color:#131415;line-height:1.45833333vw;border-bottom:1px solid rgba(0,0,0,.05)}._header_gafsc_10 ._time_gafsc_20{font-size:1.04166667rem;color:#131415;line-height:1.45833333vw}._header_gafsc_10 ._ntag_gafsc_25{color:#2089ff;border-radius:.3125vw;font-size:.83333333rem;--n-border: 1px solid #97C7FF;padding:.20833333vw .72916667vw}._content_gafsc_32{padding:1.04166667vw;display:flex;align-items:center}._content_gafsc_32 ._navatar_gafsc_37{width:3.125vw;height:3.125vw;border-radius:50%;padding:.10416667vw;border:1px solid #198CFE;margin-right:.78125vw;flex-shrink:0;background-color:#fff!important}._content_gafsc_32 ._userInfo_gafsc_47 h2{font-size:1.04166667rem;font-weight:600;color:#131415;line-height:1.45833333vw}._content_gafsc_32 ._userInfo_gafsc_47 p{font-size:.83333333rem;color:#777;line-height:1.35416667vw}._content_gafsc_32 ._userInfo_gafsc_47 ._subjectName_gafsc_58{font-size:.72916667rem;font-weight:400;color:#fff;background:#198CFE;border-radius:.26041667vw;padding:1px .41666667vw;margin-right:.20833333vw}._nowEmpty_gafsc_67{margin-top:5.20833333vw}\n",document.head.appendChild(Z),{setters:[e=>{t=e.s},e=>{l=e.d,n=e.e,s=e.b,i=e.a,r=e.u,o=e.n,c=e.f,u=e.N,d=e.g,p=e.x,g=e.w,m=e.j,f=e.k,y=e.c9,v=e.F,h=e.r,b=e.t,w=e.V,T=e.v,_=e.cd,D=e.ce,k=e.aU,C=e.cf,I=e.cg,x=e.ch,F=e.p,j=e.q},e=>{L=e.C},e=>{N=e.S},e=>{Y=e.C},e=>{U=e.P},e=>{S=e.h,q=e.i,M=e.j,W=e.k,V=e.l,z=e.m},e=>{R=e.T},e=>{A=e.C,B=e.N},e=>{E=e.T},e=>{O=e.d},e=>{$=e.N,G=e.e},e=>{H=e.g,J=e.a,P=e.b,K=e.c,Q=e.d},e=>{X=e.a},null,null,null,null,null,null],execute:function(){const a=l({name:"student-studentList",setup(e,{emit:a}){const l=n({searchForm:{keyword:"",gender:null},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[]}),h=s(),b=i(),w=r(),T=()=>{l.pagination.page=1,D(),console.log("search",l)},_=()=>{l.searchForm={keyword:"",gender:null},T()},D=async()=>{l.loading=!0;try{const e=await S({classGroupId:b.query.id,...l.searchForm,...l.pagination});l.tableList=e.data.rows,l.pagination.pageTotal=e.data.total,l.loading=!1}catch(e){l.loading=!1,console.log(e)}};o((()=>{D()}));const k=e=>{const a=document.createElement("input");a.value=e,document.body.appendChild(a),a.select(),a.setSelectionRange(0,a.value.length),document.execCommand("Copy"),document.body.removeChild(a),h.success("复制成功")},C=()=>[{title:"学生姓名",key:"nickname",render:e=>c("div",{style:{userSelect:"all",cursor:"pointer"},onClick:()=>k(e.nickname)},[e.nickname])},{title:"手机号",key:"phone",render:e=>c("div",{style:{userSelect:"all",cursor:"pointer"},onClick:()=>k(e.phone)},[e.phone])},{title:"性别",key:"gender",render:e=>c(v,null,[e.gender+""!="null"?"0"==e.gender?"女":"男":"--"])},{title:"操作",key:"id",render:e=>c(m,{text:!0,type:"primary",onClick:()=>(e=>{w.push({path:"/classStudentDetail",query:{...b.query,studentId:e.id,studentName:e.nickname}})})(e)},{default:()=>[f("详情")]})}];return()=>c("div",null,[c("div",{class:t.searchList},[c(u,{"label-placement":"left",inline:!0},{default:()=>[c(d,null,{default:()=>[c(N,p({placeholder:"请输入学生姓名"},{class:t.searchInput,searchWord:l.searchForm.keyword,onChangeValue:e=>l.searchForm.keyword=e}),null)]}),c(d,null,{default:()=>[c(Y,p({options:[{label:"选择性别",value:null},{label:"男",value:"1"},{label:"女",value:"0"}],placeholder:"性别",clearable:!0,inline:!0},{value:l.searchForm.gender,"onUpdate:value":e=>l.searchForm.gender=e}),null)]}),c(d,null,{default:()=>[c(g,{justify:"end"},{default:()=>[c(m,{type:"primary",class:"searchBtn",onClick:T},{default:()=>[f("搜索")]}),c(m,{type:"primary",ghost:!0,class:"resetBtn",onClick:_},{default:()=>[f("重置")]})]})]})]})]),c("div",{class:t.tableWrap},[c(y,{class:t.classTable,loading:l.loading,columns:C(),data:l.tableList},{empty:()=>c(R,null,null)}),c(U,{page:l.pagination.page,"onUpdate:page":e=>l.pagination.page=e,pageSize:l.pagination.rows,"onUpdate:pageSize":e=>l.pagination.rows=e,pageTotal:l.pagination.pageTotal,"onUpdate:pageTotal":e=>l.pagination.pageTotal=e,onList:D,sync:!0},null)])])}}),Z=l({props:{activeRow:{type:Object,default:()=>({id:""})},total:{type:Number,default:0},current:{type:Number,default:0}},name:"classTrainingDetails",emits:["close"],setup(e,{emit:a,expose:l}){n({uploading:!1});const i=h({teacherName:"",createTime:"",expireDate:"",teacherAvatar:"",studentLessonTrainingDetails:[]});s(),h();const r=async e=>{try{const a=await q({trainingId:e}),t=a.data.studentLessonTrainingDetails.map((e=>{const a=((e,a)=>{let t=[];return"EVALUATION"===e?(t=[`${G[a.evaluateDifficult]}`,"全部小节",`${a.trainingTimes}分合格`],console.log("configJson.evaluateDifficult--",t)):(t=[`${a.practiceChapterBegin}-${a.practiceChapterEnd}小节`,`速度${a.practiceSpeed}`,`${a.trainingTimes}分钟`],console.log("configJson.evaluateDifficult",t)),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}}catch(a){console.log(a)}};return l({getTrainingDetail:r}),o((()=>{r(e.activeRow.id)})),()=>c("div",{class:[t.trainingDetails]},[c("div",{class:t.studentList},[c("div",{class:t.studentHeaderWrap},[c("div",{class:t.studentHeader},[c("div",{class:t.studentHeaderBorder},[c(b,{class:t.studentHeaderImg,src:i.value.teacherAvatar?i.value.teacherAvatar:O,previewDisabled:!0},null)])]),c("div",{class:t.workafterInfo},[c("h4",null,[i.value.teacherName," ",c("div",{class:[t.workafterInfoDot,t.workafterTeacherInfoDot]},[f("老师")])]),c("p",null,[f("开始时间:"),i.value.createTime?w(new Date(i.value.createTime)).format("YYYY-MM-DD"):"--"," ",f("| 结束时间:"),w(new Date(i.value.expireDate)).format("YYYY-MM-DD")])])])]),c($,{style:"max-height:400px",trigger:"none"},{default:()=>[c("div",{class:t.workList},[i.value.studentLessonTrainingDetails.map((e=>c(E,{style:{marginBottom:"20px"},isDisabled:!0,isDelete:!1,isCLassWork:!0,item:e},null)))])]})])}}),ee=l({name:"afterWork",setup(e,{emit:a}){const l=h([H((new Date).getTime()),J((new Date).getTime())]),s=n({searchForm:{status:null},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],addWorkVisible:!1,activeRow:null,detailVisiable:!1}),b=r(),w=i(),_=()=>{s.pagination.page=1,k()},D=()=>{l.value=[H((new Date).getTime()),J((new Date).getTime())],s.searchForm={status:null},_()},k=async()=>{s.loading=!0;try{const e=await M({classGroupId:w.query.id,...s.searchForm,...s.pagination,...P(l.value,["startTime","endTime"],"YYYY-MM-DD")});s.tableList=e.data.rows,s.pagination.pageTotal=e.data.total,s.loading=!1}catch(e){s.loading=!1,console.log(e)}};o((()=>{k()}));const C=e=>{console.log(e),b.push({path:"/afterWorkDetail",query:{...w.query,teacherName:e.teacherName,trainingId:e.id}})},I=e=>{s.activeRow=e,s.detailVisiable=!0};return()=>c("div",null,[c("div",{class:t.searchList},[c(u,{"label-placement":"left",inline:!0},{default:()=>[c(d,null,{default:()=>[c(A,{value:l.value,"onUpdate:value":e=>l.value=e,separator:"至",type:"daterange",timerValue:l.value},null)]}),c(d,null,{default:()=>[c(Y,p({options:[{label:"训练状态",value:null},{label:"已结束",value:1},{label:"进行中",value:0}],placeholder:"训练状态",clearable:!0,inline:!0},{value:s.searchForm.status,"onUpdate:value":e=>s.searchForm.status=e}),null)]}),c(d,null,{default:()=>[c(g,{justify:"end"},{default:()=>[c(m,{type:"primary",class:"searchBtn",onClick:_},{default:()=>[f("搜索")]}),c(m,{type:"primary",ghost:!0,class:"resetBtn",onClick:D},{default:()=>[f("重置")]})]})]})]})]),c(m,{class:t.addBtn,type:"primary",onClick:()=>s.addWorkVisible=!0},{default:()=>[f("布置作业")]}),c("div",{class:t.tableWrap},[c(y,{class:t.classTable,loading:s.loading,columns:[{title:"布置老师",key:"teacherName"},{title:"布置时间",key:"createTime",render:e=>c(v,null,[e.createTime])},{title:"截止时间",key:"expireDate",render:e=>c(v,null,[e.expireDate])},{title:"训练状态",key:"status",render:e=>0==e.status?c("div",{class:t.indDot},[" ",c("span",null,null),f(" 进行中")]):c("div",{class:t.endDot},[c("span",null,null),f("已结束")])},{title:"布置人数",key:"expectNum"},{title:"提交人数",key:"trainingNum"},{title:"合格人数",key:"standardNum"},{title:"提交率",key:"trainingRate",render:e=>c(v,null,[e.trainingRate,f("%")])},{title:"合格率",key:"qualifiedRate",render:e=>c(v,null,[e.qualifiedRate,f("%")])},{title:"操作",key:"id",render:e=>c(g,null,{default:()=>[c(m,{text:!0,type:"primary",onClick:()=>C(e)},{default:()=>[f("详情")]}),c(m,{text:!0,type:"primary",onClick:()=>I(e)},{default:()=>[f("训练详情")]})]})}],data:s.tableList},{empty:()=>c(R,null,null)}),c(U,{page:s.pagination.page,"onUpdate:page":e=>s.pagination.page=e,pageSize:s.pagination.rows,"onUpdate:pageSize":e=>s.pagination.rows=e,pageTotal:s.pagination.pageTotal,"onUpdate:pageTotal":e=>s.pagination.pageTotal=e,onList:k,sync:!0},null)]),c(T,{show:s.addWorkVisible,"onUpdate:show":e=>s.addWorkVisible=e,preset:"card",class:[t.attendClassModal,t.trainClassModal],title:"作业设置"},{default:()=>[c(X,{classGroupId:w.query.id,onClose:()=>{k(),s.addWorkVisible=!1}},null)]}),c(T,{show:s.detailVisiable,"onUpdate:show":e=>s.detailVisiable=e,preset:"card",class:["modalTitle background",t.wordDetailModel],title:"训练详情"},{default:()=>[c(Z,{onClose:()=>s.detailVisiable=!1,activeRow:s.activeRow},null)]})])}}),ae={tableSpace:"_tableSpace_gafsc_1",tableContainer:"_tableContainer_gafsc_4",header:"_header_gafsc_10",time:"_time_gafsc_20",ntag:"_ntag_gafsc_25",content:"_content_gafsc_32",navatar:"_navatar_gafsc_37",userInfo:"_userInfo_gafsc_47",subjectName:"_subjectName_gafsc_58",nowEmpty:"_nowEmpty_gafsc_67"},te=l({name:"class-record",setup(){const e=i(),a=()=>{const a=e.query.gradeYear;if(a){const e=`${a}-9-1`,t=`${Number(a)+1}-8-31`;return[w(e).valueOf(),w(t).valueOf()]}{const e=w().format("YYYY-MM-DD");return[w(e).subtract(1,"month").valueOf(),w(e).valueOf()]}},t=n({searchForm:{createTimer:a()},loading:!1,pagination:{page:1,rows:10,pageTotal:0},tableList:[]}),l=()=>{t.pagination.page=1,r()},s=()=>{t.searchForm={createTimer:a()},l()},r=async()=>{t.loading=!0;try{const{data:a}=await W({classGroupId:e.query.id,...C(t.searchForm.createTimer,["startTime","endTime"],"YYYY-MM-DD"),...t.pagination}),l=a.rows||[];l.forEach((e=>{e.lessonCourseware=e.lessonCoursewareJson?JSON.parse(e.lessonCoursewareJson):{}})),t.tableList=l,t.pagination.pageTotal=a.total,t.loading=!1}catch(a){t.loading=!1}};return o((()=>{r()})),()=>{let a;return c("div",null,[c("div",{class:ae.searchList},[c(u,{"label-placement":"left",inline:!0},{default:()=>[c(d,null,{default:()=>[c(A,{value:t.searchForm.createTimer,"onUpdate:value":e=>t.searchForm.createTimer=e,timerValue:t.searchForm.createTimer,separator:"至",type:"daterange"},null)]}),c(d,null,{default:()=>[c(g,{justify:"end"},{default:()=>[c(m,{type:"primary",class:"searchBtn",onClick:l},{default:()=>[f("搜索")]}),c(m,{type:"primary",ghost:!0,class:"resetBtn",onClick:s},{default:()=>[f("重置")]})]})]})]})]),c("div",{class:ae.tableWrap},[c(g,{class:ae.tableSpace},(n=a=t.tableList.map((a=>c("div",{class:ae.tableContainer},[c("div",{class:ae.header},[c("div",{class:ae.time},[w(a.startTime).format("YYYY-MM-DD HH:mm")]),e.query.name&&c(_,{type:"primary",class:ae.ntag,strong:!0},{default:()=>[e.query.name]})]),c("div",{class:ae.content},[c(D,{class:ae.navatar,round:!0,src:a.teacherAvatar||O},null),c("div",{class:ae.userInfo},[c("h2",null,[a.teacherName]),c("p",null,[a.subjectName&&c("span",{class:ae.subjectName},[a.subjectName]),a.lessonCourseware.lessonCoursewareName,f(" |")," ",a.lessonCourseware.lessonCoursewareDetailName,f("|")," ",a.lessonCourseware.lessonCoursewareKnowledgeDetailName])])])]))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!k(n)?a:{default:()=>[a]})),t.tableList.length>0&&c(U,{page:t.pagination.page,"onUpdate:page":e=>t.pagination.page=e,pageSize:t.pagination.rows,"onUpdate:pageSize":e=>t.pagination.rows=e,pageTotal:t.pagination.pageTotal,"onUpdate:pageTotal":e=>t.pagination.pageTotal=e,onList:r,sync:!0,saveKey:"classRecord-key"},null),t.tableList.length<=0&&c(R,{class:ae.nowEmpty},null)])]);var n}}}),le=l({name:"student-studentList",setup(e,{emit:a}){const l=n({searchForm:{keyword:"",trainingStatus:null,vipFlag:null},searchWord:"",orchestraType:null,courseTypeCode:null,subjectId:null,classId:null,studentType:null,loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],memberNumber:0,testInfo:{practiceDurationAvg:0,vipUserCount:0,practiceUserCount:0},activeRow:null}),s=i(),b=r(),w=()=>{l.pagination.page=1,D()},T=h([H((new Date).getTime()),J((new Date).getTime())]),_=()=>{T.value=[H((new Date).getTime()),J((new Date).getTime())],l.searchForm={keyword:"",trainingStatus:null,vipFlag:null},w()},D=async()=>{l.loading=!0;try{const e=await V({classGroupId:s.query.id,...l.searchForm,...l.pagination,...P(T.value,["startTime","endTime"],"YYYY-MM-DD")});l.tableList=e.data.rows,l.pagination.pageTotal=e.data.total,l.loading=!1}catch(e){l.loading=!1,console.log(e)}};o((()=>{(async()=>{try{const e=await z({classGroupId:s.query.id,...P(T.value,["startTime","endTime"],"YYYY-MM-DD")});l.testInfo.practiceDurationAvg=e.data.practiceDurationAvg,l.testInfo.practiceUserCount=e.data.practiceUserCount,l.testInfo.vipUserCount=e.data.vipUserCount}catch(e){console.log(e)}})(),D()}));const k=()=>[{title:"姓名",key:"studentName"},{title:"手机号",key:"studentPhone"},{title:"性别",key:"sex",render:e=>c(v,null,[e.gender+""!="null"?"0"==e.gender?"女":"男":"--"])},{title:"学生类型",key:"studentType",render:e=>c(v,null,[e.vipFlag?"会员":"普通"])},{title:"练习天数",key:"practiceDays",render:e=>c(v,null,[e.practiceDays?e.practiceDays:0,f("天")])},{title:"练习时长",key:"studentType",render:e=>c(v,null,[e.practiceDuration?K(e.practiceDuration)>0?K(e.practiceDuration)+"分"+Q(e.practiceDuration)+"秒":Q(e.practiceDuration)+"秒":0])},{title:"操作",key:"id",render:e=>c(m,{text:!0,type:"primary",onClick:()=>{(e=>{b.push({path:"/classStudentRecode",query:{...s.query,studentId:e.studentId,studentName:e.studentName}})})(e)}},{default:()=>[f("详情")]})}];return()=>c("div",null,[c("div",{class:t.searchList},[c(u,{"label-placement":"left",inline:!0},{default:()=>[c(d,null,{default:()=>[c(N,p({placeholder:"请输入学生姓名"},{class:t.searchInput,searchWord:l.searchForm.keyword,onChangeValue:e=>l.searchForm.keyword=e}),null)]}),c(d,null,{default:()=>[c(Y,p({options:[{label:"学生类型",value:null},{label:"会员",value:!0},{label:"普通",value:!1}],placeholder:"学生类型",clearable:!0,inline:!0},{value:l.searchForm.vipFlag,"onUpdate:value":e=>l.searchForm.vipFlag=e}),null)]}),c(d,null,{default:()=>[c(A,{value:T.value,"onUpdate:value":e=>T.value=e,separator:"至",type:"daterange",timerValue:T.value},null)]}),c(d,null,{default:()=>[c(g,{justify:"end"},{default:()=>[c(m,{type:"primary",class:"searchBtn",onClick:w},{default:()=>[f("搜索")]}),c(m,{type:"primary",ghost:!0,class:"resetBtn",onClick:_},{default:()=>[f("重置")]})]})]})]})]),c("div",{class:["section-container"]},[c(I,{"x-gap":"12",cols:8},{default:()=>[c(x,null,{default:()=>[c("div",{class:t.TrainDataItem},[c("div",null,[c("p",{class:t.TrainDataItemTitle},[c("span",null,[c(B,{from:0,to:l.testInfo.practiceUserCount},null)])," ",f("人")])]),c("p",{class:t.TrainDataItemsubTitle},[f("练习人数")])])]}),c(x,null,{default:()=>[c("div",{class:t.TrainDataItem},[c("p",{class:t.TrainDataItemTitle},[c("span",null,[c(B,{from:0,to:l.testInfo.vipUserCount},null)])," ",f("人")]),c("p",{class:t.TrainDataItemsubTitle},[f("会员人数")])])]}),c(x,null,{default:()=>[c("div",{class:t.TrainDataItem},[c("p",{class:t.TrainDataItemTitle},[K(l.testInfo.practiceDurationAvg)>0?c("div",null,[c("span",null,[c(B,{from:0,to:K(l.testInfo.practiceDurationAvg)},null)])," ",f("分")]):null,c("div",null,[c("span",null,[c(B,{from:0,to:Q(l.testInfo.practiceDurationAvg)},null)])," ",f("秒")])]),c("p",{class:t.TrainDataItemsubTitle},[f("平均练习时长")])])]})]})]),c("div",{class:t.tableWrap},[c(y,{class:t.classTable,loading:l.loading,columns:k(),data:l.tableList},{empty:()=>c(R,null,null)}),c(U,{page:l.pagination.page,"onUpdate:page":e=>l.pagination.page=e,pageSize:l.pagination.rows,"onUpdate:pageSize":e=>l.pagination.rows=e,pageTotal:l.pagination.pageTotal,"onUpdate:pageTotal":e=>l.pagination.pageTotal=e,onList:D,sync:!0},null)])])}});e("default",l({name:"base-setting",setup(){const e=sessionStorage.getItem("classDetailTabs"),l=h(e||"student");sessionStorage.removeItem("classDetailTabs");const n=i(),s=h([{name:"班级管理",path:"/classList"},{name:n.query.name,path:"/classDetail"}]);return()=>c("div",null,[c(L,{list:s.value},null),c("div",{class:[t.listWrap,t.infoListWrap]},[c(F,{class:t.customTabs,value:l.value,"onUpdate:value":e=>l.value=e,size:"large",animated:!1,"pane-wrapper-style":"margin: 0 -4px","pane-style":"padding-left: 4px; padding-right: 4px; box-sizing: border-box;"},{default:()=>[c(j,{name:"student",tab:"学员名单"},{default:()=>[c(a,null,null)]}),c(j,{name:"afterWork",tab:"课后作业"},{default:()=>[c(ee,null,null)]}),c(j,{name:"practice",tab:"练习记录"},{default:()=>[c(le,null,null)]}),c(j,{name:"attendclass",tab:"上课记录"},{default:()=>[c(te,null,null)]})]})])])}}))}}}));
|