From 374fc0420c6b6048d2f545f2622d980e3902947d Mon Sep 17 00:00:00 2001 From: wulin Date: Tue, 2 Mar 2021 16:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=B5=8B=E8=AF=95=EF=BC=8C?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=88=A4=E6=96=AD=E6=80=BB=E6=9D=83=E9=87=8D?= =?UTF-8?q?100%=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kpi/assessment/performance/components/UseButton/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/kpi/assessment/performance/components/UseButton/index.vue b/src/views/kpi/assessment/performance/components/UseButton/index.vue index 7598e02..6b43cdc 100644 --- a/src/views/kpi/assessment/performance/components/UseButton/index.vue +++ b/src/views/kpi/assessment/performance/components/UseButton/index.vue @@ -395,7 +395,7 @@ export default { weight += j.checkWeight }) }) - if (weight !== 1) { + if (Math.round((weight * 100) * 1000) / 1000 !== 100) { const noWeightArr = arr.filter(i => i.weight === null) let str = noWeightArr.map(i => i.name).join(',') this.$message.error(str + '维度内的权重和必须为100%!')