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

This commit is contained in:
刘祥超
2021-08-29 16:56:37 +08:00
parent df9df94bb8
commit c55008d302
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()