import{_}from"./BaseForm.vue_vue_type_script_setup_true_lang-b7f8d153-1782729249161v=1.0.0.js";import{a as v,a2 as b,a1 as C}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{u as w}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{E as l}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{y as f,r as u,m as I,al as k,z as B,I as E,J as F,R as q,u as i,k as c}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";const x=f({name:"athleteInfoEdit"}),M=f({...x,setup(L){const{closeCurrent:m}=w(),d=u(null),o=u({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:""}),t=u(!1),s=v(),p=()=>{m()},g=async n=>{t.value=!0;try{let e=b,r="\u66F4\u65B0\u6210\u529F",a=await e(n);a.code==0?l({type:"success",message:`${r}!`}):l.warning(a.msg),t.value=!1,m()}catch{t.value=!1}},y=async n=>{let e=await C(n);if(e.code!=0){l.warning(e.msg);return}o.value=e.data};return I(()=>{s.query.id&&(d.value=s.query.id,y(s.query.id))}),(n,e)=>{const r=k("HZPageLayout");return B(),E(r,{isBack:!0,title:i(s).meta.title},{default:F(()=>[q(_,{value:i(o),"onUpdate:value":e[0]||(e[0]=a=>c(o)?o.value=a:null),loading:i(t),"onUpdate:loading":e[1]||(e[1]=a=>c(t)?t.value=a:null),onCancel:p,onSubmit:g},null,8,["value","loading"])]),_:1},8,["title"])}}});export{M as default};
