import{u as R}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{g as L}from"./noticeApi-d129a4e2-1782572373740v=1.0.0.js";import{b as A,a as N,D as T,_ as h}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as q}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as f,r as t,m as S,al as u,z as i,I as d,J as a,R as n,u as s,B as p,A as H,Q as M,a4 as V,F as J,O}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const Z={class:"pt20 mt30"},z=f({name:"noticeDetail"}),Q=f({...z,setup(j){const y=t({xs:24,sm:22,md:20,lg:14,xl:23}),F=t({xs:24,sm:24,md:12,lg:12,xl:12}),g=t({xs:24,sm:22,md:18,lg:16,xl:8}),{closeCurrent:b}=R();A();const r=t({}),l=N(),k=t(""),v=t([{key:"name",col:1,label:"\u516C\u544A\u6807\u9898"},{key:"coverImage",col:1,label:"\u5C01\u9762\u56FE\u7247",type:"img"},{key:"isPopupRemind",col:1,label:"\u5F39\u7A97\u63D0\u9192",enum:{0:"\u5426",1:"\u662F"}},{key:"popupRemindType",col:1,label:"\u63D0\u9192\u65B9\u5F0F",enum:{first:"\u9996\u6B21\u767B\u5F55",every:"\u6BCF\u6B21\u767B\u5F55"}},{key:"content",col:1,label:"\u6B63\u6587",type:"richText"},{key:"updateTime",col:1,label:"\u53D1\u5E03\u65F6\u95F4"},{key:"isHomeRecommend",col:1,label:"\u662F\u5426\u9996\u9875\u63A8\u8350",enum:{0:"\u5426",1:"\u662F"}},{key:"auditStatusCn",col:1,label:"\u72B6\u6001"},{key:"createTime",col:2,label:"\u521B\u5EFA\u65F6\u95F4"}]),B=t({1:y,2:F,3:g}),x=async _=>{var m,c;let e=await L(_);if(e.code!==0){q.error(e.msg);return}e.data,e.data.coverImage=(c=(m=JSON.parse(e.data.coverImage||"[]"))==null?void 0:m[0])==null?void 0:c.url,r.value={...e.data}};S(()=>{l.query.id&&(k.value=l.query.id,r.value.id=l.query.id,x(l.query.id))});const C=()=>{b()};return(_,e)=>{const m=u("PaCol"),c=u("PaRow"),I=u("el-button"),w=u("el-form-item"),D=u("el-form"),E=u("HZPageLayout");return i(),d(E,{isBack:!0,title:s(l).meta.title},{default:a(()=>[n(D,{model:s(r),ref:"ruleFormRef"},{default:a(()=>[e[1]||(e[1]=p("div",{class:"mt16 mb28"},null,-1)),n(c,null,{default:a(()=>[(i(!0),H(M,null,V(s(v),(o,P)=>(i(),d(m,J({key:P},{ref_for:!0},s(B)[o.col]),{default:a(()=>[n(T,{label:o.label,value:s(r)[o.key],type:o.type,enum:o.enum,withFormItem:o.withFormItem},null,8,["label","value","type","enum","withFormItem"])]),_:2},1040))),128))]),_:1}),n(w,null,{default:a(()=>[p("div",Z,[n(I,{onClick:C},{default:a(()=>e[0]||(e[0]=[O("\u8FD4\u56DE",-1)])),_:1,__:[0]})])]),_:1})]),_:1,__:[1]},8,["model"])]),_:1},8,["title"])}}});const $=h(Q,[["__scopeId","data-v-5dc2e2a9"]]);export{$ as default};
