From 09b7d806eac5520c6a5d60d0bfe3e782b7823496 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 22 Jul 2025 18:50:57 +0800 Subject: [PATCH] =?UTF-8?q?fix::=20=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8C=87?= =?UTF-8?q?=E6=A0=87=E6=95=B0=E5=80=BC=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BF=9D?= =?UTF-8?q?=E7=95=993=E4=BD=8D=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/perfManage/kpiCReport/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/perfManage/kpiCReport/index.vue b/src/views/perfManage/kpiCReport/index.vue index a8cfdb93..51711b39 100644 --- a/src/views/perfManage/kpiCReport/index.vue +++ b/src/views/perfManage/kpiCReport/index.vue @@ -368,6 +368,9 @@ function fnGetListTitle() { width: 100, minWidth: 150, maxWidth: 300, + customRender: (opt:any) => { + return parseFloat(opt.text).toFixed(3); + }, }); } columns.push({ @@ -463,8 +466,8 @@ function fnGetList() { kpiId: columns.key, title: columns.title, unit: columns.unit, - max: values.length > 0 ? Math.max(...values) : 0, - min: values.length > 0 ? Math.min(...values) : 0, + max: values.length > 0 ? Math.max(...values).toFixed(3) : 0, + min: values.length > 0 ? Math.min(...values).toFixed(3) : 0, avg, total: total, }); @@ -639,7 +642,7 @@ function fnRanderChartData() { for (const y of chartDataYSeriesData) { for (const key of keys) { if (y.key === key) { - y.data.push(+item[key]); + y.data.push(parseFloat(item[key]).toFixed(3)); chartDataXAxisData.push(parseDateToStr(item['timeGroup'])); } }