import{S as _,_ as F,d as k,cU as Y,m as d,cl as w,r as a,o as f,A as m,x as s,h as u,u as l,D as M,a as R}from"./index.e80c366d.js";import{a as S,U as y}from"./update-modal.2f16593e.js";import{u as B}from"./use-page-search.e3e95470.js";import"./createRequset.60472412.js";const h=new Date;_(h).subtract(30,"days").format("YYYY-MM-DD");_(h).format("YYYY-MM-DD");const U={formItems:[]},W=[{value:"0",label:"\u5F85\u6267\u884C"},{value:"1",label:"\u6267\u884C\u4E2D"},{value:"2",label:"\u6267\u884C\u5B8C\u6210"}],N=[{prop:"id",label:"ID",minWidth:"80px"},{prop:"rep_name",label:"\u62A5\u8868\u540D\u79F0",minWidth:"155px"},{prop:"status",label:"\u72B6\u6001",cellRenderer({row:p}){var t;return((t=W.find(({value:o})=>String(p.status)===o))==null?void 0:t.label)||"--"}},{prop:"start",label:"\u5F00\u59CB\u65F6\u95F4",minWidth:"155px"},{prop:"end",label:"\u7ED3\u675F\u65F6\u95F4",minWidth:"155px"},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:90}],A={columns:N,showTitle:!1,responseCode:1,superUserNoAction:!1,apis:{httpList:S.list}},r="updateStat",E=k({__name:"index",setup(p){const{hasPermissionWithCode:t}=Y(r),o=d(null),i=d(null);w(!1);const C={pageSearchHook:()=>B(void 0,void 0,U)};function g(c){var e;(e=i.value)==null||e.onDisplay(c)}return(c,e)=>{const v=a("el-button"),x=a("el-tooltip"),b=a("page-container"),D=a("page-auth");return f(),m(D,{"page-name":r},{default:s(()=>[u(b,{hooks:C,"page-name":r,"get-content-ref":n=>o.value=n,"content-config":l(A)},{content_action:s(n=>[l(t)("4")?(f(),m(x,{key:0,content:"\u7F16\u8F91"},{default:s(()=>[u(v,{type:"text",icon:l(M)("edit"),onClick:I=>g(n)},null,8,["icon","onClick"])]),_:2},1024)):R("v-if",!0)]),_:1},8,["get-content-ref","content-config"]),u(y,{ref_key:"updateModalRef",ref:i,onRefresh:e[0]||(e[0]=n=>o.value.onSearch())},null,512)]),_:1})}}});var H=F(E,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/update/updateStat/index.vue"]]);export{H as default};
