From 6a8ba92485c9aad48f09e28493a37f89d8b0e1a8 Mon Sep 17 00:00:00 2001 From: wangxk Date: Wed, 25 Jun 2025 14:33:39 +0800 Subject: [PATCH] =?UTF-8?q?6-25bug=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/system/storage/index.vue | 16 ++++++++++++---- web/src/views/testdata/datamanagement/index.vue | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) 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) {
- 创建文件/文件夹 上传 删除