import{a3 as n,aI as F,aH as v,J as A,aE as x,_ as C,d as b,w as p,r as l,o as D,G as R,C as E,l as s,u as c}from"./index.1d5f2f42.js";import{u as w}from"./use-page-search.5b2e253c.js";import y from"./template-modal.33a49025.js";import{c as d}from"./createRequset.f858bea3.js";const i={formItems:[{field:"report_name",type:"input",placeholder:"\u6A21\u677F\u540D\u79F0"}]};function k(e,t,a=200){return n("div",{style:{display:"flex",justifyContent:"space-between"}},{default:()=>[n("span",null,e),n(F,{placement:"top",content:t,width:a},{reference:()=>n(v,{link:!0,icon:A("information-line")})})]})}const B=d("admin/DepartReport/list"),P=d("/admin/DepartReport/status"),S=[{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 k(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(x,{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"}],I={superUserNoAction:!1,columns:S,apis:{httpList:B,httpStatus:P,httpAdd:!0,httpUpdate:!0}},T=b({__name:"index",setup(e){const t=p(null),a=p(null),m="publicTemplate",f={pageSearchHook:()=>w(void 0,void 0,i)},h={content:{create:()=>a.value.onDisplay(void 0,"create"),update:o=>a.value.onDisplay(o,"update")}};return(o,r)=>{const _=l("PageContainer"),g=l("PageAuth");return D(),R(g,{pageName:m},{default:E(()=>[s(_,{"get-content-ref":u=>t.value=u,events:h,hooks:f,"content-config":c(I),"search-config":c(i)},null,8,["get-content-ref","content-config","search-config"]),s(y,{ref_key:"templateModalRef",ref:a,onRefresh:r[0]||(r[0]=u=>t.value.onSearch())},null,512)]),_:1})}}});var U=C(T,[["__file","D:/work/rep-v3/report-v3/src/views/template/publicTemplate/index.vue"]]);export{U as default};
