实现集群看板(暂时只对企业版开放)

This commit is contained in:
刘祥超
2021-07-05 11:38:07 +08:00
parent 1c3e25ba1a
commit e2ca94c93b
39 changed files with 1171 additions and 249 deletions

View File

@@ -0,0 +1,21 @@
Tea.context(function () {
this.deleteNode = function (nodeId) {
teaweb.confirm("确定要删除这个节点吗?", function () {
this.$post("/nodes/delete")
.params({
nodeId: nodeId
})
.refresh();
})
}
this.upNode = function (nodeId) {
teaweb.confirm("确定要手动上线此节点吗?", function () {
this.$post("/clusters/cluster/node/up")
.params({
nodeId: nodeId
})
.refresh()
})
}
})