import{p as C}from"./configs.28168d39.js";import{u as g}from"./use-response-handle.e6cae34f.js";import{q as y,B as o,C as B,r as d,as as w,L as x,o as n,K as m,H as l,n as L,J as D,v as p,I as F,t as _,bn as H,S as R,aY as q}from"./index.d8ce26ef.js";import{e as z}from"./index.79955875.js";const E=R("\u6DFB\u52A0"),I=y({__name:"payment-table",emits:["addBtnClick"],setup(N,{emit:f}){const v=o(null),t=o(!1),r=o([]),b=g();async function h(){t.value=!0;const{code:c,message:i,data:e}=await z({});b({code:c,message:i,handler:()=>r.value=e==null?void 0:e.list.filter(a=>a.status==="3")}),t.value=!1}return B(()=>h()),(c,i)=>{const e=d("el-table-column"),a=d("el-button"),k=w("loading");return x((n(),m(p(H),{border:"",ref_key:"tableRef",ref:v,"row-key":"id",size:"small",data:r.value},{default:l(()=>[(n(!0),L(F,null,D(p(C),(s,u)=>(n(),m(e,q({key:u},s,{"show-overflow-tooltip":""}),null,16))),128)),_(e,{fixed:"right",label:"\u64CD\u4F5C"},{default:l(({row:s})=>[_(a,{link:"",type:"primary",size:"small",onClick:u=>f("addBtnClick",s)},{default:l(()=>[E]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[k,t.value]])}}});export{I as default};
