This commit is contained in:
xiongchengqiang 2020-12-14 14:12:32 +08:00
parent e5fd670a23
commit 64ffb4f06e

View File

@ -375,11 +375,9 @@ export default {
for (let i in arr) { for (let i in arr) {
let num = 0 let num = 0
arr[i].detailDtos.map(l => { arr[i].detailDtos.map(l => {
num += l.weight num += l.checkWeight
}) })
if (num.toFixed(2) !== arr[i].weight.toFixed(2)) { if (num.toFixed(2) !== arr[i].weight.toFixed(2)) {
debugger
return this.$message.error(arr[i].name + '维度内的权重和必须为' + Math.round((arr[i].weight * 100) * 1000) / 1000) return this.$message.error(arr[i].name + '维度内的权重和必须为' + Math.round((arr[i].weight * 100) * 1000) / 1000)
} }
} }