看板在健康检查失败离线时提供手动上线按钮

This commit is contained in:
GoEdgeLab
2021-08-29 16:56:37 +08:00
parent f8420c758a
commit 59aaaf7570
3 changed files with 15 additions and 1 deletions

View File

@@ -1,4 +1,14 @@
Tea.context(function () {
this.upNode = function (nodeId) {
teaweb.confirm("确定要手动上线此节点吗?", function () {
this.$post("/clusters/cluster/node/up")
.params({
nodeId: nodeId
})
.refresh()
})
}
this.formatCount = function (count) {
if (count < 1000) {
return count.toString()