import{u as S}from"./useFormEdit-61a257a4-1782111760424v=1.0.0.js";import{g as w}from"./specialWorkPublicApi-04f6012b-1782111760424v=1.0.0.js";import{a as I,u as O,f as k,_ as W}from"./index-996f931c-1782111760424v=1.0.0.js";import H from"./indexOld-40a2fc06-1782111760424v=1.0.0.js";import{E as U}from"./eleVendor-99a45232-1782111760424v=1.0.0.js";import{m as E,a as o,e as $,ai as i,p as u,M as F,O as c,t as s,T as _,u as l,R as b,q as p,S as f,F as v,a8 as x,U as r}from"./vendor-7f807b9d-1782111760424v=1.0.0.js";import"./tabs-cb939388-1782111760424v=1.0.0.js";const J={class:"container"},K={class:"title"},j={class:"content"},z=["innerHTML"],G={key:0,class:"files"},Q={class:"tableTitle"},X={class:"pt20 mt30"},Y=E({name:"specialWorkPublicDetail"}),Z=E({...Y,setup(ee){const g=o({xs:24,sm:22,md:20,lg:14,xl:23}),C=o({xs:24,sm:24,md:12,lg:12,xl:12}),h=o({xs:24,sm:22,md:18,lg:16,xl:8}),{closeCurrent:B}=S(),a=o({}),d=I(),D=o(""),T=O();o([{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"}]),o({1:g,2:C,3:h});const q=o(T.getEnumListByKey("filloutRequire")),L=o([{}]),R=async y=>{var n,m;let e=await w(y);if(e.code!==0){U.error(e.msg);return}((n=e.data.attachments)==null?void 0:n.length)>0?e.data.attachments=JSON.parse(e.data.attachments||"[]"):e.data.attachments=[],e.data.filloutRequire=((m=e.data.filloutRequire)==null?void 0:m.split(","))||[],e.data,a.value={...e.data}};$(()=>{d.query.id&&(D.value=d.query.id,a.value.id=d.query.id,R(d.query.id))});const P=()=>{B()};return(y,e)=>{const n=i("el-link"),m=i("el-checkbox"),V=i("el-checkbox-group"),A=i("el-button"),M=i("PaIndexPage");return u(),F(M,null,{default:c(()=>[s("div",J,[s("div",K,_(l(a).title),1),b(' <div class="toolBar">\u53D1\u5E03\u65F6\u95F4\uFF1A{{ form.pushTime }}</div> '),s("div",null,_(l(a).digest),1),s("div",j,[s("div",{innerHTML:l(a).content},null,8,z)]),l(a).attachments?(u(),p("div",G,[e[2]||(e[2]=f(" \u9644\u4EF6\uFF1A ")),s("div",null,[(u(!0),p(v,null,x(l(a).attachments,t=>(u(),p("div",{key:t.id,style:{display:"flex"}},[r(n,{class:"file",type:"primary",onClick:N=>l(k)(t.url||t.file_url)},{default:c(()=>[f(_(t.name||t.file_name),1)]),_:2},1032,["onClick"]),r(n,{style:{"margin-left":"10px"},class:"file",onClick:N=>l(k)(t.url||t.file_url,0,t.file_name,!0)},{default:c(()=>e[1]||(e[1]=[f("\u4E0B\u8F7D")])),_:2},1032,["onClick"])]))),128))])])):b("v-if",!0),s("h2",Q,_(l(a).tableTitle),1),r(V,{modelValue:l(a).filloutRequire,"onUpdate:modelValue":e[0]||(e[0]=t=>l(a).filloutRequire=t),disabled:!0},{default:c(()=>[(u(!0),p(v,null,x(l(q),t=>(u(),F(m,{label:t.label,key:t.value,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),r(H,{list:l(L),tableColumnList:l(a).customFieldConfList,isAllEditMode:!1},null,8,["list","tableColumnList"]),s("div",X,[r(A,{onClick:P},{default:c(()=>e[3]||(e[3]=[f("\u8FD4\u56DE")])),_:1})])])]),_:1})}}});const ie=W(Z,[["__scopeId","data-v-4e384228"]]);export{ie as default};
