实现基础的IP地址阈值

This commit is contained in:
刘祥超
2021-09-12 20:21:32 +08:00
parent 4d5a4d501a
commit c95dde5187
31 changed files with 788 additions and 267 deletions

View File

@@ -36,6 +36,24 @@ Vue.component("report-node-groups-selector", {
that.groupIds.push(v.id)
}
})
this.change()
},
change: function () {
let that = this
let groups = []
this.groupIds.forEach(function (groupId) {
let group = that.groups.$find(function (k, v) {
return v.id == groupId
})
if (group == null) {
return
}
groups.push({
id: group.id,
name: group.name
})
})
this.$emit("change", groups)
}
},
watch: {
@@ -46,6 +64,8 @@ Vue.component("report-node-groups-selector", {
v.isChecked = false
})
}
this.change()
}
},
template: `<div>