import y from"./BaseForm-084d2b82-1782572373740v=1.0.0.js";import{a as g}from"./activityStyleApi-8db7ffaf-1782572373740v=1.0.0.js";import{u as C}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import x from"./PreviewIframe-5da61b26-1782572373740v=1.0.0.js";import{a as N,_ as b}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{a1 as E,E as d}from"./eleVendor-48a7d3b8-1782572373740v=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-866bb149-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";import"./useIframe-1ee24748-1782572373740v=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};
