import g from"./BaseForm-2df3d3d4-1782729249161v=1.0.0.js";import{c as y}from"./eventTypeApi-be275193-1782729249161v=1.0.0.js";import{u as v}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as _}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as m}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{y as c,r as n,al as b,z as C,I as B,J as E,R as T,u as r,k as i}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./auditSettingApi-3eb5bec3-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";const k=c({name:"eventTypeAdd"}),P=c({...k,setup(F){const{closeCurrent:l}=v(),o=n({type:"",name:"",dictTypeSign:"",status:"",roleIds:[],creatorOrganUnitType:"",dynamicTags:[]}),t=n(!1),p=()=>{l()};n("");const f=_(),d=async u=>{t.value=!0;try{let e=y,s="\u65B0\u589E\u6210\u529F",a=await e(u);a.code==0?(m({type:"success",message:`${s}!`}),l()):m.warning(a.msg),t.value=!1}catch{t.value=!1}};return(u,e)=>{const s=b("HZPageLayout");return C(),B(s,{isBack:!0,title:r(f).meta.title},{default:E(()=>[T(g,{value:r(o),"onUpdate:value":e[0]||(e[0]=a=>i(o)?o.value=a:null),loading:r(t),"onUpdate:loading":e[1]||(e[1]=a=>i(t)?t.value=a:null),onCancel:p,onSubmit:d},null,8,["value","loading"])]),_:1},8,["title"])}}});export{P as default};
