From 7dd44fb5aaccd4e2c398b693dde8c321bd568dbe Mon Sep 17 00:00:00 2001 From: zhenghuang <236220500@qq.com> Date: Sun, 28 Nov 2021 21:47:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=8E=A2=E7=B4=A2=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=88=97=20/=20=E6=8C=87=E6=A0=87=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=99=BE=E5=88=86=E6=AF=94,dashboard=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E5=92=8C=E6=97=A5=E6=9C=9F=E8=8C=83=E5=9B=B4=E9=BB=98=E8=AE=A4?= =?UTF-8?q?T-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/components/table/TableNormal.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/chart/components/table/TableNormal.vue b/frontend/src/views/chart/components/table/TableNormal.vue index 04dca30..ff6e9e4 100644 --- a/frontend/src/views/chart/components/table/TableNormal.vue +++ b/frontend/src/views/chart/components/table/TableNormal.vue @@ -360,7 +360,6 @@ export default { subEle[yaxisExtFieldId[0]] ele[key] = subEle[fieldValueName] rowSum += subEle[fieldValueName] - console.log(3, ele) } }) } else { @@ -373,6 +372,11 @@ export default { } }) } + rowSum = rowSum.toFixed(2) + if (this.fields[findValueIndex].summary === 'ratio') { + rowSum += '%' + } + ele.rowTotal = rowSum rowSum = 0 })