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%!')