import{g as l}from"./majorManageApi-836cbfa2-1783405707921v=1.0.0.js";import{r as g}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{E as m}from"./eleVendor-d42abce8-1783405707921v=1.0.0.js";const M=()=>{const o=g([]);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{m.error("\u83B7\u53D6\u5B66\u9662\u5217\u8868\u5931\u8D25")}finally{a.loading=!1}}}};export{M as u};
