fix: fix the virtual resource in administrator

Fix the virtual resource used background in the administrator overview page

Change-Id: I56211de76792bf4eabba1a38ed3cc5ae05532579
This commit is contained in:
Jingwei.Zhang 2023-06-09 09:08:23 +08:00
parent 1c78e6356a
commit 861876cddf

View File

@ -56,9 +56,9 @@ export class ResourceCircle extends Component {
const used = overview[item.used]; const used = overview[item.used];
const percentNum = parseFloat(((used / resource) * 100).toFixed(2)); const percentNum = parseFloat(((used / resource) * 100).toFixed(2));
const unUsed = parseFloat((resource - used).toFixed(2)); const unUsed = parseFloat((resource - used).toFixed(2));
let circleColor = color.primaryColor; let circleColor = color.infoColor;
if (percentNum > 70) { if (percentNum > 70) {
circleColor = color.warnDarkColor; circleColor = color.warnColor;
} }
if (percentNum > 90) { if (percentNum > 90) {
circleColor = color.dangerColor; circleColor = color.dangerColor;