index-legacy-930412a6-1694675857467.js 22 KB

1
  1. System.register(["./index.module-legacy-f2b0f9bd-1694675857467.js","./index-legacy-8f1f6af3-1694675857467.js","./index-legacy-fb7874d8-1694675857467.js","./index-legacy-c263b526-1694675857467.js","./api-legacy-b09a49ad-1694675857467.js","./index-legacy-35b1c5cd-1694675857467.js","./contants-legacy-71b48e08-1694675857467.js","./contants-legacy-99098f7a-1694675857467.js","./add-legacy-e7111c9d-1694675857467.js","./api-legacy-5d5580af-1694675857467.js","./index-legacy-eadbcfa4-1694675857467.js","./updateSubject-legacy-01b3c861-1694675857467.js","./api-legacy-0ccb4031-1694675857467.js","./Slider-legacy-78bcbcd3-1694675857467.js","./index-legacy-3bdd29c7-1694675857467.js","./isCollaose-legacy-fb29f84c-1694675857467.js","./index-legacy-0c2a5b9b-1694675857467.js","./index-legacy-e7ec6967-1694675857467.js","./index-legacy-14d53adc-1694675857467.js","./index-legacy-b4bde969-1694675857467.js","./catchData-legacy-0a8b2cdd-1694675857467.js","./index-legacy-d6165eed-1694675857467.js","./urlUtils-legacy-b652a21b-1694675857467.js","./ding-legacy-f3656c17-1694675857467.js","./state-legacy-96d0e3ba-1694675857467.js"],(function(e,l){"use strict";var a,t,s,n,i,o,u,d,c,r,p,g,v,h,m,y,f,b,w,C,j,x,L,k,S,R,A,I,F,G,U,B,N,T,V,E,Y,W,O,P,D,M,q,z,J,H,K,Q,Z,$,_,X,ee,le;return{setters:[e=>{a=e.s},e=>{t=e.S},e=>{s=e.C},e=>{n=e.P},e=>{i=e.a,o=e.c,u=e.g,d=e.b,c=e.r,r=e.d,p=e.e,g=e.f},e=>{v=e.d,h=e.e,m=e.b,y=e.r,f=e.f,b=e.N,w=e.g,C=e.x,j=e.w,x=e.j,L=e.k,k=e.L,S=e.n,R=e.ca,A=e.l,I=e.cb,F=e.cc,G=e.t,U=e.aU,B=e.R,N=e.M,T=e.O,V=e.S,E=e.U,Y=e.F,W=e.H,O=e.u,P=e.c9,D=e.v},e=>{M=e.N},e=>{q=e.g,z=e.c},e=>{J=e.a},e=>{H=e.g,K=e.s,Q=e.a,Z=e.b},e=>{$=e.T},e=>{_=e.U,X=e.P},e=>{ee=e.g,le=e.b},null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var l=document.createElement("style");l.textContent="._showContentWidth_1uy1t_1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n",document.head.appendChild(l);const ae=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(e,{emit:l}){const t=h({uploading:!1}),n=m(),o=y(),u=h({currentGradeNum:null,currentClass:null,subjectId:null});return()=>f("div",{class:[a.addClass]},[f(b,{"label-placement":"left",model:u,ref:o},{default:()=>[f(w,{path:"currentGradeNum",rule:[{required:!0,message:"请选择年级"}]},{default:()=>[f(s,C({style:{width:"400px"},options:e.gradeNumList,placeholder:"选择年级",clearable:!0},{value:u.currentGradeNum,"onUpdate:value":e=>u.currentGradeNum=e}),null)]}),f(w,{path:"currentClass",rule:[{required:!0,message:"请选择班级"}]},{default:()=>[f(s,C({style:{width:"400px"},options:e.classArray,placeholder:"选择班级",clearable:!0},{value:u.currentClass,"onUpdate:value":e=>u.currentClass=e}),null)]}),f(w,{path:"subjectId",rule:[{required:!0,message:"请选择声部"}]},{default:()=>[f(s,C({style:{width:"400px"},options:e.subjectList,placeholder:"选择声部",clearable:!0},{value:u.subjectId,"onUpdate:value":e=>u.subjectId=e}),null)]})]}),f(j,{class:a.btnGroup,justify:"center"},{default:()=>[f(x,{round:!0,onClick:()=>l("close")},{default:()=>[L("取消")]}),f(x,{round:!0,loading:t.uploading,onClick:()=>{o.value.validate((async e=>{if(!e){t.uploading=!0;try{await i({...u}),n.success("新增成功"),l("close"),l("getList"),t.uploading=!1}catch(a){console.log(a)}t.uploading=!1}}))},type:"primary"},{default:()=>[L("保存")]})]})])}});function te(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!U(e)}const se=v({props:{activeRow:{type:Object,default:()=>({id:""})}},name:"RestStudentBox",emits:["close","getList"],setup(e,{emit:l}){const s=m(),n=h({uploading:!1});y([]),y([]),y();const i=y([]);console.log(e.activeRow,"activeRow");const c=h({name:"",id:""}),r=y([]),p=y([]),g=y(null),v=y([]),b=y([]),w=y(null),U=y([]),B=async e=>await u({page:1,rows:999,classGroupId:e}),N=k((()=>(p.value||[]).filter((e=>-1!=e.label.indexOf(g.value||""))))),T=k((()=>(b.value||[]).filter((e=>-1!=e.label.indexOf(w.value||"")))));return S((async()=>{(async()=>{try{const l=await o({page:1,rows:9999,upgradeFlag:!0});i.value=l.data.rows.map((l=>({label:l.name,key:l.id,disabled:l.id==e.activeRow.id}))),i.value[0].disabled?(c.name=i.value[1].label,c.id=i.value[1].key):(c.name=i.value[0].label,c.id=i.value[0].key);const a=await B(c.id);b.value=a.data.rows.map((e=>({label:e.nickname+"("+e.id+")",value:e.id})))}catch(l){console.log(l)}})();const l=await B(e.activeRow.id);p.value=l.data.rows.map((e=>({label:e.nickname+"("+e.id+")",value:e.id})))})),()=>{let o,u;return f("div",{class:[a.container,a.resetStudentWrap]},[f("div",{class:a.studentTransfer},[f("div",{class:a.studentTransferList},[f("div",{class:a.studentLeft},[f("div",{class:a.listTop},[f("p",null,[e.activeRow.name]),f("span",null,[L("(当前班级)")])]),f("div",{class:a.listCore},[f(R,{class:a.chioseCheckAllBox},{default:()=>[f(A,{onUpdateChecked:e=>{N.value.length===r.value.length?r.value=[]:r.value=N.value.map((e=>e.value))},checked:N.value.length===r.value.length,indeterminate:r.value.length>0&&N.value.length!==r.value.length,label:"全选"},null)]}),f(R,null,{default:()=>[f(t,C({placeholder:"请输入学生姓名"},{class:a.searchInput,searchWord:g.value,onChangeValue:e=>g.value=e}),null)]}),f(M,{style:"max-height: 204px;min-height: 204px;margin-top:14px;"},{default:()=>[f(I,{value:r.value,"onUpdate:value":e=>r.value=e},te(o=N.value.map((e=>f(R,{class:a.chioseCheckBox},{default:()=>[f(A,{value:e.value,label:e.label},null)]}))))?o:{default:()=>[o]})]})]),f("div",{class:[a.bottomLeft,a.bottom]},[f("div",{class:a.bottomWrap},[L("共"),p.value.length,L("名学生")])])]),f("div",{class:a.chioseBox},[f("div",{class:[a.chioseBtn,a.chioseBtnRight],onClick:()=>(()=>{const e=p.value.filter((e=>-1!=r.value.indexOf(e.value)));if(e.length>0){const l=e.map((e=>({...e,studentId:e.value,toClassId:c.id})));U.value=U.value.filter((e=>!l.some((l=>l.value===e.value)))),U.value=U.value.concat(l)}p.value=p.value.filter((l=>!e.some((e=>e.value===l.value)))),e.forEach((e=>{b.value.push(e)})),r.value=[]})()},null),f("div",{class:a.chioseBtn,onClick:()=>(()=>{const l=b.value.filter((e=>-1!=v.value.indexOf(e.value)));if(l.length>0){const a=l.map((l=>({...l,studentId:l.value,toClassId:e.activeRow.id})));U.value=U.value.filter((e=>!a.some((l=>l.value===e.value)))),U.value=U.value.concat(a)}b.value=b.value.filter((e=>!l.some((l=>l.value===e.value)))),l.forEach((e=>{p.value.push(e)})),v.value=[],console.log(U.value," submitList.value===>")})()},null)]),f("div",{class:a.studentRight},[f("div",{class:a.listTop},[c.id?f(F,{key:"111",value:c.id,"onUpdate:value":e=>c.id=e,options:i.value,onSelect:e=>{(async e=>{i.value.forEach((l=>{l.key==e&&(c.name=l.label,c.id=l.key)}));const l=await B(e);b.value=l.data.rows.map((e=>({label:e.nickname+"("+e.id+")",value:e.id}))),console.log(U.value,"submitList.value"),b.value=b.value.filter((e=>!U.value.some((l=>l.value===e.value)))),U.value.forEach((e=>{e.toClassId==c.id&&(console.log(e.toClassId,e),b.value.push({label:e.label,value:e.value}))}))})(e)},scrollable:!0},{default:()=>[f("div",null,[c.name,f(G,{class:a.smallArrow,src:"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",previewDisabled:!0},null)])]}):null]),f("div",{class:a.listCore},[f(R,{class:a.chioseCheckAllBox},{default:()=>[f(A,{onUpdateChecked:e=>{T.value.length===v.value.length?v.value=[]:v.value=T.value.map((e=>e.value))},checked:T.value.length===v.value.length,indeterminate:v.value.length>0&&T.value.length!==v.value.length,label:"全选"},null)]}),f(R,null,{default:()=>[f(t,C({placeholder:"请输入学生姓名"},{class:a.searchInput,searchWord:w.value,onChangeValue:e=>w.value=e}),null)]}),f(M,{style:"max-height: 204px;min-height: 204px;margin-top:14px;"},{default:()=>[f(I,{value:v.value,"onUpdate:value":e=>v.value=e},te(u=T.value.map((e=>f(R,{class:a.chioseCheckBox},{default:()=>[f(A,{value:e.value,label:e.label},null)]}))))?u:{default:()=>[u]})]})]),f("div",{class:[a.bottomRight,a.bottom]},[f("div",{class:a.bottomWrap},[L("共"),b.value.length,L("名学生")])])])])]),f(j,{class:a.btnGroup,justify:"center"},{default:()=>[f(x,{round:!0,onClick:()=>l("close")},{default:()=>[L("取消")]}),f(x,{round:!0,loading:n.uploading,type:"primary",onClick:()=>{(async()=>{if(i.value.length<2)s.error("当前只有一个班级,无法调整");else if(U.value<1)l("close");else try{await d(U.value),l("close"),l("getList")}catch(e){console.log(e)}})()}},{default:()=>[L("保存")]})]})])}}}),ne=v({name:"coai-guide",emits:["close"],setup(e,{emit:l}){const a=h({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:H("class1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:B(-4),left:B(-294),width:B(648),height:B(227)},btnsStyle:{bottom:B(30),left:B(-130)},eleRectPadding:{left:7,top:7,width:14,height:14}},{ele:"",img:H("class2.png"),imgStyle:{top:B(-4),left:B(-276),width:B(515),height:B(227)},btnsStyle:{bottom:B(30),left:B(-110)},eleRectPadding:{left:7,top:7,width:14,height:14}},{ele:"",img:H("class3.png"),imgStyle:{top:B(-4),width:B(437),height:B(227),left:B(-276)},btnsStyle:{bottom:B(30),left:B(-113)},eleRectPadding:{left:7,top:7,width:14,height:14}}],step:0}),t=y(!1),s=y({});(async()=>{try{const e=await Q({guideTag:"teacher-guideInfo"});e.data?s.value=JSON.parse(e.data?.guideValue)||null:s.value={},s.value&&s.value.classGuide?t.value=!1:t.value=!0}catch(e){console.log(e)}})();const n=()=>{const e=document.getElementById(`class-${a.step}`);if(e){const l=e.getBoundingClientRect(),t=a.steps[a.step].eleRectPadding?.left||0,s=a.steps[a.step].eleRectPadding?.top||0,n=a.steps[a.step].eleRectPadding?.width||0,i=a.steps[a.step].eleRectPadding?.height||0;a.box={left:l.x-t+"px",top:l.y-s+"px",width:l.width+n+"px",height:l.height+i+"px"}}else u()},i=async e=>{try{if("classList"!==e)return;s.value?s.value.classGuide=!1:s.value={classGuide:!1};try{await Z({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(s.value)})}catch(l){console.log(l)}a.step=0,n(),t.value=!0}catch{}};S((()=>{n(),window.addEventListener("resize",o),N.on("teacher-guideInfo",(e=>i(e)))}));const o=()=>{n()};T((()=>{window.removeEventListener("resize",o),N.off("teacher-guideInfo",i)}));const u=()=>{a.step>=4?d():(a.step=a.step+1,n())},d=async()=>{s.value?s.value.classGuide=!0:s.value={classGuide:!0};try{await Z({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(s.value)})}catch(e){console.log(e)}t.value=!1};return()=>f(Y,null,[t.value?V(f("div",{"onUpdate:show":e=>t.value=e,class:["n-modal-mask","n-modal-mask-guide"]},[f("div",{class:K.content,onClick:()=>u()},[f("div",{class:K.backBtn,onClick:e=>{e.stopPropagation(),d()}},[L("跳过")]),f("div",{class:K.box,style:{...a.box,...a.steps[a.step].boxStyle},id:`modeType-${a.step}`},[a.steps.map(((e,l)=>f("div",{onClick:e=>e.stopPropagation(),class:K.item,style:"bottom"==e.type?{display:l===a.step?"":"none",left:`${e.eleRect?.left}px`,top:`-${e.imgStyle?.height}`}:{display:l===a.step?"":"none",left:`${e.eleRect?.left}px`,top:`${a.box?.height}`}},[f("img",{class:K.img,style:e.imgStyle,src:e.img},null),f("div",{class:K.btns,style:e.btnsStyle},[a.step+1==a.steps.length?f(Y,null,[f("div",{class:[K.endBtn],onClick:()=>d()},[L("完成")]),f("div",{class:K.nextBtn,onClick:()=>{a.step=0,n()}},[L("再看一遍")])]):f("div",{class:K.btn,onClick:()=>u()},[L("下一步 ("),a.step+1,L("/"),a.steps.length,L(")")])])])))])])]),[[E,t.value,"show"]]):null])}}),ie="_showContentWidth_1uy1t_1",oe=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:e=>()=>f(Y,null,[f(W,{style:{maxWidth:e.maxWidth+"px"},trigger:e.trigger,placement:e.placement,showArrow:e.showArrow,delay:500},{trigger:()=>f("p",{style:{maxWidth:e.showContentWidth+"px"},class:ie},[e.content]),default:()=>e.tipsContent||e.content})])}),ue=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(e,{emit:l}){const t=h({uploading:!1}),n=m(),i=y(),o=h({currentGradeNum:null,currentClass:null,subjectId:null,id:null});return S((()=>{o.currentGradeNum=e.activeRow.currentGradeNum,o.currentClass=e.activeRow.currentClass,o.subjectId=e.activeRow.subjectId,o.id=e.activeRow.id})),()=>f("div",{class:[a.addClass]},[f(b,{"label-placement":"left",model:o,ref:i},{default:()=>[f(w,{path:"subjectId",rule:[{required:!0,message:"请选择声部"}]},{default:()=>[f(s,C({style:{width:"400px"},options:e.subjectList,placeholder:"选择声部",clearable:!0},{value:o.subjectId,"onUpdate:value":e=>o.subjectId=e}),null)]})]}),f(j,{class:a.btnGroup,justify:"center"},{default:()=>[f(x,{round:!0,onClick:()=>l("close")},{default:()=>[L("取消")]}),f(x,{round:!0,loading:t.uploading,onClick:()=>{i.value.validate((async e=>{if(!e){t.uploading=!0;try{await c({...o}),n.success("修改成功"),l("close"),l("getList"),t.uploading=!1}catch(a){console.log(a)}t.uploading=!1}}))},type:"primary"},{default:()=>[L("保存")]})]})])}});e("default",v({name:"class-classList",setup(e,{emit:l}){const i=h({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:[]}),u=y(),d=m(),c=O(),v=()=>{i.pagination.page=1,I(),console.log("search",i)},k=y(!1);i.gradeNumList=q();const R=()=>{i.searchForm={keyword:null,currentClass:null,currentGradeNum:null,subjectId:null,gradeYear:null,gradeLevel:""},i.popSelectYearList.length>0&&(i.searchForm.gradeYear=i.popSelectYearList[1].id),I()},A=async()=>{try{await r({ids:i.removeRow.id}),I(),d.success("删除成功"),i.removeVisiable=!1}catch(e){console.log(e)}},I=async()=>{i.loading=!0;try{const e=await o({...i.searchForm,...i.pagination});i.tableList=e.data.rows,i.pagination.pageTotal=e.data.total,i.loading=!1,setTimeout((()=>{i.tableList.length>0&&(k.value=!0)}),500)}catch(e){i.loading=!1,console.log(e)}console.log("getList")},F=e=>{i.activeRow=e,i.studentVisible=!0},U=async e=>{try{e.subjectId?c.push({path:"/prepare-lessons",query:{lastUseCoursewareId:e.lessonCoursewareId,unit:e.lessonCoursewareKnowledgeDetailId,subjectId:e.subjectId,courseScheduleSubjectId:e.courseScheduleSubjectId,preStudentNum:e.preStudentNum,name:e.name,classGroupId:e.id}}):(i.showSubjectClass=!0,i.activeRow=e)}catch(l){console.log(l)}},B=e=>{i.activeRow=e,i.showResetClass=!0},N=async e=>{i.activeRow=e,i.groupVisiable=!0},T=async()=>{console.log(i.activeRow,"row"),i.groupBtnLoading=!0;try{await g({classGroupId:i.activeRow.id}),d.success("创建成功"),i.groupVisiable=!1,await I()}catch(e){console.log(e)}i.groupBtnLoading=!1};return S((async()=>{i.loading=!0,await(async()=>{try{const{data:e}=await ee();console.log(e,"data getYearList");const l=e||[];l.forEach((e=>{e.name=e.name+"学年"})),l.unshift({id:"",name:"全部学年"}),i.popSelectYearList=l||[],l.length>0&&(i.searchForm.gradeYear=l[1].id)}catch{}})(),await(async()=>{try{const{data:e}=await le();console.log(e,"data getLevelList");const l=e||[];l.forEach((e=>{e.name=e.name+"级"})),l.unshift({id:"",name:"全部学级"}),i.popSelectLevelList=l||[],l.length>0&&(i.searchForm.gradeLevel=l[0].id)}catch{}})(),await I(),await(async()=>{const e=await p({page:1,rows:9999});i.subjectList=e.data.rows.map((e=>({value:e.id,label:e.name}))),i.subjectList.unshift({value:null,label:"选择声部"})})(),i.loading=!1})),()=>f("div",{class:a.listWrap},[f("div",{class:a.searchList},[f(b,{"label-placement":"left",inline:!0,ref:u},{default:()=>[f(w,null,{default:()=>[f(t,C({placeholder:"请输入班级名称"},{class:a.searchInput,searchWord:i.searchForm.keyword,onChangeValue:e=>i.searchForm.keyword=e}),null)]}),f(w,null,{default:()=>[f(s,C({options:i.popSelectYearList,placeholder:"选择学年",clearable:!0,inline:!0,labelField:"name",valueField:"id"},{value:i.searchForm.gradeYear,"onUpdate:value":e=>i.searchForm.gradeYear=e}),null)]}),f(w,null,{default:()=>[f(s,C({options:i.popSelectLevelList,placeholder:"选择学级",clearable:!0,inline:!0,labelField:"name",valueField:"id"},{value:i.searchForm.gradeLevel,"onUpdate:value":e=>i.searchForm.gradeLevel=e}),null)]}),f(w,null,{default:()=>[f(s,C({options:i.gradeNumList,placeholder:"选择年级",clearable:!0,inline:!0},{value:i.searchForm.currentGradeNum,"onUpdate:value":e=>i.searchForm.currentGradeNum=e}),null)]}),f(w,null,{default:()=>[f(s,C({options:z,placeholder:"选择班级",clearable:!0,inline:!0},{value:i.searchForm.currentClass,"onUpdate:value":e=>i.searchForm.currentClass=e}),null)]}),f(w,null,{default:()=>[f(s,C({options:i.subjectList,placeholder:"选择声部",clearable:!0,inline:!0},{value:i.searchForm.subjectId,"onUpdate:value":e=>i.searchForm.subjectId=e}),null)]}),f(w,null,{default:()=>[f(j,{justify:"end"},{default:()=>[f(x,{type:"primary",class:"searchBtn",onClick:v},{default:()=>[L("搜索")]}),f(x,{type:"primary",ghost:!0,class:"resetBtn",onClick:R},{default:()=>[L("重置")]})]})]})]})]),f(x,{class:a.addBtn,type:"primary",onClick:()=>i.showaddClass=!0},{default:()=>[L("创建班级")],icon:()=>f(Y,null,[f(G,{class:a.addBtnIcon,previewDisabled:!0,src:J},null)])}),f("div",{class:a.tableWrap},[f(P,{class:a.classTable,loading:i.loading,columns:[{title:"班级名称",key:"name"},{title:"学年",key:"gradeYear"},{title:"学级",key:"gradeLevel",render:e=>e.gradeLevel?`${e.gradeLevel}级`:""},{title:"班级声部",key:"subjectName"},{title:"学生人数",key:"preStudentNum"},{title:"上次学习",key:"lastStudy",width:"20%",render:e=>e.lastStudy?f(oe,{maxWidth:300,showContentWidth:300,content:e.lastStudy},null):"--"},{title:"操作",key:"id",render:(e,l)=>f("div",null,[f(j,null,{default:()=>[0==l?f("div",{id:"class-0"},[f(x,{type:"primary",text:!0,onClick:()=>{c.push({path:"/classDetail",query:{name:e.name,id:e.id,gradeYear:e.gradeYear,upgradeFlag:e.upgradeFlag?1:0}})}},{default:()=>[L("详情")]})]):f(x,{type:"primary",text:!0,onClick:()=>{c.push({path:"/classDetail",query:{name:e.name,id:e.id,gradeYear:e.gradeYear,upgradeFlag:e.upgradeFlag?1:0}})}},{default:()=>[L("详情")]}),f(x,{type:"primary",disabled:!e.upgradeFlag,text:!0,onClick:()=>B(e)},{default:()=>[L("修改声部")]}),f(x,0==l?C({type:"primary",disabled:!e.upgradeFlag},{id:"class-1"},{text:!0,onClick:()=>{F(e)}}):{type:"primary",disabled:!e.upgradeFlag,text:!0,onClick:()=>{F(e)}},{default:()=>[L("学生调整")]}),f(x,0==l?C({id:"class-2"},{disabled:!e.upgradeFlag,type:"primary",text:!0,onClick:()=>U(e)}):{disabled:!e.upgradeFlag,type:"primary",text:!0,onClick:()=>U(e)},{default:()=>[L("开始上课")]}),e.preStudentNum>0?null:f("p",{style:{color:"#EA4132",cursor:"pointer"},onClick:()=>{i.removeVisiable=!0,i.removeRow=e}},[L("删除")]),e.imGroupId?null:f(x,{type:"primary",disabled:!e.upgradeFlag,text:!0,onClick:()=>{N(e)}},{default:()=>[L("创建群聊")]})]})])}],data:i.tableList},{empty:()=>f($,null,null)}),f(n,{page:i.pagination.page,"onUpdate:page":e=>i.pagination.page=e,pageSize:i.pagination.rows,"onUpdate:pageSize":e=>i.pagination.rows=e,pageTotal:i.pagination.pageTotal,"onUpdate:pageTotal":e=>i.pagination.pageTotal=e,onList:I,sync:!0},null)]),f(D,{show:i.studentVisible,"onUpdate:show":e=>i.studentVisible=e,preset:"card",class:["modalTitle background",a.studentVisible],title:"学员调整"},{default:()=>[f(se,{activeRow:i.activeRow,onClose:()=>i.studentVisible=!1,onGetList:()=>I()},null)]}),f(D,{show:i.showaddClass,"onUpdate:show":e=>i.showaddClass=e,style:{width:"500px"},"display-directive":"if",preset:"card",class:["modalTitle background"],title:"创建班级"},{default:()=>[f(ae,{gradeNumList:i.gradeNumList,classArray:z,subjectList:i.subjectList,onGetList:()=>I(),onClose:()=>i.showaddClass=!1},null)]}),f(D,{show:i.showResetClass,"onUpdate:show":e=>i.showResetClass=e,style:{width:"500px"},"display-directive":"if",preset:"card",class:["modalTitle background"],title:"修改声部"},{default:()=>[f(ue,{activeRow:i.activeRow,subjectList:i.subjectList,onGetList:()=>I(),onClose:()=>i.showResetClass=!1},null)]}),f(D,{show:i.showSubjectClass,"onUpdate:show":e=>i.showSubjectClass=e,style:{width:"500px"},preset:"card",class:["modalTitle background"],title:"修改声部"},{default:()=>[i.showSubjectClass?f(_,{activeRow:i.activeRow,onGetList:()=>I(),onConfirm:e=>{c.push({path:"/prepare-lessons",query:{...e}})},onClose:()=>i.showSubjectClass=!1},null):null]}),f(X,{show:i.previewModal,"onUpdate:show":e=>i.previewModal=e,type:"attend",params:i.previewParams},null),f(D,{show:i.removeVisiable,"onUpdate:show":e=>i.removeVisiable=e,preset:"card",class:["modalTitle",a.removeVisiable],title:"删除班级"},{default:()=>[f("div",{class:a.studentRemove},[f("p",null,[L("确定要删除班级么?"),f("span",null,[L("删除班级信息将会清空")]),L("。")]),f(j,{class:a.btnGroup,justify:"center"},{default:()=>[f(x,{round:!0,type:"primary",onClick:A},{default:()=>[L("确定")]}),f(x,{round:!0,onClick:()=>i.removeVisiable=!1},{default:()=>[L("取消")]})]})])]}),f(D,{show:i.groupVisiable,"onUpdate:show":e=>i.groupVisiable=e,preset:"card",class:["modalTitle",a.removeVisiable],title:"创建群聊"},{default:()=>[f("div",{class:a.studentRemove},[f("p",{style:{textAlign:"center"}},[L("是否创建班级群聊")]),f(j,{class:a.btnGroup,justify:"center"},{default:()=>[f(x,{round:!0,type:"primary",onClick:T,loading:i.groupBtnLoading,disabled:i.groupBtnLoading},{default:()=>[L("确定")]}),f(x,{round:!0,onClick:()=>i.groupVisiable=!1},{default:()=>[L("取消")]})]})])]}),k.value?f(ne,null,null):null])}}))}}}));