Files
EdgeAdmin/web/views/@default/clusters/cluster/node/install.js
2020-09-06 16:19:34 +08:00

12 lines
337 B
JavaScript

Tea.context(function () {
this.updateNodeIsInstalled = function (isInstalled) {
teaweb.confirm("确定要将当前节点修改为未安装状态?", function () {
this.$post("/clusters/cluster/node/updateInstallStatus")
.params({
nodeId: this.nodeId,
isInstalled: isInstalled ? 1 : 0
})
.refresh()
})
}
})