import{_ as y}from"./BaseForm.vue_vue_type_script_setup_true_lang-47917d9e-1782572373740v=1.0.0.js";import{u as _,g as b}from"./eventSettingApi-0c9441a0-1782572373740v=1.0.0.js";import{u as C}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as E}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as u}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as f,r as l,m as S,al as w,z as k,I as B,J as F,R as q,u as i,k as c}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const x=f({name:"eventSettingEdit"}),Z=f({...x,setup(L){const{closeCurrent:m}=C(),d=l(null),s=l({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:""}),t=l(!1),o=E(),p=()=>{m()},g=async n=>{t.value=!0;try{let e=_,r="\u66F4\u65B0\u6210\u529F",a=await e(n);a.code==0?u({type:"success",message:`${r}!`}):u.warning(a.msg),t.value=!1,m()}catch{t.value=!1}},v=async n=>{let e=await b(n);if(e.code!=0){u.warning(e.msg);return}s.value=e.data};return S(()=>{o.query.id&&(d.value=o.query.id,v(o.query.id))}),(n,e)=>{const r=w("HZPageLayout");return k(),B(r,{isBack:!0,title:i(o).meta.title},{default:F(()=>[q(y,{value:i(s),"onUpdate:value":e[0]||(e[0]=a=>c(s)?s.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{Z as default};
