import{x as c,r,al as f,y as g,H as _,I as v,Q as b,u as l,l as m}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import y from"./BaseForm-380e8e61-1783405707921v=1.0.0.js";import{a as B}from"./managerManageApi-d2a7b827-1783405707921v=1.0.0.js";import{u as M}from"./useFormEdit-38c2c94d-1783405707921v=1.0.0.js";import{E as i}from"./eleVendor-d42abce8-1783405707921v=1.0.0.js";import{_ as C}from"./index-71d7b18c-1783405707921v=1.0.0.js";import"./collageManageApi-e21931eb-1783405707921v=1.0.0.js";import"./majorManageApi-836cbfa2-1783405707921v=1.0.0.js";import"./clubManageApi-2b55464b-1783405707921v=1.0.0.js";import"./classManageApi-893dbbd8-1783405707921v=1.0.0.js";import"./staffManageApi-119a99cf-1783405707921v=1.0.0.js";import"./keepAlive-6cb682d1-1783405707921v=1.0.0.js";const I=c({name:"managerManageAdd"}),x=c({...I,setup(E){const{closeCurrent:n}=M(),s=r({schManagerType:"",tsId:"",collegeIds:"",majorIds:"",clubIds:"",classIds:"",tsName:""}),e=r(!1),d=()=>{n()};r("");const p=async u=>{e.value=!0;try{let a=B,t="\u65B0\u589E\u6210\u529F",o=await a(u);o.code==0?(i({type:"success",message:`${t}!`}),n()):i.warning(o.msg),e.value=!1}catch{e.value=!1}};return(u,a)=>{const t=f("HZPageLayout");return g(),_(t,{title:"\u65B0\u589E\u7BA1\u7406\u5458",isBack:!0},{default:v(()=>[b(y,{value:l(s),"onUpdate:value":a[0]||(a[0]=o=>m(s)?s.value=o:null),loading:l(e),"onUpdate:loading":a[1]||(a[1]=o=>m(e)?e.value=o:null),onCancel:d,onSubmit:p},null,8,["value","loading"])]),_:1})}}}),j=C(x,[["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/managerManage/managerManage/add.vue"]]);export{j as default};
