catchData-legacy-0a8b2cdd-1694675857467.js 1.2 KB

1
  1. System.register(["./index-legacy-35b1c5cd-1694675857467.js"],(function(e,t){"use strict";var s,i,r;return{setters:[e=>{s=e.da,i=e.dv,r=e.dw}],execute:function(){e("u",s("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 i({enableFlag:!0,delFlag:0,page:1,rows: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,rows:999});return this.setMusicCategories(e.rows||[]),Promise.resolve()}catch(e){return Promise.reject(e)}}}}))}}}));