From d0bbe8d90922f45b9fa4fb4d5faf7dfbf55f98da Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 1 Jul 2022 17:05:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E4=BA=91=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/capabilityCloud/components/DataResources.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/front/src/views/capabilityCloud/components/DataResources.vue b/front/src/views/capabilityCloud/components/DataResources.vue index 77d4e9eb..b4dba74f 100644 --- a/front/src/views/capabilityCloud/components/DataResources.vue +++ b/front/src/views/capabilityCloud/components/DataResources.vue @@ -144,7 +144,11 @@ const object = res.data.data.filter((item) => item.type === val.name)[0] console.log('object', object) if (object) { - val.num = object.amount + if (object.type == '满足率') { + val.num = object.amount * 100 + '%' + } else { + val.num = object.amount + } } }) const arr = res.data.data.filter((item) => item.resourceTop5)[0]