import{_ as g,d as v,m as s,r as u,o as b,A as C,x as a,h as n,u as l,D as x}from"./index.e80c366d.js";import{c as B}from"./createRequset.60472412.js";import{u as F}from"./use-page-search.e3e95470.js";import w from"./contentModal.9b7827bf.js";const E=B("admin/DepartReport/log"),D=[{value:"1",label:"\u90E8\u95E8\u62A5\u8868"},{value:"2",label:"\u4E1A\u52A1\u516C\u53F8\u62A5\u8868"}],k=[{label:"\u8BB0\u5F55ID",prop:"id",with:"120px"},{label:"\u63A8\u9001\u6A21\u677F\u540D\u79F0",prop:"report_name",with:"160px",cellRenderer({row:e}){return e.report.report_name}},{label:"\u6A21\u677F\u7C7B\u578B",width:"90px",cellRenderer({row:e}){var t;return((t=D.find(({value:o})=>String(e.report_type)===String(o)))==null?void 0:t.label)||"--"}},{label:"\u63A8\u9001\u72B6\u6001",prop:"status",with:"80px",cellRenderer({row:e}){return String(e.status)==="1"?"\u63A8\u9001\u6210\u529F":"\u63A8\u9001\u5931\u8D25"}},{label:"\u63A8\u9001\u4EBA",with:"80px",prop:"user_name"},{label:"\u63A8\u9001\u65F6\u95F4",with:"140px",prop:"createtime"},{label:"\u63A8\u9001\u5185\u5BB9","min-with":"150px",prop:"content"},{label:"\u63A8\u9001\u5931\u8D25\u539F\u56E0",with:"140px",prop:"msg"},{label:"\u64CD\u4F5C",fixed:"right",width:60,slot:"operation"}],y={superUserNoAction:!1,columns:k,apis:{httpList:E}},c={formItems:[{field:"report_name",type:"input",placeholder:"\u6A21\u677F\u540D\u79F0"},{field:"report_type",type:"select",defaultValue:"2",otherOptions:{clearable:!1},trigger:"change",options:[{value:"1",label:"\u90E8\u95E8\u62A5\u8868"},{value:"2",label:"\u4E1A\u52A1\u516C\u53F8\u62A5\u8868"}]}]},P="publish",R=v({__name:"index",setup(e){const t=s({}),o=s(!1),m={pageSearchHook:()=>F(void 0,void 0,c)};function f(p){t.value=JSON.parse(p.content||"{}"),o.value=!0}return(p,i)=>{const _=u("ElButton"),d=u("ElTooltip"),h=u("PageContainer"),A=u("PageAuth");return b(),C(A,{pageName:P},{default:a(()=>[n(h,{hooks:m,searchConfig:l(c),"content-config":l(y)},{content_action:a(r=>[n(d,{content:"\u67E5\u770B\u63A8\u9001\u5185\u5BB9",placement:"top"},{default:a(()=>[n(_,{onClick:S=>f(r),icon:l(x)("eye-view"),type:"primary",size:"small",link:""},null,8,["onClick","icon"])]),_:2},1024)]),_:1},8,["searchConfig","content-config"]),n(w,{content:t.value,visible:o.value,"onUpdate:visible":i[0]||(i[0]=r=>o.value=r)},null,8,["content","visible"])]),_:1})}}});var O=g(R,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/template/publish/index.vue"]]);export{O as default};
