import{az as N,d as T,r as p,x as S,b as L,o as d,A as m,B as o,k as P,a,f as l,E as g,G as f,dx as w,X as U,Y as W,Z as j,__tla as k}from"./index-92ad187a.js";import{_ as q,__tla as A}from"./ContentWrap.vue_vue_type_script_setup_true_lang-c7ede7df.js";import{_ as B,__tla as E}from"./index.vue_vue_type_script_setup_true_lang-6fbe4cc3.js";import{d as G,__tla as X}from"./formatTime-c7f253d6.js";let y,Y=Promise.all([(()=>{try{return k}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return X}catch{}})()]).then(async()=>{y=T({name:"WalletTransactionList",__name:"WalletTransactionList",props:{walletId:{type:Number,required:!1}},setup(b){const{walletId:h}=b,s=p(!0),_=p(0),e=S({pageNo:1,pageSize:10,walletId:null}),c=p([]),u=async()=>{s.value=!0;try{e.walletId=h;const i=await(async r=>await N.get({url:"/pay/wallet-transaction/page",params:r}))(e);c.value=i.list,_.value=i.total}finally{s.value=!1}};return L(()=>{u()}),(i,r)=>{const n=U,v=W,I=B,x=q,z=j;return d(),m(x,null,{default:o(()=>[P((d(),m(v,{data:a(c),stripe:!0,"show-overflow-tooltip":!0},{default:o(()=>[l(n,{label:"\u7F16\u53F7",align:"center",prop:"id"}),l(n,{label:"\u94B1\u5305\u7F16\u53F7",align:"center",prop:"walletId"}),l(n,{label:"\u5173\u8054\u4E1A\u52A1\u6807\u9898",align:"center",prop:"title"}),l(n,{label:"\u4EA4\u6613\u91D1\u989D",align:"center",prop:"price"},{default:o(({row:t})=>[g(f(a(w)(t.price))+" \u5143",1)]),_:1}),l(n,{label:"\u94B1\u5305\u4F59\u989D",align:"center",prop:"balance"},{default:o(({row:t})=>[g(f(a(w)(t.balance))+" \u5143",1)]),_:1}),l(n,{label:"\u4EA4\u6613\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(G),width:"180px"},null,8,["formatter"])]),_:1},8,["data"])),[[z,a(s)]]),l(I,{total:a(_),page:a(e).pageNo,"onUpdate:page":r[0]||(r[0]=t=>a(e).pageNo=t),limit:a(e).pageSize,"onUpdate:limit":r[1]||(r[1]=t=>a(e).pageSize=t),onPagination:u},null,8,["total","page","limit"])]),_:1})}}})});export{y as _,Y as __tla};
