因为健康检查下线的节点可以手动恢复上线

This commit is contained in:
GoEdgeLab
2021-02-24 19:27:33 +08:00
parent a9768892eb
commit 44241716cb
4 changed files with 53 additions and 11 deletions

View File

@@ -1,11 +1,21 @@
Tea.context(function () {
this.deleteNode = function (nodeId) {
teaweb.confirm("确定要删除这个节点吗?", function () {
this.$post("/nodes/delete")
.params({
nodeId: nodeId
})
.refresh();
});
};
});
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()
})
}
})