import{g as c}from"./collageManageApi-e21931eb-1783405707921v=1.0.0.js";import{r as i}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{E as n}from"./eleVendor-d42abce8-1783405707921v=1.0.0.js";const C=o=>{const g=i([]);return{getCollageList:async t=>{const e=await c({page:1,size:10,collegeName:t,...o});e.code===0&&(g.value=e.data.listData.map(a=>({label:a.collegeName,value:a.collegeId})))},collageList:g,getPageCollageList:async(t,e,a)=>{e.loading=!0;let s=[];try{const l=await c({page:e.page,size:10,collegeName:t,collegeId:a,...o});if(l.code===0)return s=l.data.listData.map(r=>({label:`${r.collegeName}`,value:r.collegeId})),[s,l.data.total]}catch{n.error("\u83B7\u53D6\u5B66\u9662\u5217\u8868\u5931\u8D25")}finally{e.loading=!1}}}};export{C as u};
