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