import{_ as g,d as v,m as s,r as o,o as b,A as C,x as a,h as n,u as l,D as x}from"./index.b5c844d0.js";import{c as B}from"./createRequset.6b7f85e0.js";import{u as w}from"./use-page-search.c59d5041.js";import F from"./contentModal.5b49c717.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:u})=>String(e.report_type)===String(u)))==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({}),u=s(!1),m={pageSearchHook:()=>w(void 0,void 0,c)};function f(i){t.value=JSON.parse(i.content||"{}"),u.value=!0}return(i,p)=>{const _=o("ElButton"),d=o("ElTooltip"),h=o("PageContainer"),A=o("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(F,{content:t.value,visible:u.value,"onUpdate:visible":p[0]||(p[0]=r=>u.value=r)},null,8,["content","visible"])]),_:1})}}});var O=g(R,[["__file","D:/work/sjtj/report-v3/src/views/template/publish/index.vue"]]);export{O as default};