实现监控节点管理

This commit is contained in:
刘祥超
2021-04-06 16:32:23 +08:00
parent f85b3a40ea
commit dbfbdddb3a
22 changed files with 617 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
Tea.context(function () {
// 创建节点
this.createNode = function () {
teaweb.popup("/settings/monitorNodes/node/createPopup", {
width: "50em",
height: "30em",
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()
})
}
})
}
// 删除节点
this.deleteNode = function (nodeId) {
let that = this
teaweb.confirm("确定要删除此节点吗?", function () {
that.$post("/settings/monitorNodes/delete")
.params({
nodeId: nodeId
})
.refresh()
})
}
})