feat(仪表盘): 添加统计API并优化仪表盘组件

This commit is contained in:
zhang1106
2026-03-15 12:19:13 +08:00
parent 7aa09ac9e1
commit a7f051172a
10 changed files with 696 additions and 298 deletions
@@ -46,6 +46,7 @@ const StatCard = ({
trend,
tagColor,
customStatus,
hideTrend,
xs,
sm,
lg,
@@ -135,7 +136,7 @@ const StatCard = ({
/>
<span>{statKey === 'totalRacks' ? '正常运行中' : '全部在线'}</span>
</div>
) : (
) : !hideTrend ? (
<div
style={{
display: 'flex',
@@ -166,7 +167,7 @@ const StatCard = ({
环比
</Tag>
</div>
)}
) : null}
</div>
</Card>
</Col>