1 |
- import{d9 as t,dt as a,du as r,V as s}from"./index-bfbabd78.js";const n=t("catch-store",{state:()=>({bookVersionList:[],musicTypeList:[],subjectList:[]}),getters:{getBookVersion(){return this.bookVersionList},getMusicCategories(){return this.musicTypeList},getAllMusicCategories(){return[{name:"全部",id:null},...this.musicTypeList]},getSubjectList(){return this.subjectList},getSubjectAllList(){return[{name:"全部",id:null},...this.subjectList]}},actions:{setBookVersion(e){this.bookVersionList=e},setMusicCategories(e){this.musicTypeList=e},setSubjects(e){this.subjectList=e},async getSubjects(){try{if(this.getSubjectList&&this.getSubjectList.length>0)return Promise.resolve();const{data:e}=await a({enableFlag:!0,delFlag:0,page:1,row:999});return this.setSubjects(e.rows||[]),Promise.resolve()}catch(e){return Promise.reject(e)}},async getMusicSheetCategory(){try{if(this.getMusicCategories&&this.getMusicCategories.length>0)return Promise.resolve();const{data:e}=await r({enable:!0,page:1,row:999});return this.setMusicCategories(e.rows||[]),Promise.resolve()}catch(e){return Promise.reject(e)}}}}),i=e=>s.post("/edu-app/lessonCourseware/page",{data:e}),u=e=>s.get("/edu-app/lessonCourseware/detail/"+e.id,{}),c=e=>s.post("/edu-app/lessonCourseware/remove",{data:e}),p=e=>s.post("/edu-app/teacherKnowledgeMaterial/queryCourseware",{data:e}),d=e=>s.post("/edu-app/teacherKnowledgeMaterial/saveCourseware",{data:e}),g=e=>s.post("/edu-app/teacherKnowledgeMaterial/delete",{requestType:"form",data:e}),l=e=>s.post("/edu-app/lessonPreTraining/page",{data:e}),h=e=>s.post("/edu-app/lessonPreTraining/add",{data:e}),b=e=>s.post("/edu-app/lessonPreTraining/update",{data:e}),P=e=>s.post("/edu-app/lessonPreTraining/delete",{data:e}),m=e=>s.post("/edu-app/lessonPreTraining/batchSave",{data:e}),w=e=>s.post("/edu-app/musicSheet/page",{data:e}),C=e=>s.post("/edu-app/classGroup/page",{data:e}),S=e=>s.post("/edu-app/lessonTraining/add",{data:e}),T=e=>s.post("/edu-app/courseSchedule/start",{data:e}),L=e=>s.post("/edu-app/bookVersion/page",{data:e});export{c as a,L as b,T as c,u as d,C as e,S as f,m as g,l as h,P as i,b as j,h as k,i as l,w as m,p as q,d as s,g as t,n as u};
|