fix: 机柜使用率浮点精度

This commit is contained in:
zxr
2026-08-19 19:27:12 +08:00
parent 3e60e699ce
commit 43ce3433ce
2 changed files with 379 additions and 1 deletions

View File

@@ -60,7 +60,9 @@
:percent="Math.min(Math.max((Number(record.utilization_rate) || 0) / 100, 0), 1)"
:size="'small'"
:color="(record.utilization_rate || 0) > 80 ? '#f53f3f' : (record.utilization_rate || 0) > 50 ? '#ff7d00' : '#00b42a'"
/>
>
<template #text="{ percent }">{{ (percent * 100).toFixed(2) }}%</template>
</a-progress>
</template>
<!-- 操作 -->