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