import y from"./BaseForm-a1ec1c05-1782729249161v=1.0.0.js";import{a as g}from"./activityStyleApi-17b52feb-1782729249161v=1.0.0.js";import{u as C}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import x from"./PreviewIframe-4aa0ca39-1782729249161v=1.0.0.js";import{a as N,_ as b}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{a1 as E,E as d}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{y as f,r as m,m as S,al as M,z as P,A as T,R as n,J as c,u as r,k as u,M as w}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";import"./useIframe-b1cfd5ff-1782729249161v=1.0.0.js";const B={class:"outerContainer"},F=f({name:"activityStyleAdd"}),k=f({...F,setup(A){const{closeCurrent:i}=C(),t=m({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:"",tags:[],eventName:"",createTime:""}),s=m(!1),p=()=>{i()};m("");const v=N(),_=async l=>{s.value=!0;try{let e=g,o="\u65B0\u589E\u6210\u529F",a=await e(l);a.code==0?(d({type:"success",message:`${o}!`}),i()):d.warning(a.msg),s.value=!1}catch{s.value=!1}};return S(()=>{const e=JSON.parse(sessionStorage.getItem("eventParams")||"{}").eventName;e&&(t.value.eventName=e,t.value.createTime=E().format("YYYY-MM-DD HH:mm:ss"))}),(l,e)=>{const o=M("HZPageLayout");return P(),T("div",B,[n(o,{isBack:!0,title:r(v).meta.title,style:{flex:"4"}},{default:c(()=>[n(y,{value:r(t),"onUpdate:value":e[0]||(e[0]=a=>u(t)?t.value=a:null),loading:r(s),"onUpdate:loading":e[1]||(e[1]=a=>u(s)?s.value=a:null),onCancel:p,onSubmit:_},null,8,["value","loading"])]),_:1},8,["title"]),n(o,{title:"\u6548\u679C\u9884\u89C8",style:{flex:"2","min-width":"300px"}},{default:c(()=>[w(" {{ baseForm }} "),n(x,{value:r(t),"onUpdate:value":e[2]||(e[2]=a=>u(t)?t.value=a:null),iframeMode:"EVENT_ADD",pageType:"add"},null,8,["value"])]),_:1})])}}});const O=b(k,[["__scopeId","data-v-75f438c8"]]);export{O as default};
