1 |
- System.register(["./index.module-legacy-f2b0f9bd.js","./index-legacy-a3b32e5b.js","./index-legacy-f6de2914.js","./index-legacy-9dee027a.js","./api-legacy-ca1ef0b5.js","./index-legacy-e6915333.js","./contants-legacy-ab23b556.js","./isCollaose-legacy-b7bb52fc.js","./index-legacy-100d2f8c.js","./contants-legacy-9b3e1d7e.js","./add-legacy-e7111c9d.js","./api-legacy-984482a4.js","./index-legacy-4b97f804.js","./index-legacy-02388a04.js","./state-legacy-a50c6b91.js","./api-legacy-4f317088.js","./Slider-legacy-561576a7.js","./index-legacy-c8ec54dc.js","./index-legacy-1934f85c.js","./index-legacy-f8475cd7.js","./index-legacy-4cea3135.js","./index-legacy-d0eedf52.js","./urlUtils-legacy-b652a21b.js","./ding-legacy-f3656c17.js"],(function(e,l){"use strict";var a,t,s,n,i,o,u,d,c,r,p,g,v,h,m,y,f,w,b,C,x,k,j,A,L,R,S,I,U,V,G,B,E,T,N,W,P,F,O,M,q,D,Y,z,J,K,H,Q,Z,$,_,X,ee,le,ae,te,se,ne,ie;return{setters:[e=>{a=e.s},e=>{t=e.S},e=>{s=e.C},e=>{n=e.P},e=>{i=e.b,o=e.c,u=e.a,d=e.d,c=e.g,r=e.e},e=>{p=e.d,g=e.e,v=e.b,h=e.r,m=e.f,y=e.N,f=e.g,w=e.w,b=e.v,C=e.j,x=e.k,k=e.a0,j=e.n,A=e.cl,L=e.l,R=e.cm,S=e.cn,I=e.y,U=e.b4,V=e.u,G=e.J,B=e.M,E=e.K,T=e.a4,N=e.a5,W=e.F,P=e.H,F=e.m,O=e.ck,M=e.t,q=e.O},e=>{D=e.N},e=>{Y=e.u,z=e.q,J=e.c,K=e.l,H=e.b},e=>{Q=e.u},e=>{Z=e.g,$=e.c},e=>{_=e.a},e=>{X=e.g,ee=e.s,le=e.a,ae=e.b},e=>{te=e.T},e=>{se=e.P},e=>{ne=e.s},e=>{ie=e.a},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 oe=p({props:{activeRow:{type:Object,default:()=>({id:""})},gradeNumList:{type:Array,default:()=>[]},classArray:{type:Array,default:()=>[]}},name:"resetStudent",emits:["close","getList"],setup(e,{emit:l}){const t=g({uploading:!1}),n=v(),o=h(),u=g({currentGradeNum:null,currentClass:null});return()=>m("div",{class:[a.addClass]},[m(y,{"label-placement":"left",model:u,ref:o},{default:()=>[m(f,{path:"currentGradeNum",rule:[{required:!0,message:"请选择年级"}]},{default:()=>[m(s,w({style:{width:"400px"},options:e.gradeNumList,placeholder:"选择年级",clearable:!0},{value:u.currentGradeNum,"onUpdate:value":e=>u.currentGradeNum=e}),null)]}),m(f,{path:"currentClass",rule:[{required:!0,message:"请选择班级"}]},{default:()=>[m(s,w({style:{width:"400px"},options:e.classArray,placeholder:"选择班级",clearable:!0},{value:u.currentClass,"onUpdate:value":e=>u.currentClass=e}),null)]})]}),m(b,{class:a.btnGroup,justify:"center"},{default:()=>[m(C,{round:!0,onClick:()=>l("close")},{default:()=>[x("取消")]}),m(C,{round:!0,loading:t.uploading,onClick:()=>(t.uploading=!0,void o.value.validate((async e=>{if(console.log(u),console.log(e),!e)try{await i({...u}),n.success("新增成功"),l("close"),l("getList"),t.uploading=!1}catch(a){t.uploading=!1,console.log(a)}}))),type:"primary"},{default:()=>[x("保存")]})]})])}});function ue(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!U(e)}const de=p({props:{activeRow:{type:Object,default:()=>({id:""})}},name:"RestStudentBox",emits:["close","getList"],setup(e,{emit:l}){const s=v(),n=g({uploading:!1});h([]),h([]),h();const i=h([]);console.log(e.activeRow,"activeRow");const c=g({name:"",id:""}),r=h([]),p=h([]),y=h(null),f=h([]),U=h([]),V=h(null),G=h([]),B=async e=>await u({page:1,rows:999,classGroupId:e}),E=k((()=>(p.value||[]).filter((e=>-1!=e.label.indexOf(y.value||""))))),T=k((()=>(U.value||[]).filter((e=>-1!=e.label.indexOf(V.value||"")))));return j((async()=>{(async()=>{try{const l=await o({page:1,rows:9999});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);U.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 m("div",{class:[a.container,a.resetStudentWrap]},[m("div",{class:a.studentTransfer},[m("div",{class:a.studentTransferList},[m("div",{class:a.studentLeft},[m("div",{class:a.listTop},[m("p",null,[e.activeRow.name]),m("span",null,[x("(当前班级)")])]),m("div",{class:a.listCore},[m(A,{class:a.chioseCheckAllBox},{default:()=>[m(L,{onUpdateChecked:e=>{E.value.length===r.value.length?r.value=[]:r.value=E.value.map((e=>e.value))},checked:E.value.length===r.value.length,indeterminate:r.value.length>0&&E.value.length!==r.value.length,label:"全选"},null)]}),m(A,null,{default:()=>[m(t,w({placeholder:"请输入学生姓名"},{class:a.searchInput,searchWord:y.value,onChangeValue:e=>y.value=e}),null)]}),m(D,{style:"max-height: 204px;min-height: 204px;margin-top:14px;"},{default:()=>[m(R,{value:r.value,"onUpdate:value":e=>r.value=e},ue(o=E.value.map((e=>m(A,{class:a.chioseCheckBox},{default:()=>[m(L,{value:e.value,label:e.label},null)]}))))?o:{default:()=>[o]})]})]),m("div",{class:[a.bottomLeft,a.bottom]},[m("div",{class:a.bottomWrap},[x("共"),p.value.length,x("名学生")])])]),m("div",{class:a.chioseBox},[m("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})));G.value=G.value.filter((e=>!l.some((l=>l.value===e.value)))),G.value=G.value.concat(l)}p.value=p.value.filter((l=>!e.some((e=>e.value===l.value)))),e.forEach((e=>{U.value.push(e)})),r.value=[]})()},null),m("div",{class:a.chioseBtn,onClick:()=>(()=>{const l=U.value.filter((e=>-1!=f.value.indexOf(e.value)));if(l.length>0){const a=l.map((l=>({...l,studentId:l.value,toClassId:e.activeRow.id})));G.value=G.value.filter((e=>!a.some((l=>l.value===e.value)))),G.value=G.value.concat(a)}U.value=U.value.filter((e=>!l.some((l=>l.value===e.value)))),l.forEach((e=>{p.value.push(e)})),f.value=[],console.log(G.value," submitList.value===>")})()},null)]),m("div",{class:a.studentRight},[m("div",{class:a.listTop},[c.id?m(S,{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);U.value=l.data.rows.map((e=>({label:e.nickname+"("+e.id+")",value:e.id}))),console.log(G.value,"submitList.value"),U.value=U.value.filter((e=>!G.value.some((l=>l.value===e.value)))),G.value.forEach((e=>{e.toClassId==c.id&&(console.log(e.toClassId,e),U.value.push({label:e.label,value:e.value}))}))})(e)},scrollable:!0},{default:()=>[m("div",null,[c.name,m(I,{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]),m("div",{class:a.listCore},[m(A,{class:a.chioseCheckAllBox},{default:()=>[m(L,{onUpdateChecked:e=>{T.value.length===f.value.length?f.value=[]:f.value=T.value.map((e=>e.value))},checked:T.value.length===f.value.length,indeterminate:f.value.length>0&&T.value.length!==f.value.length,label:"全选"},null)]}),m(A,null,{default:()=>[m(t,w({placeholder:"请输入学生姓名"},{class:a.searchInput,searchWord:V.value,onChangeValue:e=>V.value=e}),null)]}),m(D,{style:"max-height: 204px;min-height: 204px;margin-top:14px;"},{default:()=>[m(R,{value:f.value,"onUpdate:value":e=>f.value=e},ue(u=T.value.map((e=>m(A,{class:a.chioseCheckBox},{default:()=>[m(L,{value:e.value,label:e.label},null)]}))))?u:{default:()=>[u]})]})]),m("div",{class:[a.bottomRight,a.bottom]},[m("div",{class:a.bottomWrap},[x("共"),U.value.length,x("名学生")])])])])]),m(b,{class:a.btnGroup,justify:"center"},{default:()=>[m(C,{round:!0,onClick:()=>l("close")},{default:()=>[x("取消")]}),m(C,{round:!0,loading:n.uploading,type:"primary",onClick:()=>{(async()=>{if(i.value.length<2)s.error("当前只有一个班级,无法调整");else if(G.value<1)l("close");else try{await d(G.value),l("close"),l("getList")}catch(e){console.log(e)}})()}},{default:()=>[x("保存")]})]})])}}}),ce=p({name:"train-update",emits:["close","preview"],props:{activeRow:{type:Object,default:()=>({id:"",currentGradeNum:""})}},setup(e,{emit:l}){const t=g({bookVersionId:null,classGroupId:null,category:null,chapter:null,subjectId:null,musicTagList:[],loading:!1,list:[],chapterList:[],unit:null,unitList:[],subjectList:[]});V();const s=Y(),n=v(),i=h(),o=Q((()=>u()),500),u=async()=>{if(t.category=null,t.unit=null,t.category=null,t.chapter=null,t.loading=!0,t.bookVersionId)try{const{data:e}=await K({page:1,rows:99,type:"COURSEWARE",enableFlag:1,bookVersionId:t.bookVersionId});t.list=e.rows.map((e=>({label:e.name,value:e.id})))}catch{}else t.list=[];t.loading=!1};return j((async()=>{await s.getSubjects(),t.subjectList=s.getSubjectList.map((e=>({label:e.name,value:e.id}))),(async()=>{t.unit=null,t.chapter=null;try{const{data:e}=await H({page:1,rows:99,type:"COURSEWARE"});(e.rows||[]).forEach((e=>{t.musicTagList.push({id:e.id,name:e.name})}))}catch{}})()})),()=>m("div",{class:a.trainUpdate},[m(y,{labelAlign:"left",labelPlacement:"left",ref:i,model:t},{default:()=>[m(f,{path:"bookVersionId",rule:[{required:!0,message:"选择教材版本"}]},{default:()=>[m(G,{placeholder:"选择教材版本",clearable:!0,options:[...t.musicTagList],labelField:"name",valueField:"id",value:t.bookVersionId,"onUpdate:value":[e=>t.bookVersionId=e,()=>o()]},null)]}),m(f,{path:"category",rule:[{required:!0,message:"请选择册别"}]},{default:()=>[m(G,w({options:[...t.list],placeholder:"选择册别",clearable:!0},{disabled:!t.bookVersionId,value:t.category,"onUpdate:value":[e=>t.category=e,()=>(async()=>{t.unit=null,t.chapter=null;try{if(t.category){const e=await c(t.category);t.unitList=e.data.lessonList.map((e=>({...e,label:e.name,value:e.id})))}else t.unitList=[]}catch(e){console.log(e)}})()]}),null)]}),m(f,{path:"unit",rule:[{required:!0,message:"请选择单元"}]},{default:()=>[m(G,w({disabled:!t.category},{options:[...t.unitList],placeholder:"选择单元",clearable:!0},{value:t.unit,"onUpdate:value":[e=>t.unit=e,()=>(()=>{if(t.chapter=null,t.unit){const e=t.unitList.find((e=>e.id===t.unit));t.chapterList=e.knowledgeList.map((e=>({...e,label:e.name,value:e.id}))),console.log("getchapterList",e)}else t.chapterList=[];console.log("getchapterList")})()]}),null)]}),m(f,{path:"chapter",rule:[{required:!0,message:"请选择章节"}]},{default:()=>[m(G,w({disabled:!t.unit},{options:[...t.chapterList],placeholder:"选择章节",clearable:!0},{value:t.chapter,"onUpdate:value":e=>t.chapter=e}),null)]}),m(f,{path:"subjectId",rule:[{required:!0,message:"请选择乐器"}]},{default:()=>[m(G,w({options:[...t.subjectList],placeholder:"选择乐器",clearable:!0},{value:t.subjectId,"onUpdate:value":e=>t.subjectId=e}),null)]}),m(b,{class:a.updateBtnGroup},{default:()=>[m(C,{strong:!0,type:"default",round:!0,onClick:()=>l("close")},{default:()=>[x("取消")]}),m(C,{strong:!0,type:"primary",round:!0,onClick:()=>{i.value.validate((async a=>{if(a)return;const{data:s}=await z({coursewareDetailKnowledgeId:t.chapter,subjectId:t.subjectId,page:1,rows:99});s.rows&&s.rows.length>0?(await J({lessonCoursewareKnowledgeDetailId:t.chapter,classGroupId:e.activeRow.id}),l("close"),l("preview",{type:"class",classGroupId:e.activeRow.id,subjectId:t.subjectId,detailId:t.chapter})):n.error("当前章节暂无课件,请重新选择")}))}},{default:()=>[x("确认")]})]})]})])}}),re=p({name:"coai-guide",emits:["close"],setup(e,{emit:l}){const a=g({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:X("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:X("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:X("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=h(!1),s=h({});(async()=>{try{const e=await le({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 o()};j((()=>{n(),window.addEventListener("resize",i)}));const i=()=>{n()};E((()=>{window.removeEventListener("resize",i)}));const o=()=>{a.step>=4?u():(a.step=a.step+1,n())},u=async()=>{s.value?s.value.classGuide=!0:s.value={classGuide:!0};try{await ae({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(s.value)})}catch(e){console.log(e)}t.value=!1};return()=>m(W,null,[t.value?T(m("div",{"onUpdate:show":e=>t.value=e,class:["n-modal-mask","n-modal-mask-guide"]},[m("div",{class:ee.content,onClick:()=>o()},[m("div",{class:ee.backBtn,onClick:e=>{e.stopPropagation(),u()}},[x("跳过")]),m("div",{class:ee.box,style:{...a.box,...a.steps[a.step].boxStyle},id:`modeType-${a.step}`},[a.steps.map(((e,l)=>m("div",{onClick:e=>e.stopPropagation(),class:ee.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}`}},[m("img",{class:ee.img,style:e.imgStyle,src:e.img},null),m("div",{class:ee.btns,style:e.btnsStyle},[a.step+1==a.steps.length?m(W,null,[m("div",{class:[ee.endBtn],onClick:()=>u()},[x("完成")]),m("div",{class:ee.nextBtn,onClick:()=>{a.step=0,n()}},[x("再看一遍")])]):m("div",{class:ee.btn,onClick:()=>o()},[x("下一步 ("),a.step+1,x("/"),a.steps.length,x(")")])])])))])])]),[[N,t.value,"show"]]):null])}}),pe="_showContentWidth_1uy1t_1",ge=p({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=>()=>m(W,null,[m(P,{style:{maxWidth:e.maxWidth+"px"},trigger:e.trigger,placement:e.placement,showArrow:e.showArrow,delay:500},{trigger:()=>m("p",{style:{maxWidth:e.showContentWidth+"px"},class:pe},[e.content]),default:()=>e.tipsContent||e.content})])});e("default",p({name:"class-classList",setup(e,{emit:l}){const i=g({searchForm:{keyword:null,currentClass:null,currentGradeNum:null},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}),u=h();F();const d=v(),c=V(),p=()=>{i.pagination.page=1,R(),console.log("search",i)},k=h(!1);i.gradeNumList=Z();const A=()=>{i.searchForm={keyword:null,currentClass:null,currentGradeNum:null},R()},L=async()=>{try{await r({ids:i.removeRow.id}),R(),d.success("删除成功"),i.removeVisiable=!1}catch(e){console.log(e)}},R=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")},S=e=>{i.activeRow=e,i.studentVisible=!0},U=async e=>{try{const l=await ie({classGroupId:e.id});l.data.rows.length>0?(i.lastCourse=l.data.rows[0],console.log(i.lastCourse,"state.lastCourse")):i.lastCourse=null,console.log(l)}catch(l){console.log(l)}i.activeRow=e,i.goCourseVisiable=!0};return j((()=>{R()})),()=>m("div",{class:a.listWrap},[m("div",{class:a.searchList},[m(y,{"label-placement":"left",inline:!0,ref:u},{default:()=>[m(f,null,{default:()=>[m(t,w({placeholder:"请输入班级名称"},{class:a.searchInput,searchWord:i.searchForm.keyword,onChangeValue:e=>i.searchForm.keyword=e}),null)]}),m(f,null,{default:()=>[m(s,w({options:i.gradeNumList,placeholder:"选择年级",clearable:!0,inline:!0},{value:i.searchForm.currentGradeNum,"onUpdate:value":e=>i.searchForm.currentGradeNum=e}),null)]}),m(f,null,{default:()=>[m(s,w({options:$,placeholder:"选择班级",clearable:!0,inline:!0},{value:i.searchForm.currentClass,"onUpdate:value":e=>i.searchForm.currentClass=e}),null)]}),m(f,null,{default:()=>[m(b,{justify:"end"},{default:()=>[m(C,{type:"primary",class:"searchBtn",onClick:p},{default:()=>[x("搜索")]}),m(C,{type:"primary",ghost:!0,class:"resetBtn",onClick:A},{default:()=>[x("重置")]})]})]})]})]),m(C,{class:a.addBtn,type:"primary",onClick:()=>i.showaddClass=!0},{default:()=>[x("创建班级")],icon:()=>m(W,null,[m(I,{class:a.addBtnIcon,previewDisabled:!0,src:_},null)])}),m("div",{class:a.tableWrap},[m(O,{class:a.classTable,loading:i.loading,columns:[{title:"班级名称",key:"name",width:"25%"},{title:"学生人数",key:"preStudentNum",width:"25%"},{title:"上次学习",key:"lastStudy",width:"25%",render:e=>e.lastStudy?m(ge,{maxWidth:300,showContentWidth:300,content:e.lastStudy},null):"--"},{title:"操作",key:"id",render:(e,l)=>m("div",null,[m(b,null,{default:()=>[0==l?m("div",{id:"class-0"},[m(C,{type:"primary",text:!0,onClick:()=>{c.push({path:"/classDetail",query:{name:e.name,id:e.id}})}},{default:()=>[x("详情")]})]):m(C,{type:"primary",text:!0,onClick:()=>{c.push({path:"/classDetail",query:{name:e.name,id:e.id}})}},{default:()=>[x("详情")]}),m(C,0==l?w({type:"primary"},{id:"class-1"},{text:!0,onClick:()=>{S(e)}}):{type:"primary",text:!0,onClick:()=>{S(e)}},{default:()=>[x("学生调整")]}),m(C,0==l?w({id:"class-2"},{disabled:!(e.preStudentNum>0),type:"primary",text:!0,onClick:()=>U(e)}):{disabled:!(e.preStudentNum>0),type:"primary",text:!0,onClick:()=>U(e)},{default:()=>[x("开始上课")]}),e.preStudentNum>0?null:m("p",{style:{color:"#EA4132",cursor:"pointer"},onClick:()=>{i.removeVisiable=!0,i.removeRow=e}},[x("删除")])]})])}],data:i.tableList},{empty:()=>m(te,null,null)}),m(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:R,sync:!0},null)]),m(M,{show:i.studentVisible,"onUpdate:show":e=>i.studentVisible=e,preset:"card",class:["modalTitle background",a.studentVisible],title:"学员调整"},{default:()=>[m(de,{activeRow:i.activeRow,onClose:()=>i.studentVisible=!1,onGetList:()=>R()},null)]}),m(M,{show:i.showaddClass,"onUpdate:show":e=>i.showaddClass=e,style:{width:"500px"},preset:"card",class:["modalTitle background"],title:"创建班级"},{default:()=>[m(oe,{gradeNumList:i.gradeNumList,classArray:$,onGetList:()=>R(),onClose:()=>i.showaddClass=!1},null)]}),m(M,{show:i.goCourseVisiable,"onUpdate:show":e=>i.goCourseVisiable=e,preset:"card",class:["modalTitle background",a.chioseModel],title:"选择课件"},{default:()=>[m(ce,{activeRow:i.activeRow,onClose:()=>i.goCourseVisiable=!1,onPreview:e=>{if(ne.application)i.previewModal=!0,i.previewParams={...e},ne.application=window.matchMedia("(display-mode: standalone)").matches,q();else{const{href:l}=c.resolve({path:"/attend-class",query:{...e}});window.open(l,+new Date+"")}}},null)]}),m(se,{show:i.previewModal,"onUpdate:show":e=>i.previewModal=e,type:"attend",params:i.previewParams},null),m(M,{show:i.removeVisiable,"onUpdate:show":e=>i.removeVisiable=e,preset:"card",class:["modalTitle",a.removeVisiable],title:"删除班级"},{default:()=>[m("div",{class:a.studentRemove},[m("p",null,[x("确定要删除班级么?"),m("span",null,[x("删除班级信息将会清空")]),x("。")]),m(b,{class:a.btnGroup,justify:"center"},{default:()=>[m(C,{round:!0,type:"primary",onClick:L},{default:()=>[x("确定")]}),m(C,{round:!0,onClick:()=>i.removeVisiable=!1},{default:()=>[x("取消")]})]})])]}),k.value?m(re,null,null):null])}}))}}}));
|