优化
This commit is contained in:
parent
e5fd670a23
commit
64ffb4f06e
@ -375,11 +375,9 @@ export default {
|
||||
for (let i in arr) {
|
||||
let num = 0
|
||||
arr[i].detailDtos.map(l => {
|
||||
num += l.weight
|
||||
num += l.checkWeight
|
||||
})
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user