1 |
- System.register(["./index-legacy-f8e66744-1725962701482.js","./index.module-legacy-080f5ce6-1725962701482.js","./index-legacy-1dabf563-1725962701482.js","./index-legacy-0b067d98-1725962701482.js","./index-legacy-a9c0d11a-1725962701482.js","./api-legacy-19fd7dfd-1725962701482.js","./api-legacy-3788cb1c-1725962701482.js","./Cascader-legacy-89bd0263-1725962701482.js","./Scrollbar-legacy-b623a0cb-1725962701482.js","./contants-legacy-5e2d4c3e-1725962701482.js","./add-legacy-e7111c9d-1725962701482.js","./index-legacy-7dba2a59-1725962701482.js","./api-legacy-43eef34f-1725962701482.js","./index-legacy-f75a67e8-1725962701482.js","./index-legacy-8be78662-1725962701482.js","./updateSubject-legacy-4deef667-1725962701482.js","./api-legacy-2bbab439-1725962701482.js","./use-async-legacy-803b1971-1725962701482.js","./index.module-legacy-85d3d2e3-1725962701482.js","./html2canvas.esm-legacy-4d338671-1725962701482.js","./urlUtils-legacy-0ad6488a-1725962701482.js","./catchData-legacy-de01f77c-1725962701482.js","./index-legacy-692f8626-1725962701482.js","./index-legacy-74b80897-1725962701482.js","./Slider-legacy-5a336986-1725962701482.js","./index-legacy-8b0820b9-1725962701482.js","./icon_default-legacy-fa9bb009-1725962701482.js","./useSpeak-legacy-719087d1-1725962701482.js","./api-legacy-91b4da66-1725962701482.js","./icon-pan-legacy-9492b61b-1725962701482.js","./api-legacy-6969be2f-1725962701482.js","./ding-legacy-f3656c17-1725962701482.js","./searchArray-legacy-381759bb-1725962701482.js","./contants-legacy-ed31834c-1725962701482.js","./index-legacy-ded67b12-1725962701482.js","./index-legacy-8320ffad-1725962701482.js","./index-legacy-c04ffc4f-1725962701482.js","./index-legacy-d4b487a1-1725962701482.js","./teacherIcon-legacy-3eeb62c3-1725962701482.js","./index-legacy-e8016fac-1725962701482.js","./index-legacy-d7a05e52-1725962701482.js"],(function(e,a){"use strict";var l,t,s,n,i,r,d,o,u,c,p,g,v,m,h,y,f,w,b,C,x,j,k,L,S,R,A,F,T,I,G,z,Y,U,W,D,E,B,V,P,N,H,O,M,X,Z,K,q,Q,J,$,_,ee,ae,le,te,se,ne,ie,re,de,oe,ue,ce,pe,ge,ve,me,he;return{setters:[e=>{l=e.d,t=e.e,s=e.b,n=e.r,i=e.A,r=e.q,d=e.f,o=e.N,u=e.g,c=e.y,p=e.x,g=e.j,v=e.k,m=e.U,h=e.aH,y=e.n,f=e.az,w=e.aI,b=e.w,C=e.D,x=e.$,j=e.C,k=e.T,L=e.a0,S=e.a1,R=e.F,A=e.V,F=e.c,T=e.u,I=e.a,G=e.aG,z=e.l,Y=e.m},e=>{U=e.s},e=>{W=e.S},e=>{D=e.C},e=>{E=e.P},e=>{B=e.a,V=e.g,P=e.c,N=e.b,H=e.d,O=e.u,M=e.e,X=e.f},e=>{Z=e.a},e=>{K=e.N},e=>{q=e.N},e=>{Q=e.g,J=e.c},e=>{$=e.a},e=>{_=e.g,ee=e.s},e=>{ae=e.s},e=>{le=e.T},e=>{te=e.P},e=>{se=e.U},e=>{ne=e.g,ie=e.b},e=>{re=e.i,de=e.s},e=>{oe=e.s},e=>{ue=e.s,ce=e.a,pe=e.T,ge=e.b,ve=e.h},e=>{me=e.a},e=>{he=e.u},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var ye=document.createElement("style");ye.textContent="._showContentWidth_1uy1t_1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n",document.head.appendChild(ye);const fe=l({props:{activeRow:{type:Object,default:()=>({id:""})},gradeYearList:{type:Array,default:()=>[]},gradeNumList:{type:Array,default:()=>[]},classArray:{type:Array,default:()=>[]}},name:"resetStudent",emits:["close","getList"],setup(e,{emit:a}){const l=t({uploading:!1}),m=s(),h=n(),y=t({gradeYear:null,currentGradeNum:null,currentClass:null,instrumentId:null}),f=n([]),w=n([]);return i((()=>[y.gradeYear,y.currentGradeNum,y.currentClass]),(()=>{y.instrumentId=null,(async()=>{try{const{data:e}=await V({gradeYear:y.gradeYear,currentGradeNum:y.currentGradeNum,currentClass:y.currentClass}),a=e||[];w.value=a}catch{}})()})),r((()=>{(async()=>{try{const{data:e}=await Z({}),a=[{label:e+1,value:e+1},{label:e,value:e}];f.value=a}catch{}})()})),()=>d("div",{class:[U.addClass]},[d(o,{"label-placement":"left",model:y,ref:h},{default:()=>[d(u,{path:"gradeYear",rule:[{required:!0,message:"请选择学年"}]},{default:()=>[d(D,c({style:{width:"400px"},options:f.value,placeholder:"选择学年",clearable:!0},{value:y.gradeYear,"onUpdate:value":e=>y.gradeYear=e}),null)]}),d(u,{path:"currentGradeNum",rule:[{required:!0,message:"请选择年级"}]},{default:()=>[d(D,c({style:{width:"400px"},options:e.gradeNumList,placeholder:"选择年级",clearable:!0},{value:y.currentGradeNum,"onUpdate:value":e=>y.currentGradeNum=e}),null)]}),d(u,{path:"currentClass",rule:[{required:!0,message:"请选择班级"}]},{default:()=>[d(D,c({style:{width:"400px"},options:e.classArray,placeholder:"选择班级",clearable:!0},{value:y.currentClass,"onUpdate:value":e=>y.currentClass=e}),null)]}),d(u,{path:"instrumentId",rule:[{required:!0,message:"请选择乐器"}]},{default:()=>[d(K,{placeholder:"请选择乐器",value:y.instrumentId,"onUpdate:value":e=>y.instrumentId=e,options:w.value,checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",clearable:!0,filterable:!0,style:{width:"400px"}},null)]})]}),d(p,{class:U.btnGroup,justify:"center"},{default:()=>[d(g,{round:!0,onClick:()=>a("close")},{default:()=>[v("取消")]}),d(g,{round:!0,loading:l.uploading,onClick:()=>{h.value.validate((async e=>{if(!e){l.uploading=!0;try{await B({...y}),m.success("新增成功"),a("close"),a("getList"),l.uploading=!1}catch(t){console.log(t)}l.uploading=!1}}))},type:"primary"},{default:()=>[v("保存")]})]})])}});function we(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!C(e)}const be=l({props:{activeRow:{type:Object,default:()=>({id:""})}},name:"RestStudentBox",emits:["close","getList"],setup(e,{emit:a}){const l=s(),i=t({uploading:!1});n([]),n([]),n();const o=n([]);console.log(e.activeRow,"activeRow");const u=t({gradeYear:null,name:"",id:""}),C=n([]),x=n([]),j=n(null),k=n([]),L=n([]),S=n(null),R=n([]),A=async e=>await N({page:1,rows:999,classGroupId:e}),F=m((()=>(x.value||[]).filter((e=>-1!=e.label.indexOf(j.value||""))))),T=m((()=>(L.value||[]).filter((e=>-1!=e.label.indexOf(S.value||"")))));return r((async()=>{(async()=>{try{const a=(await P({page:1,rows:9999,upgradeFlag:!0})).data.rows||[],l=[],t=[];if(a.forEach((a=>{const s={label:a.name,key:a.id,gradeYear:a.gradeYear,value:a.id,disabled:a.id==e.activeRow.id};e.activeRow.gradeYear===a.gradeYear?l.push(s):t.push(s)})),o.value=[...l,...t],o.value[0].disabled?o.value.length>1&&(u.name=o.value[1].label,u.id=o.value[1].key,u.gradeYear=o.value[1].gradeYear):(u.name=o.value[0].label,u.id=o.value[0].key,u.gradeYear=o.value[0].gradeYear),u.id){const e=await A(u.id);L.value=e.data.rows.map((e=>({label:e.nickname+"("+e.id+")",value:e.id})))}}catch(a){console.log(a)}})();const a=await A(e.activeRow.id);x.value=a.data.rows.map((e=>({label:e.nickname+"("+e.id+")",value:e.id})))})),()=>{let t,s;return d("div",{class:[U.container,U.resetStudentWrap]},[d("div",{class:U.studentTransfer},[d("div",{class:U.studentTransferList},[d("div",{class:U.studentLeft},[d("div",{class:U.listTop},[d("p",null,[e.activeRow.name]),d("span",null,[v("("),e.activeRow.gradeYear,v("学年)")])]),d("div",{class:U.listCore},[d(h,{class:U.chioseCheckAllBox},{default:()=>[d(y,{onUpdateChecked:e=>{F.value.length===C.value.length?C.value=[]:C.value=F.value.map((e=>e.value))},checked:F.value.length===C.value.length,indeterminate:C.value.length>0&&F.value.length!==C.value.length,label:"全选"},null)]}),d(h,null,{default:()=>[d(W,c({placeholder:"请输入学生姓名"},{class:U.searchInput,searchWord:j.value,onChangeValue:e=>j.value=e}),null)]}),d(q,{style:"max-height: 204px;min-height: 204px;margin-top:14px;"},{default:()=>[d(f,{value:C.value,"onUpdate:value":e=>C.value=e},we(t=F.value.map((e=>d(h,{class:U.chioseCheckBox},{default:()=>[d(y,{value:e.value,label:e.label},null)]}))))?t:{default:()=>[t]})]})]),d("div",{class:[U.bottomLeft,U.bottom]},[d("div",{class:U.bottomWrap},[v("共"),x.value.length,v("名学生")])])]),d("div",{class:U.chioseBox},[d("div",{class:[U.chioseBtn,U.chioseBtnRight],onClick:()=>(()=>{const e=x.value.filter((e=>-1!=C.value.indexOf(e.value)));if(e.length>0){const a=e.map((e=>({...e,studentId:e.value,toClassId:u.id})));R.value=R.value.filter((e=>!a.some((a=>a.value===e.value)))),R.value=R.value.concat(a)}x.value=x.value.filter((a=>!e.some((e=>e.value===a.value)))),e.forEach((e=>{L.value.push(e)})),C.value=[]})()},null),d("div",{class:U.chioseBtn,onClick:()=>(()=>{const a=L.value.filter((e=>-1!=k.value.indexOf(e.value)));if(a.length>0){const l=a.map((a=>({...a,studentId:a.value,toClassId:e.activeRow.id})));R.value=R.value.filter((e=>!l.some((a=>a.value===e.value)))),R.value=R.value.concat(l)}L.value=L.value.filter((e=>!a.some((a=>a.value===e.value)))),a.forEach((e=>{x.value.push(e)})),k.value=[],console.log(R.value," submitList.value===>")})()},null)]),d("div",{class:U.studentRight},[d("div",{class:U.listTop},[u.id?d(w,{key:"111",value:u.id,"onUpdate:value":e=>u.id=e,options:o.value,onSelect:e=>{(async e=>{o.value.forEach((a=>{a.key==e&&(u.name=a.label,u.gradeYear=a.gradeYear,u.id=a.key)}));const a=await A(e);L.value=a.data.rows.map((e=>({label:e.nickname+"("+e.id+")",value:e.id}))),console.log(R.value,"submitList.value"),L.value=L.value.filter((e=>!R.value.some((a=>a.value===e.value)))),R.value.forEach((e=>{e.toClassId==u.id&&(console.log(e.toClassId,e),L.value.push({label:e.label,value:e.value}))}))})(e)},renderLabel:e=>d("div",{style:{display:"flex"}},[e.label,d("div",{style:{fontSize:"12Px"}},[v("("),e.gradeYear,v("学年)")])]),scrollable:!0},{default:()=>[d("div",{class:U.showGradeSection},[d("div",null,[u.name,u.gradeYear&&d("span",null,[v("("),u.gradeYear,v("学年)")])]),d(b,{class:U.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]),d("div",{class:U.listCore},[d(h,{class:U.chioseCheckAllBox},{default:()=>[d(y,{onUpdateChecked:e=>{T.value.length===k.value.length?k.value=[]:k.value=T.value.map((e=>e.value))},checked:T.value.length===k.value.length,indeterminate:k.value.length>0&&T.value.length!==k.value.length,label:"全选"},null)]}),d(h,null,{default:()=>[d(W,c({placeholder:"请输入学生姓名"},{class:U.searchInput,searchWord:S.value,onChangeValue:e=>S.value=e}),null)]}),d(q,{style:"max-height: 204px;min-height: 204px;margin-top:14px;"},{default:()=>[d(f,{value:k.value,"onUpdate:value":e=>k.value=e},we(s=T.value.map((e=>d(h,{class:U.chioseCheckBox},{default:()=>[d(y,{value:e.value,label:e.label},null)]}))))?s:{default:()=>[s]})]})]),d("div",{class:[U.bottomRight,U.bottom]},[d("div",{class:U.bottomWrap},[v("共"),L.value.length,v("名学生")])])])])]),d(p,{class:U.btnGroup,justify:"center"},{default:()=>[d(g,{round:!0,onClick:()=>a("close")},{default:()=>[v("取消")]}),d(g,{round:!0,loading:i.uploading,type:"primary",onClick:()=>{(async()=>{if(o.value.length<2)l.error("当前只有一个班级,无法调整");else if(R.value<1)a("close");else try{await H(R.value),a("close"),a("getList")}catch(e){console.log(e)}})()}},{default:()=>[v("保存")]})]})])}}}),Ce=l({name:"coai-guide",emits:["close"],setup(e,{emit:a}){const l=t({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:_("class1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:x(-4),left:x(-294),width:x(648),height:x(227)},btnsStyle:{bottom:x(30),left:x(-130)},eleRectPadding:{left:7,top:7,width:14,height:14}},{ele:"",img:_("class2.png"),imgStyle:{top:x(-4),left:x(-276),width:x(515),height:x(227)},btnsStyle:{bottom:x(30),left:x(-110)},eleRectPadding:{left:7,top:7,width:14,height:14}},{ele:"",img:_("class3.png"),imgStyle:{top:x(-4),width:x(437),height:x(227),left:x(-276)},btnsStyle:{bottom:x(30),left:x(-113)},eleRectPadding:{left:7,top:7,width:14,height:14}}],step:0}),s=n(!1),i=n({});(async()=>{try{const e=localStorage.getItem("teacher-guideInfo");i.value=e?JSON.parse(e)||null:{},i.value&&i.value.classGuide?s.value=!1:s.value=!0}catch(e){console.log(e)}})();const o=()=>{const e=document.getElementById(`class-${l.step}`);if(e){const a=e.getBoundingClientRect(),t=l.steps[l.step].eleRectPadding?.left||0,s=l.steps[l.step].eleRectPadding?.top||0,n=l.steps[l.step].eleRectPadding?.width||0,i=l.steps[l.step].eleRectPadding?.height||0;l.box={left:a.x-t+"px",top:a.y-s+"px",width:a.width+n+"px",height:a.height+i+"px"}}else p()},u=async e=>{try{if("classList"!==e)return;i.value?i.value.classGuide=!1:i.value={classGuide:!1};try{ae({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(i.value)})}catch(a){console.log(a)}l.step=0,o(),s.value=!0}catch{}};r((()=>{o(),window.addEventListener("resize",c),j.on("teacher-guideInfo",u)}));const c=()=>{o()};k((()=>{window.removeEventListener("resize",c),j.off("teacher-guideInfo",u)}));const p=()=>{l.step>=4?g():(l.step=l.step+1,o())},g=async()=>{i.value?i.value.classGuide=!0:i.value={classGuide:!0};try{ae({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(i.value)})}catch(e){console.log(e)}s.value=!1};return()=>d(R,null,[s.value?L(d("div",{"onUpdate:show":e=>s.value=e,class:["n-modal-mask","n-modal-mask-guide"]},[d("div",{class:ee.content,onClick:()=>p()},[d("div",{class:ee.backBtn,onClick:e=>{e.stopPropagation(),g()}},[v("跳过")]),d("div",{class:ee.box,style:{...l.box,...l.steps[l.step].boxStyle},id:`modeType-${l.step}`},[l.steps.map(((e,a)=>d("div",{onClick:e=>e.stopPropagation(),class:ee.item,style:"bottom"==e.type?{display:a===l.step?"":"none",left:`${e.eleRect?.left}px`,top:`-${e.imgStyle?.height}`}:{display:a===l.step?"":"none",left:`${e.eleRect?.left}px`,top:`${l.box?.height}`}},[d("img",{class:ee.img,style:e.imgStyle,src:e.img},null),d("div",{class:ee.btns,style:e.btnsStyle},[l.step+1==l.steps.length?d(R,null,[d("div",{class:[ee.endBtn],onClick:()=>g()},[v("完成")]),d("div",{class:ee.nextBtn,onClick:()=>{l.step=0,o()}},[v("再看一遍")])]):d("div",{class:ee.btn,onClick:()=>p()},[v("下一步 ("),l.step+1,v("/"),l.steps.length,v(")")])])])))])])]),[[S,s.value,"show"]]):null])}}),xe="_showContentWidth_1uy1t_1",je=l({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=>()=>d(R,null,[d(A,{style:{maxWidth:e.maxWidth+"px"},trigger:e.trigger,placement:e.placement,showArrow:e.showArrow,delay:500},{trigger:()=>d("p",{style:{maxWidth:e.showContentWidth+"px"},class:[xe,"showContentWidthWrap"]},[e.content]),default:()=>e.tipsContent||e.content})])}),ke=l({props:{activeRow:{type:Object,default:()=>({id:""})},gradeNumList:{type:Array,default:()=>[]},classArray:{type:Array,default:()=>[]}},name:"resetStudent",emits:["close","getList"],setup(e,{emit:a}){const l=t({uploading:!1}),i=s(),c=n(),m=n([]),h=t({currentGradeNum:null,gradeYear:null,currentClass:null,instrumentId:null,id:null});r((()=>{h.currentGradeNum=e.activeRow.currentGradeNum,h.gradeYear=e.activeRow.gradeYear,h.currentClass=e.activeRow.currentClass,h.instrumentId=e.activeRow.instrumentId,h.id=e.activeRow.id,y()}));const y=async()=>{try{const{data:e}=await V({gradeYear:h.gradeYear,currentGradeNum:h.currentGradeNum,currentClass:h.currentClass}),a=e||[];m.value=a}catch{}};return()=>d("div",{class:[U.addClass]},[d(o,{"label-placement":"left",model:h,ref:c},{default:()=>[d(u,{path:"instrumentId",rule:[{required:!0,message:"请选择乐器"}]},{default:()=>[d(K,{placeholder:"请选择乐器",value:h.instrumentId,"onUpdate:value":e=>h.instrumentId=e,options:m.value,checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",clearable:!0,filterable:!0,style:{width:"400px"}},null)]})]}),d(p,{class:U.btnGroup,justify:"center"},{default:()=>[d(g,{round:!0,onClick:()=>a("close")},{default:()=>[v("取消")]}),d(g,{round:!0,loading:l.uploading,onClick:()=>{c.value.validate((async e=>{if(!e){l.uploading=!0;try{await O({...h}),i.success("修改成功"),a("close"),a("getList"),l.uploading=!1}catch(t){console.log(t)}l.uploading=!1}}))},type:"primary"},{default:()=>[v("保存")]})]})])}}),Le=""+new URL("strudentCore-ce06266f.png",a.meta.url).href,Se=l({props:{activeRow:{type:Object,default:()=>({id:""})},gradeNumList:{type:Array,default:()=>[]},classArray:{type:Array,default:()=>[]}},name:"resetStudent",emits:["close","getList"],setup(e,{emit:a}){t({uploading:!1}),s();const l=F();n();const i=n(me()+`/classroom-app/#/register-new?sId=${e.activeRow.id}&gy=${e.activeRow.gradeYear}&ci=${e.activeRow.classId}&cgn=${e.activeRow.currentGradeNum}&cc=${e.activeRow.currentClass}&t=${+new Date}`),r=t({saveLoading:!1,image:null,shareLoading:!1}),o=()=>{if(!r.saveLoading)if(r.saveLoading=!0,r.image)u();else{const e=document.getElementById("preview-container");ve(e,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then((async e=>{const a=e.toDataURL("image/png");r.image=a,u()})).catch((()=>{r.saveLoading=!1}))}},u=async()=>{setTimeout((()=>{r.saveLoading=!1}),100);const e=document.createElement("a");e.setAttribute("download","报名图片.png"),e.href=r.image,e.click()};return()=>d("div",{class:[oe.addStudentWrap]},[d("div",{onClick:()=>{a("close")}},[d(b,{src:ue,previewDisabled:!0,class:oe.studentCLose},null)]),d(b,{previewDisabled:!0,class:oe.stunentStart,src:ce},null),d(b,{class:oe.addTitle,previewDisabled:!0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXIAAABSCAMAAAB+Ia+5AAACT1BMVEUAAAD/2FL/11f/sDH/sDD/xj//sDH/sTH/tDX/zEX/v0D/wzn/zkr/32X/sDD/zEf/32X/1FL/yUT/3mP/3WL/3WL/wjj/3GL/xDz/wzv/zkr/xz//4Gf/wTb/zUj/1FT/6HH/yUT/xD3/wjf/01P/wzz/sDH/3mT/5G3/wDj/xTr/11f/5nD/5XD/wTj/wTZUJg3/y0b/wTf/xDv/wjn/6nb/6HP/8YH/yUP/7Hn/xT3/x0D/737/7Xv/63j/8ID/1Vb/zkv/53H/z03/3WL/8oL/5nD/7n3/xj7/zUr/1FX/84T/ykT/2lz/yEH/0VD/5W7/21//6XT/5G3/32b/3GH/42z/1lj/4mr/11n/4Wn/2l7/zEf/3mP/zEn/01P/2Fv/0lL/0E7/4Gf/rzD/32T/0E//2Fr/0lH/4Gj/01T/zUn/1lf/84P/7XrdrkFvQhhpPBj/733zxk9bLR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Y0zsje61nzL3/+glWCa0mcXANYKwtLpSqrEQ7P9zhjmbuJcfMpH2awAcbDiswScgbbYFlSKUVVYOmuGTdk3X3IJxmDDd35pSAfXPgdNhfkt/Q7CQ8FeXMIk5/0lgdA/q9fBlCU9WQqZ/4AAAAASUVORK5CYII="},null),d("div",{class:oe.addStudentInfo,id:"preview-container"},[d(b,{class:oe.studentInfoBg,previewDisabled:!0,src:Le},null),d("div",{class:oe.studentCore},[d("img",{alt:"img",crossorigin:"anonymous",class:oe.schoolLogo,src:l.getUserInfo.schoolInfos[0].logo+`?some=${(new Date).getTime()}`},null),d("div",{class:oe.studentCoreInfo},[d("h2",null,[l.getUserInfo.schoolInfos[0].name]),d("p",{class:oe.studentCoreInfoSubtitle},[d("span",null,[v("报名注册")])]),d("div",{class:oe.codewrap},[d(pe,{margin:0,text:i.value,size:119},null)]),d("div",{class:oe.codewrapSubmit},[d(b,{previewDisabled:!0,src:ge},null),v("请使用微信扫码")])])])]),d("div",{class:oe.studentBottom},[d("p",null,[v("请将二维码图片发送给学生家长,扫码完成报名")]),d("div",{class:oe.downBtn,onClick:o},[v("下载图片")])])])}});e("default",l({name:"class-classList",setup(){const e=he(),a=F(),l=t({searchForm:{keyword:null,currentClass:"",currentGradeNum:"",instrumentId:"",gradeYear:"",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,showResetClass:!1,showSubjectClass:!1,groupVisiable:!1,popSelectYearList:[],popSelectLevelList:[],addStudentVisible:!1}),i=n(),m=s(),h=T(),y=I(),f=()=>{l.pagination.page=1,j(),de({current:l.searchForm,saveKey:y.path})},w=n(!1);l.gradeNumList=Q();const C=()=>{l.searchForm={keyword:null,currentClass:"",currentGradeNum:"",instrumentId:"",gradeYear:"",gradeLevel:""},l.popSelectYearList.length>1&&(l.searchForm.gradeYear=l.popSelectYearList[1].id),l.pagination.page=1,j(),de({current:l.searchForm,saveKey:y.path})},x=async()=>{try{await M({ids:l.removeRow.id}),j(),m.success("删除成功"),l.removeVisiable=!1}catch(e){console.log(e)}},j=async()=>{l.loading=!0;try{const e=await P({...l.searchForm,...l.pagination});l.tableList=e.data.rows,l.pagination.pageTotal=e.data.total,l.loading=!1,setTimeout((()=>{l.tableList.length>0&&(w.value=!0)}),500)}catch(e){l.loading=!1,console.log(e)}},k=e=>{l.activeRow=e,l.studentVisible=!0},A=async e=>{try{e.instrumentId?h.push({path:"/prepare-lessons",query:{lastUseCoursewareId:e.lessonCoursewareId,unit:e.lessonCoursewareKnowledgeDetailId,instrumentId:e.instrumentId,courseScheduleSubjectId:e.courseScheduleSubjectId,preStudentNum:e.preStudentNum,name:e.name,classGroupId:e.id}}):(l.showSubjectClass=!0,l.activeRow=e)}catch(a){console.log(a)}},B=e=>{l.activeRow=e,l.showResetClass=!0},V=async e=>{l.activeRow=e,l.groupVisiable=!0},N=async()=>{console.log(l.activeRow,"row"),l.groupBtnLoading=!0;try{await X({classGroupId:l.activeRow.id}),m.success("创建成功"),l.groupVisiable=!1,await j()}catch(e){console.log(e)}l.groupBtnLoading=!1};return re({current:l.searchForm,callBack:e=>{l.searchForm=e}}),r((async()=>{l.loading=!0,await e.getSubjects(),await(async()=>{try{const{data:e}=await ne(),a=e||[];a.forEach((e=>{e.name=e.name+"学年"})),l.popSelectYearList=a||[],a.length>1&&!l.searchForm.gradeYear&&(l.searchForm.gradeYear=a[1].id)}catch{}})(),await(async()=>{try{const{data:e}=await ie(),a=e||[];a.forEach((e=>{e.name=e.name+"级"})),a.unshift({id:"",name:"全部学级"}),l.popSelectLevelList=a||[],a.length>0&&!l.searchForm.gradeLevel&&(l.searchForm.gradeLevel=a[0].id)}catch{}})(),await j(),l.loading=!1})),()=>d("div",{class:U.listWrap},[d("div",{class:U.searchList},[d(o,{"label-placement":"left",inline:!0,ref:i},{default:()=>[d(u,null,{default:()=>[d(W,c({placeholder:"请输入班级名称"},{class:U.searchInput,searchWord:l.searchForm.keyword,onChangeValue:e=>l.searchForm.keyword=e}),null)]}),d(u,null,{default:()=>[d(D,c({options:l.popSelectYearList,placeholder:"选择学年",clearable:!1,inline:!0,labelField:"name",valueField:"id"},{value:l.searchForm.gradeYear,"onUpdate:value":e=>l.searchForm.gradeYear=e}),null)]}),d(u,null,{default:()=>[d(D,c({options:l.popSelectLevelList,placeholder:"选择学级",clearable:!0,inline:!0,labelField:"name",valueField:"id"},{value:l.searchForm.gradeLevel,"onUpdate:value":e=>l.searchForm.gradeLevel=e}),null)]}),d(u,null,{default:()=>[d(D,c({options:l.gradeNumList,placeholder:"选择年级",clearable:!0,inline:!0},{value:l.searchForm.currentGradeNum,"onUpdate:value":e=>l.searchForm.currentGradeNum=e}),null)]}),d(u,null,{default:()=>[d(D,c({options:J,placeholder:"选择班级",clearable:!0,inline:!0},{value:l.searchForm.currentClass,"onUpdate:value":e=>l.searchForm.currentClass=e}),null)]}),d(u,null,{default:()=>[d(K,{to:"body",placeholder:"选择乐器",options:[{value:"",label:"全部乐器"},...e.getSubjectList],childrenField:"instruments",checkStrategy:"child",expandTrigger:"hover",showPath:!1,value:l.searchForm.instrumentId,"onUpdate:value":[e=>l.searchForm.instrumentId=e,(e,a,l)=>{console.log(e,a,l)}]},null)]}),d(u,null,{default:()=>[d(p,{justify:"end"},{default:()=>[d(g,{type:"primary",class:"searchBtn",onClick:f},{default:()=>[v("搜索")]}),d(g,{type:"primary",ghost:!0,class:"resetBtn",onClick:C},{default:()=>[v("重置")]})]})]})]})]),d(g,{class:U.addBtn,type:"primary",onClick:()=>l.showaddClass=!0},{default:()=>[v("创建班级")],icon:()=>d(R,null,[d(b,{class:U.addBtnIcon,previewDisabled:!0,src:$},null)])}),d("div",{class:U.tableWrap},[d(G,{class:U.classTable,loading:l.loading,columns:[{title:"班级名称",key:"name"},{title:"学年",key:"gradeYear"},{title:"学级",key:"gradeLevel",render:e=>e.gradeLevel?`${e.gradeLevel}级`:""},{title:"班级乐器",key:"instrumentName"},{title:"学生人数",key:"preStudentNum"},{title:"上次学习",key:"lastStudy",width:"20%",render:e=>e.lastStudy?d(je,{maxWidth:300,showContentWidth:300,content:e.lastStudy},null):"--"},{title:"操作",key:"id",render:(e,t)=>d("div",null,[d(p,null,{default:()=>[0==t?d("div",{id:"class-0"},[d(g,{type:"primary",text:!0,onClick:()=>{h.push({path:"/classDetail",query:{name:e.name,id:e.id,gradeYear:e.gradeYear,upgradeFlag:e.upgradeFlag?1:0}})}},{default:()=>[v("详情")]})]):d(g,{type:"primary",text:!0,onClick:()=>{h.push({path:"/classDetail",query:{name:e.name,id:e.id,gradeYear:e.gradeYear,upgradeFlag:e.upgradeFlag?1:0}})}},{default:()=>[v("详情")]}),d(g,{type:"primary",disabled:!e.upgradeFlag||e.instrumentId,text:!0,onClick:()=>B(e)},{default:()=>[v("修改乐器")]}),d(g,0==t?c({type:"primary",disabled:!e.upgradeFlag},{id:"class-1"},{text:!0,onClick:()=>{k(e)}}):{type:"primary",disabled:!e.upgradeFlag,text:!0,onClick:()=>{k(e)}},{default:()=>[v("学生调整")]}),d(g,0==t?c({id:"class-2"},{disabled:!e.upgradeFlag,type:"primary",text:!0,onClick:()=>A(e)}):{disabled:!e.upgradeFlag,type:"primary",text:!0,onClick:()=>A(e)},{default:()=>[v("开始上课")]}),e.preStudentNum>0?null:d(g,{type:"error",color:"#EA4132",textColor:"#EA4132",text:!0,onClick:()=>{l.removeVisiable=!0,l.removeRow=e}},{default:()=>[v("删除")]}),e.imGroupId?null:d(g,{type:"primary",disabled:!e.upgradeFlag,text:!0,onClick:()=>{V(e)}},{default:()=>[v("创建群聊")]}),d(g,{type:"primary",disabled:!e.upgradeFlag,text:!0,onClick:()=>{const{schoolInfos:t}=a.getUserInfo,s=t.length>0?t[0].id:null;s&&(l.addStudentVisible=!0,l.activeRow={id:s,classId:e.id,currentGradeNum:e.currentGradeNum,currentClass:e.currentClass,gradeYear:e.gradeYear})}},{default:()=>[v("邀请学生")]})]})])}],data:l.tableList},{empty:()=>d(le,null,null)}),d(E,{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:j,sync:!0},null)]),d(z,{maskClosable:Y,show:l.studentVisible,"onUpdate:show":e=>l.studentVisible=e,preset:"card",class:["modalTitle background",U.studentVisible],title:"学生调整"},{default:()=>[d(be,{activeRow:l.activeRow,onClose:()=>l.studentVisible=!1,onGetList:()=>j()},null)]}),d(z,{maskClosable:Y,show:l.showaddClass,"onUpdate:show":e=>l.showaddClass=e,style:{width:"500px"},"display-directive":"if",preset:"card",class:["modalTitle background"],title:"创建班级"},{default:()=>[d(fe,{gradeYearList:l.popSelectYearList,gradeNumList:l.gradeNumList,classArray:J,onGetList:()=>j(),onClose:()=>l.showaddClass=!1},null)]}),d(z,{maskClosable:Y,show:l.showResetClass,"onUpdate:show":e=>l.showResetClass=e,style:{width:"500px"},"display-directive":"if",preset:"card",class:["modalTitle background"],title:"修改乐器"},{default:()=>[d(ke,{activeRow:l.activeRow,onGetList:()=>j(),onClose:()=>l.showResetClass=!1},null)]}),d(z,{maskClosable:Y,show:l.showSubjectClass,"onUpdate:show":e=>l.showSubjectClass=e,style:{width:"500px"},preset:"card",class:["modalTitle background"],title:"修改乐器"},{default:()=>[l.showSubjectClass?d(se,{activeRow:l.activeRow,onGetList:()=>j(),onConfirm:e=>{h.push({path:"/prepare-lessons",query:{...e}})},onClose:()=>l.showSubjectClass=!1},null):null]}),d(te,{show:l.previewModal,"onUpdate:show":e=>l.previewModal=e,type:"attend",params:l.previewParams},null),d(z,{maskClosable:Y,show:l.removeVisiable,"onUpdate:show":e=>l.removeVisiable=e,preset:"card",class:["modalTitle",U.removeVisiable],title:"删除班级"},{default:()=>[d("div",{class:U.studentRemove},[d("p",null,[v("确定要删除班级么?"),d("span",null,[v("删除班级信息将会清空")]),v("。")]),d(p,{class:U.btnGroup,justify:"center"},{default:()=>[d(g,{round:!0,type:"primary",onClick:x},{default:()=>[v("确定")]}),d(g,{round:!0,onClick:()=>l.removeVisiable=!1},{default:()=>[v("取消")]})]})])]}),d(z,{maskClosable:Y,show:l.groupVisiable,"onUpdate:show":e=>l.groupVisiable=e,preset:"card",class:["modalTitle",U.removeVisiable],title:"创建群聊"},{default:()=>[d("div",{class:U.studentRemove},[d("p",{style:{textAlign:"center"}},[v("是否创建班级群聊")]),d(p,{class:U.btnGroup,justify:"center"},{default:()=>[d(g,{round:!0,type:"primary",onClick:N,loading:l.groupBtnLoading,disabled:l.groupBtnLoading},{default:()=>[v("确定")]}),d(g,{round:!0,onClick:()=>l.groupVisiable=!1},{default:()=>[v("取消")]})]})])]}),w.value?d(Ce,null,null):null,l.addStudentVisible?L(d("div",{"onUpdate:show":e=>l.addStudentVisible=e,class:["n-modal-mask",U.popBox]},[d(Se,{activeRow:l.activeRow,onClose:()=>{l.addStudentVisible=!1}},null)]),[[S,l.addStudentVisible,"show"]]):null])}}))}}}));
|