This commit is contained in:
xiongchengqiang 2020-12-08 15:05:30 +08:00
parent 3a19b51df1
commit 6224b59252

View File

@ -325,9 +325,10 @@ export default {
} else {
let _boolean = true
arr.map(i => {
if (i.weight !== i.detailDtos.reduce((result, item) => {
const res = i.detailDtos.reduce((result, item) => {
return result += item.checkWeight
}, 0)) {
}, 0).toFixed(5)
if (i.weight !== Number(res)) {
this.$message.error(i.name + '维度内的权重和必须为100%')
_boolean = false
}
@ -355,7 +356,7 @@ export default {
type: 'success'
})
this.dialogFormVisible = false
history.go(0)
// history.go(0)
},
//
handleBohui () {