mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-16 05:30:27 +08:00
集群节点列表页增加停用/启用操作
This commit is contained in:
@@ -49,6 +49,26 @@ Tea.context(function () {
|
||||
})
|
||||
}
|
||||
|
||||
this.updateNodeOn = function (nodeId, isOn) {
|
||||
let that = this
|
||||
let op
|
||||
if (isOn) {
|
||||
op = "启用"
|
||||
} else {
|
||||
op = "停用"
|
||||
}
|
||||
teaweb.confirm("确定要" + op + "此节点吗?", function () {
|
||||
that.$post(".node.updateIsOn")
|
||||
.params({
|
||||
nodeId: nodeId,
|
||||
isOn: isOn
|
||||
})
|
||||
.success(function () {
|
||||
teaweb.successRefresh(op + "成功")
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 显示和隐藏IP
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user