import{_ as k}from"./libs-51817cd7.js";import{a as h}from"./workbench-2477465f.js";import{P as v}from"./index-11dbf61f.js";import{b as w,v as F,w as g}from"./ui-ba7aaa7e.js";import{e as B,l as c,r as _,P as s,a3 as l,a4 as a,H as D,a7 as d,ab as m,f as u,Q as N,F as E,aa as I}from"./vue-bf422dc1.js";import{b3 as P}from"./echarts-bf9d612c.js";import{k as C,j as L,y as S}from"./others-9f318174.js";import{_ as T}from"./index-c2dd6a24.js";import"./icons-a8498fb6.js";import"./plugins-ca970193.js";const W={class:"sub-title"},A={class:"walletDataItem"},V={name:"WorkbenchBase"},$=B({...V,setup(j){P([C,L,S]);const r=c({PANE_LIST:v}),f=c({username:"",mobile:"",money:"0.000",freeze_money:"0.000"}),p=_(!1),n=_("");return(async()=>{const{data:o}=await h();n.value=o.time,[{key:"user.money",index:0},{key:"user.freeze_money",index:1},{key:"today.transaction_money",index:2,toFixed:!0},{key:"today.profit",index:3,toFixed:!0},{key:"yesterday.transaction_money",index:4,toFixed:!0},{key:"yesterday.profit",index:5,toFixed:!0}].forEach(t=>{let e=k.get(o,t.key);t.toFixed&&(e!==void 0?e=Number(e).toFixed(3):e="0.000"),r.PANE_LIST[t.index].number=`${e}`}),Object.assign(f,o.user),p.value=!0})(),(o,y)=>{const t=w,e=F,x=g;return s(),l(t,{bordered:!1},{title:a(()=>[D(" 我的钱包 "),d("span",W,"数据更新于："+m(n.value),1)]),actions:a(()=>[]),default:a(()=>[u(x,{gutter:16},{default:a(()=>[(s(!0),N(E,null,I(r.PANE_LIST,(i,b)=>(s(),l(e,{key:b,span:2},{default:a(()=>[u(t,{title:i.title,class:"walletData"},{default:a(()=>[d("div",A,m(i.number),1)]),_:2},1032,["title"])]),_:2},1024))),128))]),_:1})]),_:1})}}});const X=T($,[["__scopeId","data-v-7c59f23f"]]);export{X as default};
