classDetail-legacy-c59c0064-1694098095353.js 18 KB

1
  1. System.register(["./index.module-legacy-f2b0f9bd-1694098095353.js","./index-legacy-04533e6e-1694098095353.js","./index-legacy-79c27364-1694098095353.js","./index-legacy-40128d88-1694098095353.js","./index-legacy-d61abab3-1694098095353.js","./index-legacy-c3e3a1d7-1694098095353.js","./api-legacy-e5a28f94-1694098095353.js","./index-legacy-d0590c68-1694098095353.js","./index-legacy-464c5fb8-1694098095353.js","./index-legacy-b8a20645-1694098095353.js","./teacherIcon-legacy-3eeb62c3-1694098095353.js","./contants-legacy-c5f4fb84-1694098095353.js","./dateFormat-legacy-c5b32416-1694098095353.js","./index-legacy-7e9eb8b4-1694098095353.js","./Slider-legacy-59524740-1694098095353.js","./isCollaose-legacy-4c1d1162-1694098095353.js","./index-legacy-53c5d0a1-1694098095353.js","./index-legacy-74685ae1-1694098095353.js","./catchData-legacy-74259154-1694098095353.js","./index-legacy-f9a6e3f8-1694098095353.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;return{setters:[e=>{t=e.s},e=>{l=e.d,n=e.b,s=e.a,i=e.u,r=e.e,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(){var a=document.createElement("style");a.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(a);const Z=l({name:"student-studentList",setup(e,{emit:a}){const l=n(),h=s(),b=i(),w=r({searchForm:{keyword:"",gender:null},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[]}),T=()=>{w.pagination.page=1,D(),console.log("search",w)},_=()=>{w.searchForm={keyword:"",gender:null},T()},D=async()=>{w.loading=!0;try{const e=await S({classGroupId:h.query.id,...w.searchForm,...w.pagination});w.tableList=e.data.rows,w.pagination.pageTotal=e.data.total,w.loading=!1}catch(e){w.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),l.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=>{b.push({path:"/classStudentDetail",query:{...h.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:w.searchForm.keyword,onChangeValue:e=>w.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:w.searchForm.gender,"onUpdate:value":e=>w.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:w.loading,columns:C(),data:w.tableList},{empty:()=>c(R,null,null)}),c(U,{page:w.pagination.page,"onUpdate:page":e=>w.pagination.page=e,pageSize:w.pagination.rows,"onUpdate:pageSize":e=>w.pagination.rows=e,pageTotal:w.pagination.pageTotal,"onUpdate:pageTotal":e=>w.pagination.pageTotal=e,onList:D,sync:!0},null)])])}}),ee=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}){r({uploading:!1});const s=h({teacherName:"",createTime:"",expireDate:"",teacherAvatar:"",studentLessonTrainingDetails:[]});n(),h();const i=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||[]}}));s.value={...a.data,studentLessonTrainingDetails:t}}catch(a){console.log(a)}};return l({getTrainingDetail:i}),o((()=>{i(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:s.value.teacherAvatar?s.value.teacherAvatar:O,previewDisabled:!0},null)])]),c("div",{class:t.workafterInfo},[c("h4",null,[s.value.teacherName," ",c("div",{class:[t.workafterInfoDot,t.workafterTeacherInfoDot]},[f("老师")])]),c("p",null,[f("开始时间:"),s.value.createTime?w(new Date(s.value.createTime)).format("YYYY-MM-DD"):"--"," ",f("| 结束时间:"),w(new Date(s.value.expireDate)).format("YYYY-MM-DD")])])])]),c($,{style:"max-height:400px",trigger:"none"},{default:()=>[c("div",{class:t.workList},[s.value.studentLessonTrainingDetails.map((e=>c(E,{style:{marginBottom:"20px"},isDisabled:!0,isDelete:!1,isCLassWork:!0,item:e},null)))])]})])}}),ae=l({name:"afterWork",setup(e,{emit:a}){const l=i(),n=s(),b=h([H((new Date).getTime()),J((new Date).getTime())]);console.log(n.query,"query");const w=r({upgradeFlag:0==n.query.upgradeFlag,searchForm:{status:null},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],addWorkVisible:!1,activeRow:null,detailVisiable:!1}),_=()=>{w.pagination.page=1,k()},D=()=>{b.value=[H((new Date).getTime()),J((new Date).getTime())],w.searchForm={status:null},_()},k=async()=>{w.loading=!0;try{const e=await M({classGroupId:n.query.id,...w.searchForm,...w.pagination,...P(b.value,["startTime","endTime"],"YYYY-MM-DD")});w.tableList=e.data.rows,w.pagination.pageTotal=e.data.total,w.loading=!1}catch(e){w.loading=!1,console.log(e)}};o((()=>{k()}));const C=e=>{console.log(e),l.push({path:"/afterWorkDetail",query:{...n.query,teacherName:e.teacherName,trainingId:e.id}})},I=e=>{w.activeRow=e,w.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:b.value,"onUpdate:value":e=>b.value=e,separator:"至",type:"daterange",timerValue:b.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:w.searchForm.status,"onUpdate:value":e=>w.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("重置")]})]})]})]})]),!w.upgradeFlag&&c(m,{class:t.addBtn,type:"primary",onClick:()=>w.addWorkVisible=!0},{default:()=>[f("布置作业")]}),c("div",{class:t.tableWrap},[c(y,{class:t.classTable,loading:w.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:w.tableList},{empty:()=>c(R,null,null)}),c(U,{page:w.pagination.page,"onUpdate:page":e=>w.pagination.page=e,pageSize:w.pagination.rows,"onUpdate:pageSize":e=>w.pagination.rows=e,pageTotal:w.pagination.pageTotal,"onUpdate:pageTotal":e=>w.pagination.pageTotal=e,onList:k,sync:!0},null)]),c(T,{show:w.addWorkVisible,"onUpdate:show":e=>w.addWorkVisible=e,preset:"card",class:[t.attendClassModal,t.trainClassModal],title:"作业设置"},{default:()=>[c(X,{classGroupId:n.query.id,onClose:()=>{k(),w.addWorkVisible=!1}},null)]}),c(T,{show:w.detailVisiable,"onUpdate:show":e=>w.detailVisiable=e,preset:"card",class:["modalTitle background",t.wordDetailModel],title:"训练详情"},{default:()=>[c(ee,{onClose:()=>w.detailVisiable=!1,activeRow:w.activeRow},null)]})])}}),te={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"},le=l({name:"class-record",setup(){const e=s(),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=r({searchForm:{createTimer:a()},loading:!1,pagination:{page:1,rows:10,pageTotal:0},tableList:[]}),l=()=>{t.pagination.page=1,i()},n=()=>{t.searchForm={createTimer:a()},l()},i=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((()=>{i()})),()=>{let a;return c("div",null,[c("div",{class:te.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:n},{default:()=>[f("重置")]})]})]})]})]),c("div",{class:te.tableWrap},[c(g,{class:te.tableSpace},(s=a=t.tableList.map((a=>c("div",{class:te.tableContainer},[c("div",{class:te.header},[c("div",{class:te.time},[w(a.startTime).format("YYYY-MM-DD HH:mm")]),e.query.name&&c(_,{type:"primary",class:te.ntag,strong:!0},{default:()=>[e.query.name]})]),c("div",{class:te.content},[c(D,{class:te.navatar,round:!0,src:a.teacherAvatar||O},null),c("div",{class:te.userInfo},[c("h2",null,[a.teacherName]),c("p",null,[a.subjectName&&c("span",{class:te.subjectName},[a.subjectName]),a.lessonCourseware.lessonCoursewareName,f(" |")," ",a.lessonCourseware.lessonCoursewareDetailName,f("|")," ",a.lessonCourseware.lessonCoursewareKnowledgeDetailName])])])]))),"function"==typeof s||"[object Object]"===Object.prototype.toString.call(s)&&!k(s)?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:i,sync:!0,saveKey:"classRecord-key"},null),t.tableList.length<=0&&c(R,{class:te.nowEmpty},null)])]);var s}}}),ne=l({name:"student-studentList",setup(e,{emit:a}){const l=r({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}),n=s(),b=i(),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:n.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:n.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:{...n.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"),a=h(e||"student");sessionStorage.removeItem("classDetailTabs");const l=s(),n=h([{name:"班级管理",path:"/classList"},{name:l.query.name,path:"/classDetail"}]);return()=>c("div",null,[c(L,{list:n.value},null),c("div",{class:[t.listWrap,t.infoListWrap]},[c(F,{class:t.customTabs,value:a.value,"onUpdate:value":e=>a.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(Z,null,null)]}),c(j,{name:"afterWork",tab:"课后作业"},{default:()=>[c(ae,null,null)]}),c(j,{name:"practice",tab:"练习记录"},{default:()=>[c(ne,null,null)]}),c(j,{name:"attendclass",tab:"上课记录"},{default:()=>[c(le,null,null)]})]})])])}}))}}}));