1 |
- System.register(["./index.module-legacy-9d794547-1706107518515.js","./index-legacy-310cbdfe-1706107518515.js","./index-legacy-cea1d51b-1706107518515.js","./index-legacy-19005bcf-1706107518515.js","./index-legacy-1afea62a-1706107518515.js","./index-legacy-719d0390-1706107518515.js","./api-legacy-b59c3524-1706107518515.js","./index-legacy-94e831cf-1706107518515.js","./index-legacy-b865baf7-1706107518515.js","./use-async-legacy-a06da289-1706107518515.js","./index-legacy-b97704f9-1706107518515.js","./index-legacy-646b8359-1706107518515.js","./teacherIcon-legacy-3eeb62c3-1706107518515.js","./api-legacy-f134c857-1706107518515.js","./dateFormat-legacy-47ff0ca5-1706107518515.js","./index-legacy-a60804ed-1706107518515.js","./api-legacy-3cc11207-1706107518515.js","./NumberAnimation-legacy-0a50295d-1706107518515.js","./api-legacy-8dbb28f7-1706107518515.js","./contants-legacy-4ccc4d54-1706107518515.js","./urlUtils-legacy-b97cda0c-1706107518515.js","./Slider-legacy-161704db-1706107518515.js","./isCollaose-legacy-9c8ffde1-1706107518515.js","./icon-collect-active-legacy-b7c75e66-1706107518515.js","./index-legacy-ddfac2b0-1706107518515.js","./index-legacy-c5b61381-1706107518515.js","./catchData-legacy-f6e61780-1706107518515.js","./index-legacy-cbf3f93a-1706107518515.js"],(function(e,a){"use strict";var t,l,n,r,s,i,o,c,u,d,p,g,m,v,y,h,f,b,w,T,_,D,F,j,k,C,I,x,N,S,L,U,Y,R,M,W,q,A,B,z,V,K,E,O,$,P,G,H,J,Z,Q,X,ee,ae,te,le,ne,re,se,ie,oe;return{setters:[e=>{t=e.s},e=>{l=e.d,n=e.b,r=e.a,s=e.u,i=e.e,o=e.y,c=e.p,u=e.f,d=e.N,p=e.g,g=e.x,m=e.w,v=e.j,y=e.k,h=e.cc,f=e.l,b=e.R,w=e.F,T=e.r,_=e.v,D=e.K,F=e.c,j=e.cg,k=e.ch,C=e.aV,I=e.G,x=e.ci,N=e.cj,S=e.q,L=e.t},e=>{U=e.C},e=>{Y=e.S},e=>{R=e.C},e=>{M=e.P},e=>{W=e.h,q=e.i,A=e.j,B=e.k,z=e.l,V=e.m,K=e.n},e=>{E=e.T},e=>{O=e.U},e=>{$=e.i,P=e.s,G=e.g,H=e.a},e=>{J=e.C},e=>{Z=e.T},e=>{Q=e.d},e=>{X=e.N,ee=e.j},e=>{ae=e.g,te=e.a,le=e.b,ne=e.c,re=e.d},e=>{se=e.a},e=>{ie=e.a},e=>{oe=e.N},null,null,null,null,null,null,null,null,null,null],execute:function(){var a=document.createElement("style");a.textContent="._tableSpace_18j6c_1{gap:.41666667vw .625vw}._tableContainer_18j6c_4{background:#F7F9FF;border-radius:.83333333vw;width:28.54166667vw;height:10.15625vw}._header_18j6c_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_18j6c_10 ._time_18j6c_20{font-size:max(1.04166667rem,14Px);color:#131415;line-height:1.45833333vw}._header_18j6c_10 ._ntag_18j6c_25{color:#2089ff;border-radius:.3125vw;font-size:max(.83333333rem,12Px);--n-border: 1px solid #97C7FF;padding:.10416667vw .72916667vw;--n-height: max(1.45833333vw, 24Px) !important}._content_18j6c_33{padding:1.04166667vw;display:flex;align-items:flex-start}._content_18j6c_33 ._navatar_18j6c_38{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_18j6c_33 ._navatar_18j6c_38 img{border-radius:50%}._content_18j6c_33 ._userInfo_18j6c_51{padding-top:.20833333vw}._content_18j6c_33 ._userInfo_18j6c_51 h2{font-size:max(1.04166667rem,14Px);font-weight:600;color:#131415;line-height:1.45833333vw}._content_18j6c_33 ._userInfo_18j6c_51 p{font-size:max(.83333333rem,12Px);color:#777;line-height:1.45833333vw}._content_18j6c_33 ._userInfo_18j6c_51 ._subjectName_18j6c_65{font-size:max(.72916667rem,11Px);font-weight:400;color:#fff;background:#198CFE;border-radius:.26041667vw;padding:.10416667vw .41666667vw;margin-right:.20833333vw}._nowEmpty_18j6c_74{margin-top:5.20833333vw}\n",document.head.appendChild(a);const ce=l({name:"student-studentList",props:{upgradeFlag:{type:Number}},setup(e){const a=n(),l=r(),T=s(),_=i({upgradeFlag:0==e.upgradeFlag,searchForm:{keyword:"",gender:"",membership:""},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],editStatus:!1,activeRow:{}});o((()=>e.upgradeFlag),(()=>{_.upgradeFlag=0==e.upgradeFlag}));const D=()=>{_.pagination.page=1,j(),P({current:_.searchForm,saveKey:"classDetailStudent"})},F=()=>{_.searchForm={keyword:"",gender:"",membership:""},D(),P({current:_.searchForm,saveKey:"classDetailStudent"})},j=async()=>{_.loading=!0;try{const e=await W({classGroupId:l.query.id,..._.searchForm,..._.pagination});_.tableList=e.data.rows,_.pagination.pageTotal=e.data.total,_.loading=!1}catch(e){_.loading=!1,console.log(e)}};$({current:_.searchForm,saveKey:"classDetailStudent",callBack:e=>{_.searchForm=e}}),c((()=>{j()}));const k=e=>{const t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),t.setSelectionRange(0,t.value.length),document.execCommand("Copy"),document.body.removeChild(t),a.success("复制成功")},C=()=>[{title:"学生姓名",key:"nickname",render:e=>u(b,{showArrow:!1,placement:"top-start"},{trigger:()=>u("div",{style:{userSelect:"all",cursor:"pointer"},onClick:()=>k(e.nickname)},[e.nickname]),default:"点击复制"})},{title:"手机号",key:"phone",render:e=>u(b,{showArrow:!1,placement:"top-start"},{trigger:()=>u("div",{style:{userSelect:"all",cursor:"pointer"},onClick:()=>k(e.phone)},[e.phone]),default:"点击复制"})},{title:"性别",key:"gender",render:e=>u(w,null,[e.gender+""!="null"?"0"==e.gender?"女":"男":"--"])},{title:"学生类型",key:"vipMember",render:e=>u(w,null,[e.vipMember?"会员":"普通"])},{title:"操作",key:"id",render:e=>u(m,null,{default:()=>[u(v,{text:!0,type:"primary",onClick:()=>(e=>{T.push({path:"/classStudentDetail",query:{...l.query,studentId:e.id,studentName:e.nickname,upgradeFlag:_.upgradeFlag?0:1}})})(e)},{default:()=>[y("详情")]}),u(v,{text:!0,type:"primary",onClick:()=>I(e)},{default:()=>[y("修改")]})]})}],I=e=>{_.editStatus=!0,_.activeRow=e};return()=>u("div",null,[u("div",{class:t.searchList},[u(d,{"label-placement":"left",inline:!0},{default:()=>[u(p,null,{default:()=>[u(Y,g({placeholder:"请输入学生姓名"},{class:t.searchInput,searchWord:_.searchForm.keyword,onChangeValue:e=>_.searchForm.keyword=e}),null)]}),u(p,null,{default:()=>[u(R,g({options:[{label:"全部性别",value:""},{label:"男",value:"1"},{label:"女",value:"0"}],placeholder:"性别",clearable:!0,inline:!0},{value:_.searchForm.gender,"onUpdate:value":e=>_.searchForm.gender=e}),null)]}),u(p,null,{default:()=>[u(R,g({options:[{label:"全部类型",value:""},{label:"会员",value:!0},{label:"普通",value:!1}],placeholder:"学生类型",clearable:!0,inline:!0},{value:_.searchForm.membership,"onUpdate:value":e=>_.searchForm.membership=e}),null)]}),u(p,null,{default:()=>[u(m,{justify:"end"},{default:()=>[u(v,{type:"primary",class:"searchBtn",onClick:D},{default:()=>[y("搜索")]}),u(v,{type:"primary",ghost:!0,class:"resetBtn",onClick:F},{default:()=>[y("重置")]})]})]})]})]),u("div",{class:t.tableWrap},[u(h,{class:t.classTable,loading:_.loading,columns:C(),data:_.tableList},{empty:()=>u(E,null,null)}),u(M,{page:_.pagination.page,"onUpdate:page":e=>_.pagination.page=e,pageSize:_.pagination.rows,"onUpdate:pageSize":e=>_.pagination.rows=e,pageTotal:_.pagination.pageTotal,"onUpdate:pageTotal":e=>_.pagination.pageTotal=e,onList:j,sync:!0},null)]),u(f,{show:_.editStatus,"onUpdate:show":e=>_.editStatus=e,class:["modalTitle background",t.updateStudent],preset:"card",title:"修改信息"},{default:()=>[u(O,{onClose:()=>_.editStatus=!1,onConfirm:()=>j(),row:_.activeRow},null)]})])}}),ue=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}){i({uploading:!1});const r=T({teacherName:"",createTime:"",expireDate:"",teacherAvatar:"",studentLessonTrainingDetails:[]});n(),T();const s=async e=>{try{const a=await q({trainingId: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,allTimes:JSON.parse(e.trainingContent).trainingTimes,typeList:a||[]}}));r.value={...a.data,studentLessonTrainingDetails:t}}catch(a){console.log(a)}};return l({getTrainingDetail:s}),c((()=>{s(e.activeRow.id)})),()=>u("div",{class:[t.trainingDetails]},[u("div",{class:t.studentList},[u("div",{class:t.studentHeaderWrap},[u("div",{class:t.studentHeader},[u("div",{class:t.studentHeaderBorder},[u(_,{class:t.studentHeaderImg,src:r.value.teacherAvatar?r.value.teacherAvatar:Q,previewDisabled:!0},null)])]),u("div",{class:t.workafterInfo},[u("h4",null,[r.value.teacherName," ",u("div",{class:[t.workafterInfoDot,t.workafterTeacherInfoDot]},[y("老师")])]),u("p",null,[y("开始时间:"),r.value.createTime?D(new Date(r.value.createTime)).format("YYYY-MM-DD"):"--"," ",y("| 结束时间:"),D(new Date(r.value.expireDate)).format("YYYY-MM-DD")])])])]),u(X,{style:"max-height:400px",trigger:"none"},{default:()=>[u("div",{class:t.workList},[r.value.studentLessonTrainingDetails.map((e=>u(Z,{style:{marginBottom:"20px"},isDisabled:!0,isDelete:!1,isCLassWork:!0,item:e},null)))])]})])}}),de=l({name:"afterWork",props:{upgradeFlag:{type:Number}},setup(e){const a=s(),l=r(),n=i({upgradeFlag:0==e.upgradeFlag,searchForm:{status:"",timer:[ae((new Date).getTime()),te((new Date).getTime())]},loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[],addWorkVisible:!1,activeRow:null,detailVisiable:!1});o((()=>e.upgradeFlag),(()=>{n.upgradeFlag=0==e.upgradeFlag}));const b=()=>{n.pagination.page=1,_(),P({current:n.searchForm,saveKey:"classDetailAfterWork"})},T=()=>{n.searchForm={status:"",timer:[ae((new Date).getTime()),te((new Date).getTime())]},b(),P({current:n.searchForm,saveKey:"classDetailAfterWork"})};$({current:n.searchForm,saveKey:"classDetailAfterWork",callBack:e=>{n.searchForm=e}});const _=async()=>{n.loading=!0;try{const{timer:e,...a}=n.searchForm,t=await A({classGroupId:l.query.id,...a,...n.pagination,...le(e,["startTime","endTime"],"YYYY-MM-DD")});n.tableList=t.data.rows,n.pagination.pageTotal=t.data.total,n.loading=!1}catch(e){n.loading=!1,console.log(e)}};c((()=>{_()}));const D=e=>{console.log(e),a.push({path:"/afterWorkDetail",query:{...l.query,teacherName:e.teacherName,trainingId:e.id}})},F=e=>{n.activeRow=e,n.detailVisiable=!0};return()=>u("div",null,[u("div",{class:t.searchList},[u(d,{"label-placement":"left",inline:!0},{default:()=>[u(p,null,{default:()=>[u(J,{value:n.searchForm.timer,"onUpdate:value":e=>n.searchForm.timer=e,separator:"至",type:"daterange",timerValue:n.searchForm.timer},null)]}),u(p,null,{default:()=>[u(R,g({options:[{label:"全部状态",value:""},{label:"已结束",value:1},{label:"进行中",value:0}],placeholder:"作业状态",clearable:!0,inline:!0},{value:n.searchForm.status,"onUpdate:value":e=>n.searchForm.status=e}),null)]}),u(p,null,{default:()=>[u(m,{justify:"end"},{default:()=>[u(v,{type:"primary",class:"searchBtn",onClick:b},{default:()=>[y("搜索")]}),u(v,{type:"primary",ghost:!0,class:"resetBtn",onClick:T},{default:()=>[y("重置")]})]})]})]})]),!n.upgradeFlag&&u(v,{class:t.addBtn,type:"primary",onClick:()=>n.addWorkVisible=!0},{default:()=>[y("布置作业")]}),u("div",{class:t.tableWrap},[u(h,{class:t.classTable,loading:n.loading,columns:[{title:"布置老师",key:"teacherName"},{title:"布置时间",key:"createTime",render:e=>u(w,null,[e.createTime])},{title:"截止时间",key:"expireDate",render:e=>u(w,null,[e.expireDate])},{title:"作业状态",key:"status",render:e=>0==e.status?u("div",{class:t.indDot},[" ",u("span",null,null),y(" 进行中")]):u("div",{class:t.endDot},[u("span",null,null),y("已结束")])},{title:"布置人数",key:"expectNum"},{title:"提交人数",key:"trainingNum"},{title:"合格人数",key:"standardNum"},{title:"提交率",key:"trainingRate",render:e=>u(w,null,[e.trainingRate,y("%")])},{title:"合格率",key:"qualifiedRate",render:e=>u(w,null,[e.qualifiedRate,y("%")])},{title:"操作",key:"id",render:e=>u(m,null,{default:()=>[u(v,{text:!0,type:"primary",onClick:()=>D(e)},{default:()=>[y("详情")]}),u(v,{text:!0,type:"primary",onClick:()=>F(e)},{default:()=>[y("作业详情")]})]})}],data:n.tableList},{empty:()=>u(E,null,null)}),u(M,{page:n.pagination.page,"onUpdate:page":e=>n.pagination.page=e,pageSize:n.pagination.rows,"onUpdate:pageSize":e=>n.pagination.rows=e,pageTotal:n.pagination.pageTotal,"onUpdate:pageTotal":e=>n.pagination.pageTotal=e,onList:_,sync:!0},null)]),u(f,{show:n.addWorkVisible,"onUpdate:show":e=>n.addWorkVisible=e,preset:"card",class:[t.attendClassModal,t.trainClassModal],title:"作业设置"},{default:()=>[u(se,{classGroupId:l.query.id,onClose:()=>{_(),n.addWorkVisible=!1}},null)]}),u(f,{show:n.detailVisiable,"onUpdate:show":e=>n.detailVisiable=e,preset:"card",class:["modalTitle background",t.wordDetailModel],title:"作业详情"},{default:()=>[u(ue,{onClose:()=>n.detailVisiable=!1,activeRow:n.activeRow},null)]})])}}),pe={tableSpace:"_tableSpace_18j6c_1",tableContainer:"_tableContainer_18j6c_4",header:"_header_18j6c_10",time:"_time_18j6c_20",ntag:"_ntag_18j6c_25",content:"_content_18j6c_33",navatar:"_navatar_18j6c_38",userInfo:"_userInfo_18j6c_51",subjectName:"_subjectName_18j6c_65",nowEmpty:"_nowEmpty_18j6c_74"},ge=l({name:"class-record",setup(){const e=F(),a=r(),t=()=>{const e=a.query.gradeYear;if(e){const a=`${e}-9-1`,t=`${Number(e)+1}-8-31`;return[D(a).valueOf(),D(t).valueOf()]}{const e=D().format("YYYY-MM-DD");return[D(e).subtract(1,"month").valueOf(),D(e).valueOf()]}},l=i({searchForm:{teacherId:"",createTimer:t()},teacherList:[],loading:!1,pagination:{page:1,rows:12,pageTotal:0},tableList:[]}),n=()=>{l.pagination.page=1,o(),P({current:l.searchForm,saveKey:"classDetailRecord"})},s=()=>{l.searchForm={teacherId:"",createTimer:t()},n(),P({current:l.searchForm,saveKey:"classDetailRecord"})};$({current:l.searchForm,saveKey:"classDetailRecord",callBack:e=>{l.searchForm=e}});const o=async()=>{l.loading=!0;try{const{data:e}=await B({classGroupId:a.query.id,teacherId:l.searchForm.teacherId,...I(l.searchForm.createTimer,["startTime","endTime"],"YYYY-MM-DD"),...l.pagination}),t=e.rows||[];t.forEach((e=>{e.lessonCourseware=e.lessonCoursewareJson?JSON.parse(e.lessonCoursewareJson):{}})),l.tableList=t,l.pagination.pageTotal=e.total,l.loading=!1}catch(e){l.loading=!1}};return c((()=>{(async()=>{try{const{data:a}=await ie({schoolId:e.info.schoolInfos?.[0]?.id,page:1,rows:1e3}),t=a.rows||[],n=[];t.forEach((e=>{n.push({label:e.nickname,value:e.id})})),l.teacherList=n}catch{}})(),o()})),()=>{let e;return u("div",null,[u("div",{class:pe.searchList},[u(d,{"label-placement":"left",inline:!0},{default:()=>[u(p,null,{default:()=>[u(R,g({options:[{label:"全部老师",value:""},...l.teacherList],placeholder:"全部老师",clearable:!0,inline:!0},{value:l.searchForm.teacherId,"onUpdate:value":e=>l.searchForm.teacherId=e}),null)]}),u(p,null,{default:()=>[u(J,{value:l.searchForm.createTimer,"onUpdate:value":e=>l.searchForm.createTimer=e,timerValue:l.searchForm.createTimer,separator:"至",type:"daterange"},null)]}),u(p,null,{default:()=>[u(m,{justify:"end"},{default:()=>[u(v,{type:"primary",class:"searchBtn",onClick:n},{default:()=>[y("搜索")]}),u(v,{type:"primary",ghost:!0,class:"resetBtn",onClick:s},{default:()=>[y("重置")]})]})]})]})]),u("div",{class:pe.tableWrap},[u(m,{class:pe.tableSpace},(t=e=l.tableList.map((e=>u("div",{class:pe.tableContainer},[u("div",{class:pe.header},[u("div",{class:pe.time},[D(e.startTime).format("YYYY-MM-DD HH:mm")]),a.query.name&&u(j,{type:"primary",class:pe.ntag,strong:!0},{default:()=>[a.query.name]})]),u("div",{class:pe.content},[u(k,{class:pe.navatar,round:!0,src:e.teacherAvatar||Q},null),u("div",{class:pe.userInfo},[u("h2",null,[e.teacherName]),u("p",null,[e.subjectName&&u("span",{class:pe.subjectName},[e.subjectName]),e.lessonCourseware.lessonCoursewareName,y(" |")," ",e.lessonCourseware.lessonCoursewareDetailName,y("|")," ",e.lessonCourseware.lessonCoursewareKnowledgeDetailName])])])]))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!C(t)?e:{default:()=>[e]})),l.tableList.length>0&&u(M,{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:o,pageSizes:[12,24,36,48],sync:!0,saveKey:"classRecord-key"},null),l.tableList.length<=0&&u(E,{class:pe.nowEmpty},null)])]);var t}}}),me=l({name:"student-studentList",setup(e,{emit:a}){const l=i({searchForm:{keyword:"",trainingStatus:null,vipFlag:""},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=r(),o=s(),f=()=>{l.pagination.page=1,F(),D(),P({current:{...l.searchForm,timer:b.value},saveKey:"classDetailTestRecord"})},b=T([ae((new Date).getTime()),te((new Date).getTime())]),_=()=>{b.value=[ae((new Date).getTime()),te((new Date).getTime())],l.searchForm={keyword:"",trainingStatus:null,vipFlag:""},f(),P({current:{...l.searchForm,timer:b.value},saveKey:"classDetailTestRecord"})};$({current:{...l.searchForm,timer:b.value},saveKey:"classDetailTestRecord",callBack:e=>{l.searchForm=e,b.value=e.timer}});const D=async()=>{l.loading=!0;try{const e=await z({classGroupId:n.query.id,...l.searchForm,...l.pagination,...le(b.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)}},F=async()=>{try{const e=await V({classGroupId:n.query.id,...le(b.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)}};c((()=>{F(),D()}));const j=()=>[{title:"学生姓名",key:"studentName"},{title:"手机号",key:"studentPhone"},{title:"性别",key:"sex",render:e=>u(w,null,[e.gender+""!="null"?"0"==e.gender?"女":"男":"--"])},{title:"学生类型",key:"studentType",render:e=>u(w,null,[e.vipFlag?"会员":"普通"])},{title:"练习天数",key:"practiceDays",render:e=>u(w,null,[e.practiceDays?e.practiceDays:0,y("天")])},{title:"学练时长",key:"studentType",render:e=>u(w,null,[e.practiceDuration?ne(e.practiceDuration)>0?ne(e.practiceDuration)+"分"+re(e.practiceDuration)+"秒":re(e.practiceDuration)+"秒":"0秒"])},{title:"操作",key:"id",render:e=>u(v,{text:!0,type:"primary",onClick:()=>{(e=>{o.push({path:"/classStudentRecode",query:{...n.query,studentId:e.studentId,studentName:e.studentName}})})(e)}},{default:()=>[y("详情")]})}];return()=>u("div",null,[u("div",{class:t.searchList},[u(d,{"label-placement":"left",inline:!0},{default:()=>[u(p,null,{default:()=>[u(Y,g({placeholder:"请输入学生姓名"},{class:t.searchInput,searchWord:l.searchForm.keyword,onChangeValue:e=>l.searchForm.keyword=e}),null)]}),u(p,null,{default:()=>[u(R,g({options:[{label:"全部类型",value:""},{label:"会员",value:!0},{label:"普通",value:!1}],placeholder:"学生类型",clearable:!0,inline:!0},{value:l.searchForm.vipFlag,"onUpdate:value":e=>l.searchForm.vipFlag=e}),null)]}),u(p,null,{default:()=>[u(J,{value:b.value,"onUpdate:value":e=>b.value=e,separator:"至",type:"daterange",timerValue:b.value},null)]}),u(p,null,{default:()=>[u(m,{justify:"end"},{default:()=>[u(v,{type:"primary",class:"searchBtn",onClick:f},{default:()=>[y("搜索")]}),u(v,{type:"primary",ghost:!0,class:"resetBtn",onClick:_},{default:()=>[y("重置")]})]})]})]})]),u("div",{class:["section-container"]},[u(x,{"x-gap":"12",cols:8},{default:()=>[u(N,null,{default:()=>[u("div",{class:t.TrainDataItem},[u("div",null,[u("p",{class:t.TrainDataItemTitle},[u("div",null,[u("span",null,[u(oe,{from:0,to:l.testInfo.practiceUserCount},null)])," ",y("人")])])]),u("p",{class:t.TrainDataItemsubTitle},[y("练习人数")])])]}),u(N,null,{default:()=>[u("div",{class:t.TrainDataItem},[u("p",{class:t.TrainDataItemTitle},[u("div",null,[u("span",null,[u(oe,{from:0,to:l.testInfo.vipUserCount},null)])," ",y("人")])]),u("p",{class:t.TrainDataItemsubTitle},[y("会员人数")])])]}),u(N,null,{default:()=>[u("div",{class:t.TrainDataItem},[u("p",{class:t.TrainDataItemTitle},[ne(l.testInfo.practiceDurationAvg)>0?u("div",null,[u("span",null,[u(oe,{from:0,to:ne(l.testInfo.practiceDurationAvg)},null)])," ",y("分")]):null,u("div",null,[u("span",null,[u(oe,{from:0,to:re(l.testInfo.practiceDurationAvg)},null)])," ",y("秒")])]),u("p",{class:t.TrainDataItemsubTitle},[y("平均每天练习时长")])])]})]})]),u("div",{class:t.tableWrap},[u(h,{class:t.classTable,loading:l.loading,columns:j(),data:l.tableList},{empty:()=>u(E,null,null)}),u(M,{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=T(e||"student");sessionStorage.removeItem("classDetailTabs");const l=r(),n=T([{name:"班级管理",path:"/classList"},{name:l.query.name,path:"/classDetail"}]);G((e=>{e.form.tabName&&(a.value=e.form.tabName)}));const s=T();return(async()=>{try{const e=l.query.id,{data:a}=await K({id:e});s.value=a.upgradeFlag?1:0}catch{}})(),()=>u("div",null,[u(U,{list:n.value},null),u("div",{class:[t.listWrap,t.infoListWrap]},[u(S,{class:t.customTabs,value:a.value,"onUpdate:value":[e=>a.value=e,e=>(e=>{H(e,"tabName",l)})(e)],size:"large",animated:!1,"pane-wrapper-style":"margin: 0 -4px","pane-style":"padding-left: 4px; padding-right: 4px; box-sizing: border-box;"},{default:()=>[u(L,{name:"student",tab:"学员名单"},{default:()=>[u(ce,{upgradeFlag:s.value},null)]}),u(L,{name:"afterWork",tab:"课后作业"},{default:()=>[u(de,{upgradeFlag:s.value},null)]}),u(L,{name:"practice",tab:"练习记录"},{default:()=>[u(me,null,null)]}),u(L,{name:"attendclass",tab:"上课记录"},{default:()=>[u(ge,null,null)]})]})])])}}))}}}));
|