节点IP地址可以设置专属集群

This commit is contained in:
GoEdgeLab
2023-03-01 11:38:21 +08:00
parent 1faed99e5b
commit 1e596a216f
13 changed files with 265 additions and 33 deletions

View File

@@ -4,5 +4,15 @@ Tea.context(function () {
this.address = window.parent.UPDATING_NODE_IP_ADDRESS
if (this.address != null) {
this.address.isUp = (this.address.isUp ? 1 : 0)
// 专属集群
if (this.address.clusters != null) {
let selectedClusterIds = this.address.clusters.map(function (cluster) {
return cluster.id
})
this.clusters.forEach(function (cluster) {
cluster.isChecked = selectedClusterIds.$contains(cluster.id)
})
}
}
})