index-b995e733.js 4.2 KB

1
  1. import{d as E,z as F,r as i,f as N,x as S,o as T,c as H,i as e,w as t,a as l,R as q,m as p,B,j as K,k as M,t as s,aY as m,F as j,V as G,G as I,p as J,_ as W,q as A,H as L,I as O,J as X,K as Z}from"./index-df709923.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang-6fb625ff.js";import{_ as $}from"./DictTag.vue_vue_type_script_lang-6753827b.js";import{_ as ee}from"./ContentWrap.vue_vue_type_script_setup_true_lang-e908c5dd.js";import{d as ae}from"./formatTime-c6262bd7.js";import{D as le}from"./dict-017bf708.js";import{a as te}from"./index-d59b46b3.js";import{_ as re}from"./WalletForm.vue_vue_type_script_setup_true_lang-e0eefe2c.js";import{u as oe}from"./useMessage-89e9d1aa.js";import"./index-c8bd5ba7.js";import"./color-6e929987.js";import"./el-card-91c2276d.js";import"./Dialog-2f8bd685.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./WalletTransactionList.vue_vue_type_script_setup_true_lang-d1a748f2.js";const ne=["src"],pe=E({name:"WalletBalance",__name:"index",setup(ie){oe(),F();const u=i(!0),w=i(0),b=i([]),o=N({pageNo:1,pageSize:10,nickname:null,createTime:[]}),y=i();i(!1);const c=async()=>{u.value=!0;try{const f=await te(o);b.value=f.list,w.value=f.total}finally{u.value=!1}},d=()=>{o.pageNo=1,c()},V=()=>{y.value.resetFields(),d()},v=i();return S(()=>{c()}),(f,r)=>{const z=G,_=I,R=J,x=W,g=A,Y=L,k=ee,n=O,C=$,D=X,P=Q,U=Z;return T(),H(j,null,[e(k,null,{default:t(()=>[e(Y,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:y,inline:!0,"label-width":"68px"},{default:t(()=>[e(_,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:t(()=>[e(z,{modelValue:l(o).nickname,"onUpdate:modelValue":r[0]||(r[0]=a=>l(o).nickname=a),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0",clearable:"",onKeyup:q(d,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(R,{modelValue:l(o).createTime,"onUpdate:modelValue":r[1]||(r[1]=a=>l(o).createTime=a),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),e(_,null,{default:t(()=>[e(g,{onClick:d},{default:t(()=>[e(x,{icon:"ep:search",class:"mr-5px"}),r[4]||(r[4]=p(" \u641C\u7D22"))]),_:1}),e(g,{onClick:V},{default:t(()=>[e(x,{icon:"ep:refresh",class:"mr-5px"}),r[5]||(r[5]=p(" \u91CD\u7F6E"))]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(k,null,{default:t(()=>[B((T(),K(D,{data:l(b),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[e(n,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(n,{label:"\u7528\u6237\u6635\u79F0",align:"center",prop:"nickname"}),e(n,{label:"\u5934\u50CF",align:"center",prop:"avatar",width:"80px"},{default:t(a=>[M("img",{src:a.row.avatar,style:{width:"40px"}},null,8,ne)]),_:1}),e(n,{label:"\u7528\u6237\u7C7B\u578B",align:"center",prop:"userType"},{default:t(a=>[e(C,{type:l(le).USER_TYPE,value:a.row.userType},null,8,["type","value"])]),_:1}),e(n,{label:"\u4F59\u989D",align:"center",prop:"balance"},{default:t(({row:a})=>[p(s(l(m)(a.balance))+" \u5143",1)]),_:1}),e(n,{label:"\u7D2F\u8BA1\u652F\u51FA",align:"center",prop:"totalExpense"},{default:t(({row:a})=>[p(s(l(m)(a.totalExpense))+" \u5143",1)]),_:1}),e(n,{label:"\u7D2F\u8BA1\u5145\u503C",align:"center",prop:"totalRecharge"},{default:t(({row:a})=>[p(s(l(m)(a.totalRecharge))+" \u5143",1)]),_:1}),e(n,{label:"\u51BB\u7ED3\u91D1\u989D",align:"center",prop:"freezePrice"},{default:t(({row:a})=>[p(s(l(m)(a.freezePrice))+" \u5143",1)]),_:1}),e(n,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(ae),width:"180px"},null,8,["formatter"]),e(n,{label:"\u64CD\u4F5C",align:"center"},{default:t(a=>[e(g,{link:"",type:"primary",onClick:se=>{return h=a.row.id,void v.value.open(h);var h}},{default:t(()=>r[6]||(r[6]=[p("\u8BE6\u60C5")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[U,l(u)]]),e(P,{total:l(w),page:l(o).pageNo,"onUpdate:page":r[2]||(r[2]=a=>l(o).pageNo=a),limit:l(o).pageSize,"onUpdate:limit":r[3]||(r[3]=a=>l(o).pageSize=a),onPagination:c},null,8,["total","page","limit"])]),_:1}),e(re,{ref_key:"formRef",ref:v},null,512)],64)}}});export{pe as default};