mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 23:00:25 +08:00
实现基础的IP地址阈值
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user