import{u as D}from"./useFormEdit-61a257a4-1782111760424v=1.0.0.js";import{a as B}from"./specialWorkFillApi-87a45456-1782111760424v=1.0.0.js";import{u as S,a as A,f as T,_ as L}from"./index-996f931c-1782111760424v=1.0.0.js";import{E as q}from"./eleVendor-99a45232-1782111760424v=1.0.0.js";import{m as y,a,e as M,ai as r,p as i,M as p,O as d,t as s,T as c,u as o,q as f,S as m,F as N,a8 as P,R as w,U as I}from"./vendor-7f807b9d-1782111760424v=1.0.0.js";import"./tabs-cb939388-1782111760424v=1.0.0.js";const O={class:"container"},V={class:"title"},W={class:"toolBar"},H=["innerHTML"],R={key:0,class:"files"},U={class:"pt20 mt30"},j=y({name:"specialWorkAuditDetail"}),J=y({...j,setup(K){const k=a({xs:24,sm:22,md:20,lg:14,xl:23}),F=a({xs:24,sm:24,md:12,lg:12,xl:12}),v=a({xs:24,sm:22,md:18,lg:16,xl:8}),{closeCurrent:g}=D();S();const t=a({}),l=A(),x=a("");a([{key:"year",col:1,label:"\u5E74\u4EFD"},{key:"title",col:1,label:"\u5DE5\u4F5C\u540D\u79F0"},{key:"specialWorkType",col:1,label:"\u63D0\u4EA4\u5355\u4F4D",enum:"enumStore.getEnumObjByKey(specialWorkType)"},{key:"attachments",col:1,label:"\u7EA7\u522B",type:"file"},{key:"provinceUnitStats",col:1,label:"\u63CF\u8FF0"},{key:"statusCn",col:1,label:"\u63D0\u4EA4\u72B6\u6001"},{key:"cityOrgStats",col:1,label:"\u5BA1\u6838\u8BB0\u5F55"}]),a({1:k,2:F,3:v});const E=async _=>{var u;let e=await B(_);if(e.code!==0){q.error(e.msg);return}e.data,((u=e.data.attachments)==null?void 0:u.length)>0?e.data.attachments=JSON.parse(e.data.attachments||"[]"):e.data.attachments=[],t.value={...e.data}};M(()=>{l.query.id&&(x.value=l.query.id,t.value.id=l.query.id,E(l.query.id))});const h=()=>{g()};return(_,e)=>{const u=r("el-link"),b=r("el-button"),C=r("PaIndexPage");return i(),p(C,null,{default:d(()=>[s("div",O,[s("div",V,c(o(t).title),1),s("div",W,"\u53D1\u5E03\u65F6\u95F4\uFF1A"+c(o(t).pushTime),1),s("div",null,c(o(t).digest),1),s("div",{class:"content",innerHTML:o(t).content},null,8,H),o(t).attachments?(i(),f("div",R,[e[0]||(e[0]=m(" \u9644\u4EF6\uFF1A ")),s("div",null,[(i(!0),f(N,null,P(o(t).attachments,n=>(i(),p(u,{class:"file",key:n.id,type:"primary",onClick:$=>o(T)(n.url||n.file_url)},{default:d(()=>[m(c(n.name||n.file_name),1)]),_:2},1032,["onClick"]))),128))])])):w("v-if",!0),s("div",U,[I(b,{onClick:h},{default:d(()=>e[1]||(e[1]=[m("\u8FD4\u56DE")])),_:1})])])]),_:1})}}});const ee=L(J,[["__scopeId","data-v-442fe9eb"]]);export{ee as default};
