import{u as h}from"./useFormEdit-61a257a4-1782111760424v=1.0.0.js";import{g as D}from"./specialWorkPublicApi-04f6012b-1782111760424v=1.0.0.js";import{a as T,f as P,_ as L}from"./index-996f931c-1782111760424v=1.0.0.js";import{E as N}from"./eleVendor-99a45232-1782111760424v=1.0.0.js";import{m as F,a as t,e as q,ai as i,p as n,M as p,O as r,t as u,R as d,u as c,q as f,S as m,F as A,a8 as M,T as w,U as I}from"./vendor-7f807b9d-1782111760424v=1.0.0.js";import"./tabs-cb939388-1782111760424v=1.0.0.js";const S={class:"container"},V=["innerHTML"],W={key:0,class:"files"},H={class:"pt20 mt30"},O=F({name:"specialWorkPublicDetail"}),R=F({...O,setup(J){const y=t({xs:24,sm:22,md:20,lg:14,xl:23}),k=t({xs:24,sm:24,md:12,lg:12,xl:12}),v=t({xs:24,sm:22,md:18,lg:16,xl:8}),{closeCurrent:E}=h(),a=t({}),o=T(),b=t("");t([{key:"year",col:1,label:"\u5E74\u4EFD"},{key:"title",col:1,label:"\u5DE5\u4F5C\u540D\u79F0"},{key:"specialWorkTypeCn",col:1,label:"\u5DE5\u4F5C\u7C7B\u578B"},{key:"pushTime",col:2,label:"\u53D1\u5E03\u65F6\u95F4"},{key:"startTime",col:2,label:"\u5F00\u59CB\u65F6\u95F4"},{key:"endTime",col:1,label:"\u622A\u6B62\u65F6\u95F4"},{key:"content",col:1,label:"\u6B63\u6587"},{key:"attachments",col:1,label:"\u4E0B\u8FBE\u6587\u4EF6",type:"file"},{key:"status",col:2,label:"\u72B6\u6001"},{key:"closeType",col:2,label:"\u5173\u95ED\u5F62\u5F0F"},{key:"creatorName",col:2,label:"\u521B\u5EFA\u4EBA"}]),t({1:y,2:k,3:v});const g=async _=>{var s;let e=await D(_);if(e.code!==0){N.error(e.msg);return}((s=e.data.attachments)==null?void 0:s.length)>0?e.data.attachments=JSON.parse(e.data.attachments||"[]"):e.data.attachments=[],e.data,a.value={...e.data}};q(()=>{o.query.id&&(b.value=o.query.id,a.value.id=o.query.id,g(o.query.id))});const x=()=>{E()};return(_,e)=>{const s=i("el-link"),B=i("el-button"),C=i("PaIndexPage");return n(),p(C,null,{default:r(()=>[u("div",S,[d(' <div class="title">{{ form.title }}</div> '),d(' <div class="toolBar">\u53D1\u5E03\u65F6\u95F4\uFF1A{{ form.pushTime }}</div> '),u("div",{class:"content",innerHTML:c(a).content},null,8,V),c(a).attachments?(n(),f("div",W,[e[0]||(e[0]=m(" \u9644\u4EF6\uFF1A ")),u("div",null,[(n(!0),f(A,null,M(c(a).attachments,l=>(n(),p(s,{class:"file",key:l.id,type:"primary",onClick:U=>c(P)(l.url||l.file_url)},{default:r(()=>[m(w(l.name||l.file_name),1)]),_:2},1032,["onClick"]))),128))])])):d("v-if",!0),u("div",H,[I(B,{onClick:x},{default:r(()=>e[1]||(e[1]=[m("\u8FD4\u56DE")])),_:1})])])]),_:1})}}});const X=L(R,[["__scopeId","data-v-52e7876a"]]);export{X as default};
