import C from"./BaseForm-a1ec1c05-1782729249161v=1.0.0.js";import{u as x,g as b}from"./activityStyleApi-17b52feb-1782729249161v=1.0.0.js";import{u as w}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import E from"./PreviewIframe-4aa0ca39-1782729249161v=1.0.0.js";import{a as F,_ as S}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as i}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{y as f,r as m,m as B,al as k,z as A,A as M,R as r,J as p,u,k as d,M as T}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 U={class:"outerContainer"},q=f({name:"activityStyleEdit"}),D=f({...q,setup(I){const{closeCurrent:c}=w(),_=m(null),a=m({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:""}),o=m(!1),n=F(),g=()=>{c()},y=async l=>{o.value=!0;try{let e=x,s="\u66F4\u65B0\u6210\u529F",t=await e(l);t.code==0?i({type:"success",message:`${s}!`}):i.warning(t.msg),o.value=!1,c()}catch{o.value=!1}},v=async l=>{var s,t;let e=await b(l);if(e.code!=0){i.warning(e.msg);return}e.data.tags=((s=e.data.tags)==null?void 0:s.length)>0?(t=e.data.tags)==null?void 0:t.split(","):[],a.value=e.data};return B(()=>{n.query.id&&(_.value=n.query.id,v(n.query.id))}),(l,e)=>{const s=k("HZPageLayout");return A(),M("div",U,[r(s,{isBack:!0,title:u(n).meta.title,style:{flex:"4"}},{default:p(()=>[r(C,{value:u(a),"onUpdate:value":e[0]||(e[0]=t=>d(a)?a.value=t:null),loading:u(o),"onUpdate:loading":e[1]||(e[1]=t=>d(o)?o.value=t:null),onCancel:g,onSubmit:y},null,8,["value","loading"])]),_:1},8,["title"]),r(s,{title:"\u6548\u679C\u9884\u89C8",style:{flex:"2","min-width":"300px"}},{default:p(()=>[T(" {{ baseForm }} "),r(E,{value:u(a),"onUpdate:value":e[2]||(e[2]=t=>d(a)?a.value=t:null),iframeMode:"EVENT_ADD",pageType:"add"},null,8,["value"])]),_:1})])}}});const O=S(D,[["__scopeId","data-v-a0357c4e"]]);export{O as default};
