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:
parent
1c78e6356a
commit
861876cddf
@ -56,9 +56,9 @@ export class ResourceCircle extends Component {
|
||||
const used = overview[item.used];
|
||||
const percentNum = parseFloat(((used / resource) * 100).toFixed(2));
|
||||
const unUsed = parseFloat((resource - used).toFixed(2));
|
||||
let circleColor = color.primaryColor;
|
||||
let circleColor = color.infoColor;
|
||||
if (percentNum > 70) {
|
||||
circleColor = color.warnDarkColor;
|
||||
circleColor = color.warnColor;
|
||||
}
|
||||
if (percentNum > 90) {
|
||||
circleColor = color.dangerColor;
|
||||
|
Loading…
Reference in New Issue
Block a user