import{g as c}from"./collageManageApi-6fb2328f-1782468512657v=1.0.0.js";import{E as i}from"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";import{r as n}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";const C=o=>{const g=n([]);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{i.error("\u83B7\u53D6\u5B66\u9662\u5217\u8868\u5931\u8D25")}finally{e.loading=!1}}}};export{C as u};
