import{g as l}from"./majorManageApi-caa0d416-1782468512657v=1.0.0.js";import{E as g}from"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";import{r as m}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";const M=()=>{const o=m([]);return{_getMajorManageList:async r=>{const a=await l({page:1,size:10,majorName:r});a.code===0&&(o.value=a.data.listData.map(t=>({label:t.majorName,value:t.majorId})))},majorIdsOptions:o,getPageMajorList:async(r,a,t,n)=>{a.loading=!0;let s=[];try{const e=await l({page:a.page,size:10,majorName:r,...n});if(e.code===0)return s=e.data.listData.map(i=>({label:`${i.majorName}`,value:i.majorId})),[s,e.data.total]}catch{g.error("\u83B7\u53D6\u5B66\u9662\u5217\u8868\u5931\u8D25")}finally{a.loading=!1}}}};export{M as u};
