Commit df54ed37 authored by derong.zhang's avatar derong.zhang

限制权重全部修改为0

parent 2fa3afdd
...@@ -832,6 +832,20 @@ export default { ...@@ -832,6 +832,20 @@ export default {
this.ContrastnodeModal = true this.ContrastnodeModal = true
}, },
confirnode () { confirnode () {
let arr = []
this.nodeData.map(item => {
return arr.push(item.Meta.weight)
})
let sta = arr.some(function (item, index, array) {
return item != 0
})
if (sta == false) {
this.$Message.error('权重不能全部修改为0')
this.ContrastnodeModal = false
this.getnodeList()
this.nodeData = this.nodeData.slice()
return false
}
this.disabled = true this.disabled = true
let params = { let params = {
node_id: this.nodeupdataid, node_id: this.nodeupdataid,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment