import{x as i,r as n,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-f44dbcc5-1783405707921v=1.0.0.js";import{a as B}from"./accountPermissionManageApi-6b6d66fe-1783405707921v=1.0.0.js";import{u as C}from"./useFormEdit-38c2c94d-1783405707921v=1.0.0.js";import{E as c}from"./eleVendor-d42abce8-1783405707921v=1.0.0.js";import{_ as I}from"./index-71d7b18c-1783405707921v=1.0.0.js";import"./eleValidate-a6aac0d6-1783405707921v=1.0.0.js";import"./role-ca48e7dd-1783405707921v=1.0.0.js";import"./keepAlive-6cb682d1-1783405707921v=1.0.0.js";const x=i({name:"managerManageAdd"}),E=i({...x,setup(F){const{closeCurrent:r}=C(),o=n({schManagerType:"",tsId:"",collegeIds:"",majorIds:"",clubIds:"",classIds:"",tsName:""}),a=n(!1),d=()=>{r()};n("");const p=async u=>{a.value=!0;try{let e=B,t="\u65B0\u589E\u6210\u529F",s=await e(u);s.code==0?(c({type:"success",message:`${t}!`}),r()):c.warning(s.msg),a.value=!1}catch{a.value=!1}};return(u,e)=>{const t=f("HZPageLayout");return g(),_(t,{isBack:!0,title:"\u8D26\u53F7\u6743\u9650\u65B0\u589E"},{default:v(()=>[b(y,{value:l(o),"onUpdate:value":e[0]||(e[0]=s=>m(o)?o.value=s:null),loading:l(a),"onUpdate:loading":e[1]||(e[1]=s=>m(a)?a.value=s:null),onCancel:d,onSubmit:p},null,8,["value","loading"])]),_:1})}}}),D=I(E,[["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/accountPermissionManage/add.vue"]]);export{D as default};
