import{_ as v}from"./BaseForm.vue_vue_type_script_setup_true_lang-658e5317-1782572373740v=1.0.0.js";import{a as _,a8 as C}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{u as b}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{E as i}from"./eleVendor-48a7d3b8-1782572373740v=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-866bb149-1782572373740v=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 _};
