Files
EdgeAdmin/web/views/@default/clusters/cluster/node/update.js

29 lines
653 B
JavaScript
Raw Normal View History

2020-07-30 22:41:35 +08:00
Tea.context(function () {
2021-07-31 22:23:07 +08:00
this.clusterId = 0
2020-07-30 22:41:35 +08:00
if (this.node.cluster != null && this.node.cluster.id > 0) {
2021-07-31 22:23:07 +08:00
this.clusterId = this.node.cluster.id
2020-07-30 22:41:35 +08:00
}
2021-07-31 22:23:07 +08:00
this.success = function () {
let that = this
teaweb.success("保存成功", function () {
window.location = "/clusters/cluster/node/detail?clusterId=" + that.clusterId + "&nodeId=" + that.node.id
})
}
2020-08-21 21:09:42 +08:00
// IP地址相关
2021-07-31 22:23:07 +08:00
this.ipAddresses = this.node.ipAddresses
2020-08-21 21:09:42 +08:00
2021-07-31 22:23:07 +08:00
this.changeClusters = function (info) {
this.clusterId = info.clusterId
}
2021-09-13 16:47:34 +08:00
/**
* 集群相关
*/
this.showClustersBox = false
this.updateClusters = function () {
this.showClustersBox = !this.showClustersBox
}
2021-07-31 22:23:07 +08:00
})