index-legacy-ba0cea56-1734950731618.js 32 KB

1
  1. System.register(["./index-legacy-4630884d-1734950731618.js","./index.module-legacy-7948c6f2-1734950731618.js","./index-legacy-83c28d0b-1734950731618.js","./index-legacy-cd7fea03-1734950731618.js","./index-legacy-a561af25-1734950731618.js","./api-legacy-37b6770f-1734950731618.js","./api-legacy-ffcfe147-1734950731618.js","./Cascader-legacy-24e30d03-1734950731618.js","./Scrollbar-legacy-0b9059a1-1734950731618.js","./contants-legacy-685d9204-1734950731618.js","./add-legacy-e7111c9d-1734950731618.js","./index-legacy-7dba2a59-1734950731618.js","./api-legacy-3c6cf578-1734950731618.js","./index-legacy-e3a3b720-1734950731618.js","./index-legacy-149b8374-1734950731618.js","./index-legacy-94101988-1734950731618.js","./updateSubject-legacy-2cfd4cde-1734950731618.js","./api-legacy-3f65fb74-1734950731618.js","./use-async-legacy-6ec257e8-1734950731618.js","./index.module-legacy-6f3d4809-1734950731618.js","./html2canvas.esm-legacy-496a7286-1734950731618.js","./urlUtils-legacy-47a65e18-1734950731618.js","./catchData-legacy-786f1507-1734950731618.js","./index-legacy-9947f42b-1734950731618.js","./index-legacy-d4e0b22b-1734950731618.js","./Slider-legacy-7133cde0-1734950731618.js","./index-legacy-308e11e0-1734950731618.js","./icon_default-legacy-fa9bb009-1734950731618.js","./useSpeak-legacy-4037e929-1734950731618.js","./api-legacy-9d2d8545-1734950731618.js","./icon-pan-legacy-9492b61b-1734950731618.js","./api-legacy-f6c76495-1734950731618.js","./ding-legacy-f3656c17-1734950731618.js","./searchArray-legacy-6b8f6cdf-1734950731618.js","./contants-legacy-71300fc2-1734950731618.js","./index-legacy-64cb7403-1734950731618.js","./index-legacy-76ca2135-1734950731618.js","./index-legacy-78d44dfd-1734950731618.js","./index-legacy-4b375817-1734950731618.js","./teacherIcon-legacy-3eeb62c3-1734950731618.js","./index-legacy-f6b9ad0d-1734950731618.js","./index-legacy-e2eb75b7-1734950731618.js"],(function(e,a){"use strict";var l,t,s,n,i,r,d,o,u,c,p,g,v,m,y,h,f,b,w,C,x,j,k,L,S,R,A,F,T,I,G,Y,z,U,D,E,B,V,W,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,ye;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,y=e.aH,h=e.n,f=e.aA,b=e.aI,w=e.w,C=e.D,x=e.$,j=e.C,k=e.T,L=e.a0,S=e.a1,R=e.F,A=e.c,F=e.u,T=e.a,I=e.aG,G=e.l,Y=e.m},e=>{z=e.s},e=>{U=e.S},e=>{D=e.C},e=>{E=e.P},e=>{B=e.a,V=e.g,W=e.c,P=e.b,N=e.d,H=e.u,O=e.e,M=e.f},e=>{X=e.a},e=>{Z=e.N},e=>{K=e.N},e=>{q=e.g,Q=e.c},e=>{J=e.a},e=>{$=e.g,_=e.s},e=>{ee=e.s},e=>{ae=e.T},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.b},e=>{ye=e.u},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const he=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(),y=n(),h=t({gradeYear:null,currentGradeNum:null,currentClass:null,instrumentId:null}),f=n([]),b=n([]);return i((()=>[h.gradeYear,h.currentGradeNum,h.currentClass]),(()=>{h.instrumentId=null,(async()=>{try{const{data:e}=await V({gradeYear:h.gradeYear,currentGradeNum:h.currentGradeNum,currentClass:h.currentClass}),a=e||[];b.value=a}catch{}})()})),r((()=>{(async()=>{try{const{data:e}=await X({}),a=[{label:e+1,value:e+1},{label:e,value:e}];f.value=a}catch{}})()})),()=>d("div",{class:[z.addClass]},[d(o,{"label-placement":"left",model:h,ref:y},{default:()=>[d(u,{path:"gradeYear",rule:[{required:!0,message:"请选择学年"}]},{default:()=>[d(D,c({style:{width:"400px"},options:f.value,placeholder:"选择学年",clearable:!0},{value:h.gradeYear,"onUpdate:value":e=>h.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:h.currentGradeNum,"onUpdate:value":e=>h.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:h.currentClass,"onUpdate:value":e=>h.currentClass=e}),null)]}),d(u,{path:"instrumentId",rule:[{required:!0,message:"请选择乐器"}]},{default:()=>[d(Z,{placeholder:"请选择乐器",value:h.instrumentId,"onUpdate:value":e=>h.instrumentId=e,options:b.value,checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",clearable:!0,filterable:!0,style:{width:"400px"}},null)]})]}),d(p,{class:z.btnGroup,justify:"center"},{default:()=>[d(g,{round:!0,onClick:()=>a("close")},{default:()=>[v("取消")]}),d(g,{round:!0,loading:l.uploading,onClick:()=>{y.value.validate((async e=>{if(!e){l.uploading=!0;try{await B({...h}),m.success("新增成功"),a("close"),a("getList"),l.uploading=!1}catch(t){console.log(t)}l.uploading=!1}}))},type:"primary"},{default:()=>[v("保存")]})]})])}});function fe(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 P({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 W({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:[z.container,z.resetStudentWrap]},[d("div",{class:z.studentTransfer},[d("div",{class:z.studentTransferList},[d("div",{class:z.studentLeft},[d("div",{class:z.listTop},[d("p",null,[e.activeRow.name]),d("span",null,[v("("),e.activeRow.gradeYear,v("学年)")])]),d("div",{class:z.listCore},[d(y,{class:z.chioseCheckAllBox},{default:()=>[d(h,{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(y,null,{default:()=>[d(U,c({placeholder:"请输入学生姓名"},{class:z.searchInput,searchWord:j.value,onChangeValue:e=>j.value=e}),null)]}),d(K,{style:"max-height: 204px;min-height: 204px;margin-top:14px;"},{default:()=>[d(f,{value:C.value,"onUpdate:value":e=>C.value=e},fe(t=F.value.map((e=>d(y,{class:z.chioseCheckBox},{default:()=>[d(h,{value:e.value,label:e.label},null)]}))))?t:{default:()=>[t]})]})]),d("div",{class:[z.bottomLeft,z.bottom]},[d("div",{class:z.bottomWrap},[v("共"),x.value.length,v("名学生")])])]),d("div",{class:z.chioseBox},[d("div",{class:[z.chioseBtn,z.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:z.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:z.studentRight},[d("div",{class:z.listTop},[u.id?d(b,{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:z.showGradeSection},[d("div",null,[u.name,u.gradeYear&&d("span",null,[v("("),u.gradeYear,v("学年)")])]),d(w,{class:z.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:z.listCore},[d(y,{class:z.chioseCheckAllBox},{default:()=>[d(h,{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(y,null,{default:()=>[d(U,c({placeholder:"请输入学生姓名"},{class:z.searchInput,searchWord:S.value,onChangeValue:e=>S.value=e}),null)]}),d(K,{style:"max-height: 204px;min-height: 204px;margin-top:14px;"},{default:()=>[d(f,{value:k.value,"onUpdate:value":e=>k.value=e},fe(s=T.value.map((e=>d(y,{class:z.chioseCheckBox},{default:()=>[d(h,{value:e.value,label:e.label},null)]}))))?s:{default:()=>[s]})]})]),d("div",{class:[z.bottomRight,z.bottom]},[d("div",{class:z.bottomWrap},[v("共"),L.value.length,v("名学生")])])])])]),d(p,{class:z.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 N(R.value),a("close"),a("getList")}catch(e){console.log(e)}})()}},{default:()=>[v("保存")]})]})])}}}),we=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{ee({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{ee({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:_.content,onClick:()=>p()},[d("div",{class:_.backBtn,onClick:e=>{e.stopPropagation(),g()}},[v("跳过")]),d("div",{class:_.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:_.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:_.img,style:e.imgStyle,src:e.img},null),d("div",{class:_.btns,style:e.btnsStyle},[l.step+1==l.steps.length?d(R,null,[d("div",{class:[_.endBtn],onClick:()=>g()},[v("完成")]),d("div",{class:_.nextBtn,onClick:()=>{l.step=0,o()}},[v("再看一遍")])]):d("div",{class:_.btn,onClick:()=>p()},[v("下一步 ("),l.step+1,v("/"),l.steps.length,v(")")])])])))])])]),[[S,s.value,"show"]]):null])}}),Ce=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([]),y=t({currentGradeNum:null,gradeYear:null,currentClass:null,instrumentId:null,id:null});r((()=>{y.currentGradeNum=e.activeRow.currentGradeNum,y.gradeYear=e.activeRow.gradeYear,y.currentClass=e.activeRow.currentClass,y.instrumentId=e.activeRow.instrumentId,y.id=e.activeRow.id,h()}));const h=async()=>{try{const{data:e}=await V({gradeYear:y.gradeYear,currentGradeNum:y.currentGradeNum,currentClass:y.currentClass}),a=e||[];m.value=a}catch{}};return()=>d("div",{class:[z.addClass]},[d(o,{"label-placement":"left",model:y,ref:c},{default:()=>[d(u,{path:"instrumentId",rule:[{required:!0,message:"请选择乐器"}]},{default:()=>[d(Z,{placeholder:"请选择乐器",value:y.instrumentId,"onUpdate:value":e=>y.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:z.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 H({...y}),i.success("修改成功"),a("close"),a("getList"),l.uploading=!1}catch(t){console.log(t)}l.uploading=!1}}))},type:"primary"},{default:()=>[v("保存")]})]})])}}),xe=""+new URL("strudentCore-ce06266f.png",a.meta.url).href,je=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=A();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(w,{src:ue,previewDisabled:!0,class:oe.studentCLose},null)]),d(w,{previewDisabled:!0,class:oe.stunentStart,src:ce},null),d(w,{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/733zxk9bLRDdwFx3Sx59UCDy0mFiNRPrxFP/sDC8mkm7mEageDWSaS19Tx1vRBugejeEWSXYsUxpOxbJoUTQpEG7kj2EWyjQoT3Clz2ZcjRvQxpYKg7evFbQrlDQq0xvQRf5zlPyxU3CnkfXqkJdLxH501vCoEvClDmJXidgMhPx1WjzzlvRp0W0ijq7jTaYbCuEVyFyRhz43Gi8lkOSai7922TRsVPJpk7Em0Kui0GnfDKEWiaBVSL/y1HgulC/mUKecy/lyGDry13Wt1f/xEnwwUnktET/vkL/uDqqgzretUv1xUiRZCb/0ly0kUTkwVa7mUjhsUIggKMgAAAAMHRSTlMADT733oyBTSIZCO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xNYZ61binSj58LsNwqfC1np2Fld4Xl3Hcu6WGXSFm+z++1jzMM5dz/gfPhemuztSlQQpFeQapuegv0h4Hy1vYGHkjvmaRHyebmCsv5zE/yvUlmwPJWC5bzTFhu3rWk+193PlRaF4e13G57Wc6cSPqLshWWc+Nn9BEZy7kCy1sXRMX5cC+Z00paFMjNc36tSH+WstzoAw+kcRTM3EpWWE5nf9tGxvNheZLAcn4nWJ4Yyrn/PefD1d6ceq9O0eslvSSpJ8iVVI8lX5+y3Oq3POC+3/hPda1w/q40bkkOy3s9WM49sNxoS7r/VefFeh2QQmT/zH+mP9tialI65/Rnvf6T13OtXND8dedHpbZAvVan0HVWE2wd+aV+TsX5sdaoNShqFFiBPqdzu3+pn69rzpP1hko9sL2XetTWnS83N4bDjeFGiiHVGsNGY6Ohz9yDNVO71P9pXw5WHISBMABPFnIQC4IH0UoLbemhPewS9SDxBTyITyB9/8fYiZamIWwx6mEh8zEwk5n80y6GudhxMDyGB5bLjvLKkcFsXIhBDFjig09/KK9uHOZjO0FW2zFwkAulE50Fl/be/kN5IXJwEtVvurpTsL3eWH/uR5SPwE1wqskqpwAc7et+VPc11jTrt+625833/B6cxX3f9A2W2SfGHll/sPmdj2EB3pDFOCySNm2D1b4Yb2tn8zefwkKRlLKV7QgHBZs1Gx3p/77mI1gsbiVxF8MKX2dZSqyyfHY0zsje61nzL3/+glWCa0mcXANYKwtLpSqrEQ7P9zhjmbuJcfMpH2awAcbDiswScgbbYFlSKUVVYOmuGTdk3X3IJxmDDd35pSAfXPgdNhfkt/Q7CQ8FeXMIk5/0lgdA/q9fBlCU9WQqZ/4AAAAASUVORK5CYII="},null),d("div",{class:oe.addStudentInfo,id:"preview-container"},[d(w,{class:oe.studentInfoBg,previewDisabled:!0,src:xe},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(w,{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=ye(),a=A(),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(),y=F(),h=T(),f=()=>{l.pagination.page=1,j(),de({current:l.searchForm,saveKey:h.path})},b=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:h.path})},x=async()=>{try{await O({ids:l.removeRow.id}),j(),m.success("删除成功"),l.removeVisiable=!1}catch(e){console.log(e)}},j=async()=>{l.loading=!0;try{const e=await W({...l.searchForm,...l.pagination});l.tableList=e.data.rows,l.pagination.pageTotal=e.data.total,l.loading=!1,setTimeout((()=>{l.tableList.length>0&&(b.value=!0)}),500)}catch(e){l.loading=!1,console.log(e)}},k=e=>{l.activeRow=e,l.studentVisible=!0},B=async e=>{try{e.instrumentId?y.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)}},V=e=>{l.activeRow=e,l.showResetClass=!0},P=async e=>{l.activeRow=e,l.groupVisiable=!0},N=async()=>{console.log(l.activeRow,"row"),l.groupBtnLoading=!0;try{await M({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:z.listWrap},[d("div",{class:z.searchList},[d(o,{"label-placement":"left",inline:!0,ref:i},{default:()=>[d(u,null,{default:()=>[d(U,c({placeholder:"请输入班级名称"},{class:z.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:Q,placeholder:"选择班级",clearable:!0,inline:!0},{value:l.searchForm.currentClass,"onUpdate:value":e=>l.searchForm.currentClass=e}),null)]}),d(u,null,{default:()=>[d(Z,{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:z.addBtn,type:"primary",onClick:()=>l.showaddClass=!0},{default:()=>[v("创建班级")],icon:()=>d(R,null,[d(w,{class:z.addBtnIcon,previewDisabled:!0,src:J},null)])}),d("div",{class:z.tableWrap},[d(I,{class:z.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(le,{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:()=>{y.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:()=>{y.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:()=>V(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:()=>B(e)}):{disabled:!e.upgradeFlag,type:"primary",text:!0,onClick:()=>B(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:()=>{P(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(ae,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(G,{maskClosable:Y,show:l.studentVisible,"onUpdate:show":e=>l.studentVisible=e,preset:"card",class:["modalTitle background",z.studentVisible],title:"学生调整"},{default:()=>[d(be,{activeRow:l.activeRow,onClose:()=>l.studentVisible=!1,onGetList:()=>j()},null)]}),d(G,{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(he,{gradeYearList:l.popSelectYearList,gradeNumList:l.gradeNumList,classArray:Q,onGetList:()=>j(),onClose:()=>l.showaddClass=!1},null)]}),d(G,{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(Ce,{activeRow:l.activeRow,onGetList:()=>j(),onClose:()=>l.showResetClass=!1},null)]}),d(G,{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=>{y.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(G,{maskClosable:Y,show:l.removeVisiable,"onUpdate:show":e=>l.removeVisiable=e,preset:"card",class:["modalTitle",z.removeVisiable],title:"删除班级"},{default:()=>[d("div",{class:z.studentRemove},[d("p",null,[v("确定要删除班级么?"),d("span",null,[v("删除班级信息将会清空")]),v("。")]),d(p,{class:z.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(G,{maskClosable:Y,show:l.groupVisiable,"onUpdate:show":e=>l.groupVisiable=e,preset:"card",class:["modalTitle",z.removeVisiable],title:"创建群聊"},{default:()=>[d("div",{class:z.studentRemove},[d("p",{style:{textAlign:"center"}},[v("是否创建班级群聊")]),d(p,{class:z.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("取消")]})]})])]}),b.value?d(we,null,null):null,l.addStudentVisible?L(d("div",{"onUpdate:show":e=>l.addStudentVisible=e,class:["n-modal-mask",z.popBox]},[d(je,{activeRow:l.activeRow,onClose:()=>{l.addStudentVisible=!1}},null)]),[[S,l.addStudentVisible,"show"]]):null])}}))}}}));