import{F as g,G as p}from"./index-5a47c360-1785478469326v=1.0.0.js";import{E as f}from"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";import{r as u,k as j}from"./vendor-46662d77-1785478469326v=1.0.0.js";const y=(m=!0,o={})=>{const l=u([]),c=u(""),i=async(a,e)=>{const s=await g({page:1,size:10,majorName:a,collegeId:e,...o});s.code===0&&(l.value=s.data.listData.map(r=>({label:r.majorName,value:r.majorId})))},n=async(a,e,s)=>{e.loading=!0;let r=[];try{const t=await g({page:e.page,size:10,majorName:a,majorId:s,collegeId:c.value,...o});if(t.code===0)return r=t.data.listData.map(d=>({label:`${d.majorName}`,value:d.majorId})),[r,t.data.total]}catch{f.error("\u83B7\u53D6\u4E13\u4E1A\u5217\u8868\u5931\u8D25")}finally{e.loading=!1}};return j(()=>{m&&i()}),{majorIdsOptions:l,_getMajorManageList:i,getPageMajorList:n,collegeIdParam:c}},N=(m=!0)=>{const o=u([]),l=u(""),c=async(n,a)=>{const e=await p({page:1,size:10,className:n,majorId:a});e.code===0&&(o.value=e.data.listData.map(s=>({label:s.className,value:s.classId})))},i=async(n,a,e,s)=>{a.loading=!0;let r=[];try{const t=await p({page:a.page,size:10,className:n,majorId:l.value,...s});if(t.code===0)return r=t.data.listData.map(d=>({label:`${d.className}`,value:d.classId})),[r,t.data.total]}catch{f.error("\u83B7\u53D6\u73ED\u7EA7\u5217\u8868\u5931\u8D25")}finally{a.loading=!1}};return j(()=>{m&&c("")}),{classOptions:o,getClass:c,getPageClass:i,majorIdParam:l}};export{y as a,N as u};
