import g from"./BaseForm-37bc4868-1782729249161v=1.0.0.js";import{b as v}from"./signupTemplateApi-da258822-1782729249161v=1.0.0.js";import{u as y}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as _}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as u}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{y as i,r,al as b,z as C,I as B,J as k,R as E,u as n,k as p}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./eventTypeApi-be275193-1782729249161v=1.0.0.js";import"./PersonalFormCom.vue_vue_type_script_setup_true_lang-9bb9c282-1782729249161v=1.0.0.js";import"./useSignupTemplate-2b906224-1782729249161v=1.0.0.js";import"./Imgs-0a9c1d5a-1782729249161v=1.0.0.js";import"./useDynamicFormHook-140c1b9e-1782729249161v=1.0.0.js";import"./UnitFormCom-36792dae-1782729249161v=1.0.0.js";import"./TeamFormCom.vue_vue_type_script_setup_true_lang-7f195220-1782729249161v=1.0.0.js";import"./DoubleFormCom.vue_vue_type_script_setup_true_lang-7cc4de51-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";const F=i({name:"signupTemplateAdd"}),N=i({...F,setup(R){const{closeCurrent:l}=y(),a=r({eventApplyMode:"person",name:"",eventTypeId:null,applyMemberType:"school"}),t=r(!1),f=()=>{l()};r("");const c=_(),d=async m=>{t.value=!0;try{let e=v,s="\u65B0\u589E\u6210\u529F",o=await e(m);o.code==0?(u({type:"success",message:`${s}!`}),sessionStorage.setItem("needRefresh","true"),l()):u.warning(o.msg),t.value=!1}catch{t.value=!1}};return(m,e)=>{const s=b("HZPageLayout");return C(),B(s,{isBack:!0,title:n(c).meta.title},{default:k(()=>[E(g,{value:n(a),"onUpdate:value":e[0]||(e[0]=o=>p(a)?a.value=o:null),loading:n(t),"onUpdate:loading":e[1]||(e[1]=o=>p(t)?t.value=o:null),onCancel:f,onSubmit:d},null,8,["value","loading"])]),_:1},8,["title"])}}});export{N as default};
