import{_ as f}from"./BaseForm.vue_vue_type_script_setup_true_lang-4e97b225-1782468512657v=1.0.0.js";import{a as g}from"./managerManageApi-3f76fe12-1782468512657v=1.0.0.js";import{u as _}from"./useFormEdit-57ddb914-1782468512657v=1.0.0.js";import{E as u}from"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";import{x as c,r,al as v,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"./index-c87bcfde-1782468512657v=1.0.0.js";import"./collageManageApi-6fb2328f-1782468512657v=1.0.0.js";import"./majorManageApi-caa0d416-1782468512657v=1.0.0.js";import"./clubManageApi-720ad24a-1782468512657v=1.0.0.js";import"./classManageApi-9a7ec3ed-1782468512657v=1.0.0.js";import"./staffManageApi-23e00b5a-1782468512657v=1.0.0.js";import"./keepAlive-a871c896-1782468512657v=1.0.0.js";const I=c({name:"managerManageAdd"}),Z=c({...I,setup(E){const{closeCurrent:n}=_(),o=r({schManagerType:"",tsId:"",collegeIds:"",majorIds:"",clubIds:"",classIds:"",tsName:""}),a=r(!1),p=()=>{n()};r("");const d=async l=>{a.value=!0;try{let e=g,t="\u65B0\u589E\u6210\u529F",s=await e(l);s.code==0?(u({type:"success",message:`${t}!`}),n()):u.warning(s.msg),a.value=!1}catch{a.value=!1}};return(l,e)=>{const t=v("HZPageLayout");return b(),y(t,{title:"\u65B0\u589E\u7BA1\u7406\u5458",isBack:!0},{default:B(()=>[C(f,{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:p,onSubmit:d},null,8,["value","loading"])]),_:1})}}});export{Z as default};
