import p from"./BaseForm-8a66d404-1782468512657v=1.0.0.js";import{a as g}from"./accountPermissionManageApi-2cda4906-1782468512657v=1.0.0.js";import{u as v}from"./useFormEdit-57ddb914-1782468512657v=1.0.0.js";import{E as l}from"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";import{x as c,r,al as _,y as b,H as y,I as B,Q as C,u as m,l as i}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import"./eleValidate-846b8983-1782468512657v=1.0.0.js";import"./index-c87bcfde-1782468512657v=1.0.0.js";import"./role-d87c2313-1782468512657v=1.0.0.js";import"./keepAlive-a871c896-1782468512657v=1.0.0.js";const I=c({name:"managerManageAdd"}),N=c({...I,setup(E){const{closeCurrent:n}=v(),o=r({schManagerType:"",tsId:"",collegeIds:"",majorIds:"",clubIds:"",classIds:"",tsName:""}),a=r(!1),d=()=>{n()};r("");const f=async u=>{a.value=!0;try{let e=g,t="\u65B0\u589E\u6210\u529F",s=await e(u);s.code==0?(l({type:"success",message:`${t}!`}),n()):l.warning(s.msg),a.value=!1}catch{a.value=!1}};return(u,e)=>{const t=_("HZPageLayout");return b(),y(t,{isBack:!0,title:"\u8D26\u53F7\u6743\u9650\u65B0\u589E"},{default:B(()=>[C(p,{value:m(o),"onUpdate:value":e[0]||(e[0]=s=>i(o)?o.value=s:null),loading:m(a),"onUpdate:loading":e[1]||(e[1]=s=>i(a)?a.value=s:null),onCancel:d,onSubmit:f},null,8,["value","loading"])]),_:1})}}});export{N as default};
