diff --git a/web/src/views/system/storage/index.vue b/web/src/views/system/storage/index.vue index 5ccab09..19f3ac2 100644 --- a/web/src/views/system/storage/index.vue +++ b/web/src/views/system/storage/index.vue @@ -239,11 +239,19 @@ function comparePercentage(percentStr: any) { percentStr.resar = false return percentStr.spaceOccupancyRatio; } - const percent = parseFloat(percentStr.spaceOccupancyRatio.replace('%', '')); - - if (percent > 80 || percent == 80) { - percentStr.resar = true + const arr = percentStr.spaceOccupancyRatio.split(";").map(item => parseFloat(item.replace("%", ""))); + if(arr.length > 0){ + arr.forEach(item => { + if (item > 80 || item == 80) { + percentStr.resar = true + } + }); } + // const percent = parseFloat(percentStr.spaceOccupancyRatio.replace('%', '')); + + // if (percent > 80 || percent == 80) { + // percentStr.resar = true + // } return percentStr.spaceOccupancyRatio; } diff --git a/web/src/views/testdata/datamanagement/index.vue b/web/src/views/testdata/datamanagement/index.vue index 206a321..af19cde 100644 --- a/web/src/views/testdata/datamanagement/index.vue +++ b/web/src/views/testdata/datamanagement/index.vue @@ -1704,7 +1704,7 @@ function repstring(row: any) {
- 创建文件/文件夹 上传 删除