import{_ as v}from"./BaseForm.vue_vue_type_script_setup_true_lang-41dc5ebe-1782729249161v=1.0.0.js";import{a as _,a8 as C}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{u as b}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{E as i}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{y as c,r,al as k,z as B,I as E,J as S,R as w,u,k as m}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";const x=c({name:"volunteerInfoAdd"}),U=c({...x,props:{type:{type:String,default:"volunteer"}},setup(p){const{closeCurrent:l}=b(),o=r({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:""}),f=p,t=r(!1),d=()=>{l()};r("");const g=_(),y=async s=>{t.value=!0;try{let e=C,n="\u65B0\u589E\u6210\u529F";s.recruitType=f.type;let a=await e(s);a.code==0?(i({type:"success",message:`${n}!`}),l()):i.warning(a.msg),t.value=!1}catch{t.value=!1}};return(s,e)=>{const n=k("HZPageLayout");return B(),E(n,{isBack:!0,title:u(g).meta.title},{default:S(()=>[w(v,{value:u(o),"onUpdate:value":e[0]||(e[0]=a=>m(o)?o.value=a:null),loading:u(t),"onUpdate:loading":e[1]||(e[1]=a=>m(t)?t.value=a:null),onCancel:d,onSubmit:y},null,8,["value","loading"])]),_:1},8,["title"])}}});export{U as _};
