import{Z as n,cq as g,cp as F,D as v,cm as A,_ as x,d as C,m as p,r as l,o as D,A as b,x as R,h as s,u as c}from"./index.d0c68291.js";import{u as E}from"./use-page-search.f8fe5a6b.js";import k from"./template-modal.d377cd2c.js";import{c as m}from"./createRequset.2a519b90.js";const i={formItems:[{field:"report_name",type:"input",placeholder:"\u6A21\u677F\u540D\u79F0"}]};function y(e,t,a=200){return n("div",{style:{display:"flex"}},{default:()=>[n(g,{placement:"top",content:t,width:a},{reference:()=>n(F,{link:!0,icon:v("information-line")})}),n("span",null,e)]})}const B=m("admin/DepartReport/list"),P=m("/admin/DepartReport/status"),w=[{label:"ID",prop:"id",width:"60px"},{label:"\u6A21\u677F\u540D\u79F0",prop:"report_name"},{label:"\u5FAE\u4FE1\u6A21\u677F\u540D\u79F0",prop:"template_name",cellRenderer({row:e}){return y(e.template_name,"\u5FAE\u4FE1\u6A21\u677FID: : "+e.template_id,480)}},{label:"\u63A8\u9001\u65F6\u95F4",prop:"",width:"80px",cellRenderer({row:e}){return"\u6BCF\u5929"}},{label:"\u63A8\u9001\u4EBA",prop:"pusher",cellRenderer({row:e}){return e.pusher.map(({user_name:t})=>t).join(",")}},{label:"\u72B6\u6001",width:"65px",prop:"status",cellRenderer({row:e}){return n(A,{type:String(e.status)==="1"?"success":"danger"},{default:()=>String(e.status)==="1"?"\u542F\u7528":"\u7981\u7528"})}},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createtime",width:"140px"},{label:"\u6A21\u677F\u53C2\u6570",prop:"template_param"},{width:80,label:"\u64CD\u4F5C",fixed:"right",slot:"operation"}],S={superUserNoAction:!1,columns:w,apis:{httpList:B,httpStatus:P,httpAdd:!0,httpUpdate:!0}},T="publicTemplate",I=C({__name:"index",setup(e){const t=p(null),a=p(null),d={pageSearchHook:()=>E(void 0,void 0,i)},f={content:{create:()=>a.value.onDisplay(void 0,"create"),update:o=>a.value.onDisplay(o,"update")}};return(o,r)=>{const h=l("PageContainer"),_=l("PageAuth");return D(),b(_,{pageName:T},{default:R(()=>[s(h,{"get-content-ref":u=>t.value=u,events:f,hooks:d,"content-config":c(S),"search-config":c(i)},null,8,["get-content-ref","content-config","search-config"]),s(k,{ref_key:"templateModalRef",ref:a,onRefresh:r[0]||(r[0]=u=>t.value.onSearch())},null,512)]),_:1})}}});var q=x(I,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/template/publicTemplate/index.vue"]]);export{q as default};
