1 |
- System.register(["./index-legacy-70258ca2-1694078809672.js","./index-legacy-da1c415f-1694078809672.js","./index.module-legacy-7b43c8af-1694078809672.js","./index-legacy-858c391e-1694078809672.js","./api-legacy-86f8b9e5-1694078809672.js","./catchData-legacy-1c3de09a-1694078809672.js"],(function(e,t){"use strict";var a,l,s,u,d,n,c,o,i,r,p,v,w,m,y,j,I,g,b,f,h,C=document.createElement("style");return C.textContent="._previewWindow_1jnin_1{width:100%;height:100%}\n",document.head.appendChild(C),{setters:[e=>{a=e.A},e=>{l=e.d,s=e.bB,u=e.y,d=e.f,n=e.v,c=e.F,o=e.e,i=e.b,r=e.r,p=e.n,v=e.N,w=e.g,m=e.x,y=e.w,j=e.j,I=e.k},e=>{g=e.s},e=>{b=e.C},e=>{f=e.r},e=>{h=e.u}],execute:function(){const t="_previewWindow_1jnin_1";e("P",l({name:"preview-window",props:{show:{type:Boolean,default:!1},type:{type:String,default:""},params:{type:Object,default:()=>({})}},emit:["update:show"],setup(e,{emit:l}){const{show:o,type:i,params:r}=s(e);return u((()=>e.show),(()=>{o.value=e.show})),u((()=>e.type),(()=>{i.value=e.type})),u((()=>e.params),(()=>{r.value=e.params})),()=>d(c,null,[d(n,{show:o.value,"onUpdate:show":[e=>o.value=e,()=>{l("update:show",o.value)}],class:t,showIcon:!1,displayDirective:"show"},{default:()=>[d(c,null,[o.value?"attend"==i.value?d(a,{type:r.value.type||"",subjectId:r.value.subjectId||"",detailId:r.value.detailId||"",classGroupId:r.value.classGroupId||"",lessonCourseId:r.value.lessonCourseId||"",classId:r.value.classId||"",onClose:()=>l("update:show",!1)},null):"notation"==i.value?d("iframe",{src:r.value.src},null):"":""])]})])}})),e("U",l({props:{activeRow:{type:Object,default:()=>({id:""})},subjectList:{type:Array,default:()=>[]}},name:"resetStudent",emits:["close","getList","confirm"],setup(e,{emit:t}){const a=h(),l=o({uploading:!1}),s=i(),u=r([]),n=r(),c=o({currentGradeNum:null,currentClass:null,subjectId:null,id:null});return p((async()=>{await a.getSubjects(),u.value=[{id:null,name:"选择声部"},...a.getSubjectList],c.currentGradeNum=e.activeRow.currentGradeNum,c.currentClass=e.activeRow.currentClass,c.subjectId=e.activeRow.subjectId,c.id=e.activeRow.id})),()=>d("div",{class:[g.addClass]},[d(v,{"label-placement":"left",model:c,ref:n},{default:()=>[d(w,{path:"subjectId",rule:[{required:!0,message:"请选择声部"}]},{default:()=>[d(b,m({style:{width:"400px"},options:u.value,placeholder:"选择声部",labelField:"name",valueField:"id",clearable:!0},{value:c.subjectId,"onUpdate:value":e=>c.subjectId=e}),null)]})]}),d(y,{class:g.btnGroup,justify:"center"},{default:()=>[d(j,{round:!0,onClick:()=>t("close")},{default:()=>[I("取消")]}),d(j,{round:!0,loading:l.uploading,onClick:()=>{n.value.validate((async a=>{if(!a){l.uploading=!0;try{await f({...c}),s.success("修改成功"),t("close"),t("confirm",{lastUseCoursewareId:e.activeRow.lessonCoursewareId,unit:e.activeRow.lessonCoursewareKnowledgeDetailId,subjectId:c.subjectId,name:e.activeRow.name,classGroupId:e.activeRow.id}),t("getList")}catch(u){console.log(u)}l.uploading=!1}}))},type:"primary"},{default:()=>[I("确定")]})]})])}}))}}}));
|