优化
This commit is contained in:
parent
3a19b51df1
commit
6224b59252
@ -325,9 +325,10 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
let _boolean = true
|
let _boolean = true
|
||||||
arr.map(i => {
|
arr.map(i => {
|
||||||
if (i.weight !== i.detailDtos.reduce((result, item) => {
|
const res = i.detailDtos.reduce((result, item) => {
|
||||||
return result += item.checkWeight
|
return result += item.checkWeight
|
||||||
}, 0)) {
|
}, 0).toFixed(5)
|
||||||
|
if (i.weight !== Number(res)) {
|
||||||
this.$message.error(i.name + '维度内的权重和必须为100%!')
|
this.$message.error(i.name + '维度内的权重和必须为100%!')
|
||||||
_boolean = false
|
_boolean = false
|
||||||
}
|
}
|
||||||
@ -355,7 +356,7 @@ export default {
|
|||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
this.dialogFormVisible = false
|
this.dialogFormVisible = false
|
||||||
history.go(0)
|
// history.go(0)
|
||||||
},
|
},
|
||||||
// 驳回
|
// 驳回
|
||||||
handleBohui () {
|
handleBohui () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user