import{d as C,r as t,g as f,c as v,k as h,b as a,e,w as n,t as g,l as w,s as x,E as i,_ as R}from"./index-CUnFTKV2.js";import k from"./TodayOrderCard-2fTNI3AZ.js";import S from"./CurrencyInfoCard-Cn9w7Oqy.js";import I from"./IncomeSummaryCard-BQIwkZD1.js";import b from"./UserStatsCard-CKa1d639.js";import"./statistics-B7ukxmWr.js";import"./format-C0IiqLeQ.js";const B={class:"data-stand-container"},E={class:"page-header"},N={class:"card-wrapper"},O={class:"card-wrapper"},V={class:"card-wrapper"},T={class:"card-wrapper"},A=C({__name:"data-stand",setup(M){const u=t(null),_=t(null),m=t(null),p=t(null),l=t(!1);async function y(){var c,r,o,s;l.value=!0,i.info("正在刷新所有数据...");try{await Promise.all([(c=u.value)==null?void 0:c.refresh(),(r=_.value)==null?void 0:r.refresh(),(o=m.value)==null?void 0:o.refresh(),(s=p.value)==null?void 0:s.refresh()]),i.success("数据刷新完成")}catch(d){console.error("刷新数据失败:",d),i.error("部分数据刷新失败")}finally{l.value=!1}}return(c,r)=>{const o=f("el-button"),s=f("el-col"),d=f("el-row");return h(),v("div",B,[a("div",E,[r[1]||(r[1]=a("h2",{class:"page-title"},"数据看板",-1)),e(o,{type:"primary",icon:w(x),onClick:y,loading:l.value},{default:n(()=>[...r[0]||(r[0]=[g(" 刷新全部 ",-1)])]),_:1},8,["icon","loading"])]),e(d,{gutter:20,class:"stats-row"},{default:n(()=>[e(s,{xs:24,sm:24,md:12,lg:12,xl:12},{default:n(()=>[a("div",N,[e(k,{ref_key:"todayOrderCardRef",ref:u},null,512)]),a("div",O,[e(I,{ref_key:"incomeSummaryCardRef",ref:m},null,512)])]),_:1}),e(s,{xs:24,sm:24,md:12,lg:12,xl:12},{default:n(()=>[a("div",V,[e(S,{ref_key:"currencyInfoCardRef",ref:_},null,512)]),a("div",T,[e(b,{ref_key:"userStatsCardRef",ref:p},null,512)])]),_:1})]),_:1})])}}}),G=R(A,[["__scopeId","data-v-ca54e545"]]);export{G as default};
