index-aa22b6d5-1694078809672.js 22 KB

1
  1. import{s}from"./index.module-c55c31aa-1694078809672.js";import{S as $}from"./index-e67d25d4-1694078809672.js";import{C as G}from"./index-61124a6f-1694078809672.js";import{P as se}from"./index-1a2d0654-1694078809672.js";import{a as ue,c as ae,g as oe,b as ne,r as re,d as ie,e as ce,f as de}from"./api-89d51472-1694078809672.js";import{d as V,e as I,b as q,r as b,f as t,N as K,g as R,x as F,w as D,j as f,k as o,L as Q,n as z,ca as T,l as O,cb as Z,cc as pe,t as le,aU as ge,R as y,M as H,O as ve,S as he,U as me,F as M,J as fe,u as ye,c9 as be,v as U}from"./index-ce8959eb-1694078809672.js";import{N as _}from"./contants-ee65eda7-1694078809672.js";import{g as Ce,c as X}from"./contants-cbe26e26-1694078809672.js";import{a as we}from"./add-efe8238e-1694078809672.js";import{g as J,s as E,a as Le,b as ee}from"./api-b993eda7-1694078809672.js";import{T as Ae}from"./index-b4d77148-1694078809672.js";import{U as Se,P as Fe}from"./updateSubject-295b4626-1694078809672.js";import{g as ke,b as xe}from"./api-8191e659-1694078809672.js";import"./Slider-0c64af90-1694078809672.js";import"./index-e70021f8-1694078809672.js";import"./isCollaose-2ffd9935-1694078809672.js";import"./index-8084cfc3-1694078809672.js";import"./index-a9a10738-1694078809672.js";import"./index-a771a6b5-1694078809672.js";import"./index-04d5089f-1694078809672.js";import"./catchData-3be69512-1694078809672.js";import"./index-4ed60982-1694078809672.js";import"./urlUtils-b7caaee8-1694078809672.js";import"./ding-8e9054d5-1694078809672.js";import"./state-0273c02e-1694078809672.js";const Re=V({props:{activeRow:{type:Object,default:()=>({id:""})},gradeNumList:{type:Array,default:()=>[]},classArray:{type:Array,default:()=>[]},subjectList:{type:Array,default:()=>[]}},name:"resetStudent",emits:["close","getList"],setup(c,{emit:A}){const e=I({uploading:!1}),w=q(),r=b(),u=I({currentGradeNum:null,currentClass:null,subjectId:null}),h=()=>{r.value.validate(async v=>{if(!v){e.uploading=!0;try{const S=await ue({...u});w.success("新增成功"),A("close"),A("getList"),e.uploading=!1}catch(S){console.log(S)}e.uploading=!1}})};return()=>t("div",{class:[s.addClass]},[t(K,{"label-placement":"left",model:u,ref:r},{default:()=>[t(R,{path:"currentGradeNum",rule:[{required:!0,message:"请选择年级"}]},{default:()=>[t(G,F({style:{width:"400px"},options:c.gradeNumList,placeholder:"选择年级",clearable:!0},{value:u.currentGradeNum,"onUpdate:value":v=>u.currentGradeNum=v}),null)]}),t(R,{path:"currentClass",rule:[{required:!0,message:"请选择班级"}]},{default:()=>[t(G,F({style:{width:"400px"},options:c.classArray,placeholder:"选择班级",clearable:!0},{value:u.currentClass,"onUpdate:value":v=>u.currentClass=v}),null)]}),t(R,{path:"subjectId",rule:[{required:!0,message:"请选择声部"}]},{default:()=>[t(G,F({style:{width:"400px"},options:c.subjectList,placeholder:"选择声部",clearable:!0},{value:u.subjectId,"onUpdate:value":v=>u.subjectId=v}),null)]})]}),t(D,{class:s.btnGroup,justify:"center"},{default:()=>[t(f,{round:!0,onClick:()=>A("close")},{default:()=>[o("取消")]}),t(f,{round:!0,loading:e.uploading,onClick:()=>h(),type:"primary"},{default:()=>[o("保存")]})]})])}}),je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAATRJREFUSEtjZKAxYKSx+QyjFhAM4dEgGiRBZGxszPr+/Xuue/fufSToJAIKJCQkRF+8ePEapoxRWlpa+Oev31cYGBj4/zP8L337+vVUciwRFxfn/vvv36r//xm8GJkYZ7959SoNZA6jsLi4E8Pff3thhjIxMuW/fv1yEimWQA3f9v8/gx1U35O3b17Lgi1oaGhgmjJ12sH////bkGMJFsMZGBkY09+8eTULbAGIEBUV5fnPwLidVEuwG85U9ObNy354HMAYpFpCjOFwH5BqCbGGY1hATHCRYjhWC/BZwsTEMPfvv3/IqYWBkQE1zNFTH87CDlucMDIy3Pn/n0EFEYH4DcfpA3xxQorhBC2ABdc/BsbdDP//W5BqOFEWIOKE4cK/fwzyjEyMM9++fpVDbE4f+hUOAC9/xhn8Z6OyAAAAAElFTkSuQmCC";function te(c){return typeof c=="function"||Object.prototype.toString.call(c)==="[object Object]"&&!ge(c)}const Be=V({props:{activeRow:{type:Object,default:()=>({id:""})}},name:"RestStudentBox",emits:["close","getList"],setup(c,{emit:A}){const e=q(),w=I({uploading:!1});b([]),b([]),b();const r=b([]);console.log(c.activeRow,"activeRow");const u=I({name:"",id:""}),h=b([]),v=b([]),S=b(null),C=b([]),g=b([]),d=b(null),p=b([]),j=async()=>{try{const n=await ae({page:1,rows:9999,upgradeFlag:!0});r.value=n.data.rows.map(l=>({label:l.name,key:l.id,disabled:l.id==c.activeRow.id})),r.value[0].disabled?(u.name=r.value[1].label,u.id=r.value[1].key):(u.name=r.value[0].label,u.id=r.value[0].key);const i=await k(u.id);g.value=i.data.rows.map(l=>({label:l.nickname+"("+l.id+")",value:l.id}))}catch(n){console.log(n)}},k=async n=>await oe({page:1,rows:999,classGroupId:n}),B=async n=>{r.value.forEach(l=>{l.key==n&&(u.name=l.label,u.id=l.key)});const i=await k(n);g.value=i.data.rows.map(l=>({label:l.nickname+"("+l.id+")",value:l.id})),console.log(p.value,"submitList.value"),g.value=g.value.filter(l=>!p.value.some(P=>P.value===l.value)),p.value.forEach(l=>{l.toClassId==u.id&&(console.log(l.toClassId,l),g.value.push({label:l.label,value:l.value}))})},L=Q(()=>(v.value||[]).filter(l=>l.label.indexOf(S.value||"")!=-1)),x=Q(()=>(g.value||[]).filter(l=>l.label.indexOf(d.value||"")!=-1)),Y=()=>{L.value.length===h.value.length?h.value=[]:h.value=L.value.map(n=>n.value)},W=()=>{x.value.length===C.value.length?C.value=[]:C.value=x.value.map(n=>n.value)},a=()=>{const n=v.value.filter(i=>h.value.indexOf(i.value)!=-1);if(n.length>0){const i=n.map(l=>({...l,studentId:l.value,toClassId:u.id}));p.value=p.value.filter(l=>!i.some(P=>P.value===l.value)),p.value=p.value.concat(i)}v.value=v.value.filter(i=>!n.some(l=>l.value===i.value)),n.forEach(i=>{g.value.push(i)}),h.value=[]},m=()=>{const n=g.value.filter(i=>C.value.indexOf(i.value)!=-1);if(n.length>0){const i=n.map(l=>({...l,studentId:l.value,toClassId:c.activeRow.id}));p.value=p.value.filter(l=>!i.some(P=>P.value===l.value)),p.value=p.value.concat(i)}g.value=g.value.filter(i=>!n.some(l=>l.value===i.value)),n.forEach(i=>{v.value.push(i)}),C.value=[],console.log(p.value," submitList.value===>")},N=async()=>{if(r.value.length<2){e.error("当前只有一个班级,无法调整");return}if(p.value<1){A("close");return}try{const n=await ne(p.value);A("close"),A("getList")}catch(n){console.log(n)}};return z(async()=>{j();const n=await k(c.activeRow.id);v.value=n.data.rows.map(i=>({label:i.nickname+"("+i.id+")",value:i.id}))}),()=>{let n,i;return t("div",{class:[s.container,s.resetStudentWrap]},[t("div",{class:s.studentTransfer},[t("div",{class:s.studentTransferList},[t("div",{class:s.studentLeft},[t("div",{class:s.listTop},[t("p",null,[c.activeRow.name]),t("span",null,[o("(当前班级)")])]),t("div",{class:s.listCore},[t(T,{class:s.chioseCheckAllBox},{default:()=>[t(O,{onUpdateChecked:l=>{Y()},checked:L.value.length===h.value.length,indeterminate:h.value.length>0&&L.value.length!==h.value.length,label:"全选"},null)]}),t(T,null,{default:()=>[t($,F({placeholder:"请输入学生姓名"},{class:s.searchInput,searchWord:S.value,onChangeValue:l=>S.value=l}),null)]}),t(_,{style:"max-height: 204px;min-height: 204px;margin-top:14px;"},{default:()=>[t(Z,{value:h.value,"onUpdate:value":l=>h.value=l},te(n=L.value.map(l=>t(T,{class:s.chioseCheckBox},{default:()=>[t(O,{value:l.value,label:l.label},null)]})))?n:{default:()=>[n]})]})]),t("div",{class:[s.bottomLeft,s.bottom]},[t("div",{class:s.bottomWrap},[o("共"),v.value.length,o("名学生")])])]),t("div",{class:s.chioseBox},[t("div",{class:[s.chioseBtn,s.chioseBtnRight],onClick:()=>a()},null),t("div",{class:s.chioseBtn,onClick:()=>m()},null)]),t("div",{class:s.studentRight},[t("div",{class:s.listTop},[u.id?t(pe,{key:"111",value:u.id,"onUpdate:value":l=>u.id=l,options:r.value,onSelect:l=>{B(l)},scrollable:!0},{default:()=>[t("div",null,[u.name,t(le,{class:s.smallArrow,src:je,previewDisabled:!0},null)])]}):null]),t("div",{class:s.listCore},[t(T,{class:s.chioseCheckAllBox},{default:()=>[t(O,{onUpdateChecked:l=>{W()},checked:x.value.length===C.value.length,indeterminate:C.value.length>0&&x.value.length!==C.value.length,label:"全选"},null)]}),t(T,null,{default:()=>[t($,F({placeholder:"请输入学生姓名"},{class:s.searchInput,searchWord:d.value,onChangeValue:l=>d.value=l}),null)]}),t(_,{style:"max-height: 204px;min-height: 204px;margin-top:14px;"},{default:()=>[t(Z,{value:C.value,"onUpdate:value":l=>C.value=l},te(i=x.value.map(l=>t(T,{class:s.chioseCheckBox},{default:()=>[t(O,{value:l.value,label:l.label},null)]})))?i:{default:()=>[i]})]})]),t("div",{class:[s.bottomRight,s.bottom]},[t("div",{class:s.bottomWrap},[o("共"),g.value.length,o("名学生")])])])])]),t(D,{class:s.btnGroup,justify:"center"},{default:()=>[t(f,{round:!0,onClick:()=>A("close")},{default:()=>[o("取消")]}),t(f,{round:!0,loading:w.uploading,type:"primary",onClick:()=>{N()}},{default:()=>[o("保存")]})]})])}}}),Ee=V({name:"coai-guide",emits:["close"],setup(c,{emit:A}){const e=I({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:J("class1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:y(-4),left:y(-294),width:y(648),height:y(227)},btnsStyle:{bottom:y(30),left:y(-130)},eleRectPadding:{left:7,top:7,width:14,height:14}},{ele:"",img:J("class2.png"),imgStyle:{top:y(-4),left:y(-276),width:y(515),height:y(227)},btnsStyle:{bottom:y(30),left:y(-110)},eleRectPadding:{left:7,top:7,width:14,height:14}},{ele:"",img:J("class3.png"),imgStyle:{top:y(-4),width:y(437),height:y(227),left:y(-276)},btnsStyle:{bottom:y(30),left:y(-113)},eleRectPadding:{left:7,top:7,width:14,height:14}}],step:0}),w=b(!1),r=b({});(async()=>{var d;try{const p=await Le({guideTag:"teacher-guideInfo"});p.data?r.value=JSON.parse((d=p.data)==null?void 0:d.guideValue)||null:r.value={},r.value&&r.value.classGuide?w.value=!1:w.value=!0}catch(p){console.log(p)}})();const h=()=>{var p,j,k,B;const d=document.getElementById(`class-${e.step}`);if(d){const L=d.getBoundingClientRect(),x=((p=e.steps[e.step].eleRectPadding)==null?void 0:p.left)||0,Y=((j=e.steps[e.step].eleRectPadding)==null?void 0:j.top)||0,W=((k=e.steps[e.step].eleRectPadding)==null?void 0:k.width)||0,a=((B=e.steps[e.step].eleRectPadding)==null?void 0:B.height)||0;e.box={left:L.x-x+"px",top:L.y-Y+"px",width:L.width+W+"px",height:L.height+a+"px"}}else C()},v=async d=>{try{if(d!=="classList")return;r.value?r.value.classGuide=!1:r.value={classGuide:!1};try{await ee({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(r.value)})}catch(p){console.log(p)}e.step=0,h(),w.value=!0}catch(p){}};z(()=>{h(),window.addEventListener("resize",S),H.on("teacher-guideInfo",d=>v(d))});const S=()=>{h()};ve(()=>{window.removeEventListener("resize",S),H.off("teacher-guideInfo",v)});const C=()=>{if(e.step>=4){g();return}e.step=e.step+1,h()},g=async()=>{r.value?r.value.classGuide=!0:r.value={classGuide:!0};try{const d=await ee({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(r.value)})}catch(d){console.log(d)}w.value=!1};return()=>t(M,null,[w.value?he(t("div",{"onUpdate:show":d=>w.value=d,class:["n-modal-mask","n-modal-mask-guide"]},[t("div",{class:E.content,onClick:()=>C()},[t("div",{class:E.backBtn,onClick:d=>{d.stopPropagation(),g()}},[o("跳过")]),t("div",{class:E.box,style:{...e.box,...e.steps[e.step].boxStyle},id:`modeType-${e.step}`},[e.steps.map((d,p)=>{var j,k,B,L;return t("div",{onClick:x=>x.stopPropagation(),class:E.item,style:d.type=="bottom"?{display:p===e.step?"":"none",left:`${(j=d.eleRect)==null?void 0:j.left}px`,top:`-${(k=d.imgStyle)==null?void 0:k.height}`}:{display:p===e.step?"":"none",left:`${(B=d.eleRect)==null?void 0:B.left}px`,top:`${(L=e.box)==null?void 0:L.height}`}},[t("img",{class:E.img,style:d.imgStyle,src:d.img},null),t("div",{class:E.btns,style:d.btnsStyle},[e.step+1==e.steps.length?t(M,null,[t("div",{class:[E.endBtn],onClick:()=>g()},[o("完成")]),t("div",{class:E.nextBtn,onClick:()=>{e.step=0,h()}},[o("再看一遍")])]):t("div",{class:E.btn,onClick:()=>C()},[o("下一步 ("),e.step+1,o("/"),e.steps.length,o(")")])])])})])])]),[[me,w.value,"show"]]):null])}}),Ge="_showContentWidth_1uy1t_1",Ie={showContentWidth:Ge},Ne=V({name:"the-tooltip",props:{maxWidth:{type:Number,default:300},showContentWidth:{type:Number,default:120},tipsContent:{type:String,default:""},content:{type:String,default:""},placement:{type:String,default:"top"},showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"}},setup(c){return()=>t(M,null,[t(fe,{style:{maxWidth:c.maxWidth+"px"},trigger:c.trigger,placement:c.placement,showArrow:c.showArrow,delay:500},{trigger:()=>t("p",{style:{maxWidth:c.showContentWidth+"px"},class:Ie.showContentWidth},[c.content]),default:()=>c.tipsContent||c.content})])}}),De=V({props:{activeRow:{type:Object,default:()=>({id:""})},gradeNumList:{type:Array,default:()=>[]},classArray:{type:Array,default:()=>[]},subjectList:{type:Array,default:()=>[]}},name:"resetStudent",emits:["close","getList"],setup(c,{emit:A}){const e=I({uploading:!1}),w=q(),r=b(),u=I({currentGradeNum:null,currentClass:null,subjectId:null,id:null});z(()=>{u.currentGradeNum=c.activeRow.currentGradeNum,u.currentClass=c.activeRow.currentClass,u.subjectId=c.activeRow.subjectId,u.id=c.activeRow.id});const h=()=>{r.value.validate(async v=>{if(!v){e.uploading=!0;try{const S=await re({...u});w.success("修改成功"),A("close"),A("getList"),e.uploading=!1}catch(S){console.log(S)}e.uploading=!1}})};return()=>t("div",{class:[s.addClass]},[t(K,{"label-placement":"left",model:u,ref:r},{default:()=>[t(R,{path:"subjectId",rule:[{required:!0,message:"请选择声部"}]},{default:()=>[t(G,F({style:{width:"400px"},options:c.subjectList,placeholder:"选择声部",clearable:!0},{value:u.subjectId,"onUpdate:value":v=>u.subjectId=v}),null)]})]}),t(D,{class:s.btnGroup,justify:"center"},{default:()=>[t(f,{round:!0,onClick:()=>A("close")},{default:()=>[o("取消")]}),t(f,{round:!0,loading:e.uploading,onClick:()=>h(),type:"primary"},{default:()=>[o("保存")]})]})])}}),nt=V({name:"class-classList",setup(c,{emit:A}){const e=I({searchForm:{keyword:null,currentClass:null,currentGradeNum:null,subjectId:null,gradeYear:null,gradeLevel:""},orchestraType:null,courseTypeCode:null,loading:!1,pagination:{page:1,rows:10,pageTotal:6},gradeNumList:[],tableList:[],studentVisible:!1,activeRow:null,showaddClass:!1,goCourseVisiable:!1,removeVisiable:!1,removeRow:{},previewModal:!1,previewParams:{},lastCourse:null,groupBtnLoading:!1,subjectList:[],showResetClass:!1,showSubjectClass:!1,groupVisiable:!1,popSelectYearList:[],popSelectLevelList:[]}),w=b(),r=q(),u=ye(),h=()=>{e.pagination.page=1,g(),console.log("search",e)},v=b(!1);e.gradeNumList=Ce();const S=()=>{e.searchForm={keyword:null,currentClass:null,currentGradeNum:null,subjectId:null,gradeYear:null,gradeLevel:""},e.popSelectYearList.length>0&&(e.searchForm.gradeYear=e.popSelectYearList[0].id),g()},C=async()=>{try{await ie({ids:e.removeRow.id}),g(),r.success("删除成功"),e.removeVisiable=!1}catch(a){console.log(a)}},g=async()=>{e.loading=!0;try{const a=await ae({...e.searchForm,...e.pagination});e.tableList=a.data.rows,e.pagination.pageTotal=a.data.total,e.loading=!1,setTimeout(()=>{e.tableList.length>0&&(v.value=!0)},500)}catch(a){e.loading=!1,console.log(a)}console.log("getList")},d=async()=>{const a=await ce({page:1,rows:9999});e.subjectList=a.data.rows.map(m=>({value:m.id,label:m.name})),e.subjectList.unshift({value:null,label:"选择声部"})},p=()=>[{title:"班级名称",key:"name"},{title:"学年",key:"gradeYear"},{title:"学级",key:"gradeLevel",render(a){return a.gradeLevel?`${a.gradeLevel}级`:""}},{title:"班级声部",key:"subjectName"},{title:"学生人数",key:"preStudentNum"},{title:"上次学习",key:"lastStudy",width:"20%",render(a){return a.lastStudy?t(Ne,{maxWidth:300,showContentWidth:300,content:a.lastStudy},null):"--"}},{title:"操作",key:"id",render(a,m){return t("div",null,[t(D,null,{default:()=>[m==0?t("div",{id:"class-0"},[t(f,{type:"primary",text:!0,onClick:()=>{u.push({path:"/classDetail",query:{name:a.name,id:a.id,gradeYear:a.gradeYear}})}},{default:()=>[o("详情")]})]):t(f,{type:"primary",text:!0,onClick:()=>{u.push({path:"/classDetail",query:{name:a.name,id:a.id,gradeYear:a.gradeYear}})}},{default:()=>[o("详情")]}),t(f,{type:"primary",disabled:!a.upgradeFlag,text:!0,onClick:()=>B(a)},{default:()=>[o("修改声部")]}),m==0?t(f,F({type:"primary",disabled:!a.upgradeFlag},{id:"class-1"},{text:!0,onClick:()=>{j(a)}}),{default:()=>[o("学生调整")]}):t(f,{type:"primary",disabled:!a.upgradeFlag,text:!0,onClick:()=>{j(a)}},{default:()=>[o("学生调整")]}),m==0?t(f,F({id:"class-2"},{disabled:!a.upgradeFlag,type:"primary",text:!0,onClick:()=>k(a)}),{default:()=>[o("开始上课")]}):t(f,{disabled:!a.upgradeFlag,type:"primary",text:!0,onClick:()=>k(a)},{default:()=>[o("开始上课")]}),a.preStudentNum>0?null:t("p",{style:{color:"#EA4132",cursor:"pointer"},onClick:()=>{e.removeVisiable=!0,e.removeRow=a}},[o("删除")]),a.imGroupId?null:t(f,{type:"primary",text:!0,onClick:()=>{L(a)}},{default:()=>[o("创建群聊")]})]})])}}],j=a=>{e.activeRow=a,e.studentVisible=!0},k=async a=>{try{console.log(a,"row"),a.subjectId?u.push({path:"/prepare-lessons",query:{lastUseCoursewareId:a.lessonCoursewareId,unit:a.lessonCoursewareKnowledgeDetailId,subjectId:a.subjectId,name:a.name,classGroupId:a.id}}):(e.showSubjectClass=!0,e.activeRow=a)}catch(m){console.log(m)}},B=a=>{e.activeRow=a,e.showResetClass=!0},L=async a=>{e.activeRow=a,e.groupVisiable=!0},x=async()=>{console.log(e.activeRow,"row"),e.groupBtnLoading=!0;try{await de({classGroupId:e.activeRow.id}),r.success("创建成功"),e.groupVisiable=!1,await g()}catch(a){console.log(a)}e.groupBtnLoading=!1},Y=async()=>{try{const{data:a}=await ke();console.log(a,"data getYearList");const m=a||[];m.forEach(N=>{N.name=N.name+"学年"}),e.popSelectYearList=m||[],m.length>0&&(e.searchForm.gradeYear=m[0].id)}catch(a){}},W=async()=>{try{const{data:a}=await xe();console.log(a,"data getLevelList");const m=a||[];m.forEach(N=>{N.name=N.name+"级"}),m.unshift({id:"",name:"全部学级"}),e.popSelectLevelList=m||[],m.length>0&&(e.searchForm.gradeLevel=m[0].id)}catch(a){}};return z(async()=>{e.loading=!0,await Y(),await W(),await g(),await d(),e.loading=!1}),()=>t("div",{class:s.listWrap},[t("div",{class:s.searchList},[t(K,{"label-placement":"left",inline:!0,ref:w},{default:()=>[t(R,null,{default:()=>[t($,F({placeholder:"请输入班级名称"},{class:s.searchInput,searchWord:e.searchForm.keyword,onChangeValue:a=>e.searchForm.keyword=a}),null)]}),t(R,null,{default:()=>[t(G,F({options:e.popSelectYearList,placeholder:"选择学年",clearable:!0,inline:!0,labelField:"name",valueField:"id"},{value:e.searchForm.gradeYear,"onUpdate:value":a=>e.searchForm.gradeYear=a}),null)]}),t(R,null,{default:()=>[t(G,F({options:e.popSelectLevelList,placeholder:"选择学级",clearable:!0,inline:!0,labelField:"name",valueField:"id"},{value:e.searchForm.gradeLevel,"onUpdate:value":a=>e.searchForm.gradeLevel=a}),null)]}),t(R,null,{default:()=>[t(G,F({options:e.gradeNumList,placeholder:"选择年级",clearable:!0,inline:!0},{value:e.searchForm.currentGradeNum,"onUpdate:value":a=>e.searchForm.currentGradeNum=a}),null)]}),t(R,null,{default:()=>[t(G,F({options:X,placeholder:"选择班级",clearable:!0,inline:!0},{value:e.searchForm.currentClass,"onUpdate:value":a=>e.searchForm.currentClass=a}),null)]}),t(R,null,{default:()=>[t(G,F({options:e.subjectList,placeholder:"选择声部",clearable:!0,inline:!0},{value:e.searchForm.subjectId,"onUpdate:value":a=>e.searchForm.subjectId=a}),null)]}),t(R,null,{default:()=>[t(D,{justify:"end"},{default:()=>[t(f,{type:"primary",class:"searchBtn",onClick:h},{default:()=>[o("搜索")]}),t(f,{type:"primary",ghost:!0,class:"resetBtn",onClick:S},{default:()=>[o("重置")]})]})]})]})]),t(f,{class:s.addBtn,type:"primary",onClick:()=>e.showaddClass=!0},{default:()=>[o("创建班级")],icon:()=>t(M,null,[t(le,{class:s.addBtnIcon,previewDisabled:!0,src:we},null)])}),t("div",{class:s.tableWrap},[t(be,{class:s.classTable,loading:e.loading,columns:p(),data:e.tableList},{empty:()=>t(Ae,null,null)}),t(se,{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:g,sync:!0},null)]),t(U,{show:e.studentVisible,"onUpdate:show":a=>e.studentVisible=a,preset:"card",class:["modalTitle background",s.studentVisible],title:"学员调整"},{default:()=>[t(Be,{activeRow:e.activeRow,onClose:()=>e.studentVisible=!1,onGetList:()=>g()},null)]}),t(U,{show:e.showaddClass,"onUpdate:show":a=>e.showaddClass=a,style:{width:"500px"},"display-directive":"if",preset:"card",class:["modalTitle background"],title:"创建班级"},{default:()=>[t(Re,{gradeNumList:e.gradeNumList,classArray:X,subjectList:e.subjectList,onGetList:()=>g(),onClose:()=>e.showaddClass=!1},null)]}),t(U,{show:e.showResetClass,"onUpdate:show":a=>e.showResetClass=a,style:{width:"500px"},"display-directive":"if",preset:"card",class:["modalTitle background"],title:"修改声部"},{default:()=>[t(De,{activeRow:e.activeRow,subjectList:e.subjectList,onGetList:()=>g(),onClose:()=>e.showResetClass=!1},null)]}),t(U,{show:e.showSubjectClass,"onUpdate:show":a=>e.showSubjectClass=a,style:{width:"500px"},preset:"card",class:["modalTitle background"],title:"修改声部"},{default:()=>[e.showSubjectClass?t(Se,{activeRow:e.activeRow,onGetList:()=>g(),onConfirm:a=>{u.push({path:"/prepare-lessons",query:{...a}})},onClose:()=>e.showSubjectClass=!1},null):null]}),t(Fe,{show:e.previewModal,"onUpdate:show":a=>e.previewModal=a,type:"attend",params:e.previewParams},null),t(U,{show:e.removeVisiable,"onUpdate:show":a=>e.removeVisiable=a,preset:"card",class:["modalTitle",s.removeVisiable],title:"删除班级"},{default:()=>[t("div",{class:s.studentRemove},[t("p",null,[o("确定要删除班级么?"),t("span",null,[o("删除班级信息将会清空")]),o("。")]),t(D,{class:s.btnGroup,justify:"center"},{default:()=>[t(f,{round:!0,type:"primary",onClick:C},{default:()=>[o("确定")]}),t(f,{round:!0,onClick:()=>e.removeVisiable=!1},{default:()=>[o("取消")]})]})])]}),t(U,{show:e.groupVisiable,"onUpdate:show":a=>e.groupVisiable=a,preset:"card",class:["modalTitle",s.removeVisiable],title:"创建群聊"},{default:()=>[t("div",{class:s.studentRemove},[t("p",{style:{textAlign:"center"}},[o("是否创建班级群聊")]),t(D,{class:s.btnGroup,justify:"center"},{default:()=>[t(f,{round:!0,type:"primary",onClick:x,loading:e.groupBtnLoading,disabled:e.groupBtnLoading},{default:()=>[o("确定")]}),t(f,{round:!0,onClick:()=>e.groupVisiable=!1},{default:()=>[o("取消")]})]})])]}),v.value?t(Ee,null,null):null])}});export{nt as default};