import{_ as d}from"./BaseForm.vue_vue_type_script_setup_true_lang-05a2cb59-1782468512657v=1.0.0.js";import{a as g}from"./clubManageApi-720ad24a-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 as n,al as v,y as b,H as C,I as E,Q as y,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"./keepAlive-a871c896-1782468512657v=1.0.0.js";const B=c({name:"managerManageAdd"}),P=c({...B,setup(F){const{closeCurrent:l}=_(),s=n({collegeId:"",clubName:""}),a=n(!1),f=()=>{l()};n("");const p=async r=>{a.value=!0;try{let e=g,t="\u65B0\u589E\u6210\u529F",o=await e(r);o.code==0?(u({type:"success",message:`${t}!`}),l()):u.warning(o.msg),a.value=!1}catch{a.value=!1}};return(r,e)=>{const t=v("HZPageLayout");return b(),C(t,{title:"\u65B0\u589E\u4FF1\u4E50\u90E8",isBack:!0},{default:E(()=>[y(d,{value:m(s),"onUpdate:value":e[0]||(e[0]=o=>i(s)?s.value=o:null),loading:m(a),"onUpdate:loading":e[1]||(e[1]=o=>i(a)?a.value=o:null),onCancel:f,onSubmit:p},null,8,["value","loading"])]),_:1})}}});export{P as default};
