优化数据库节点管理

This commit is contained in:
刘祥超
2021-08-30 10:56:03 +08:00
parent 0790403923
commit 4dc54f95b6
22 changed files with 397 additions and 47 deletions

View File

@@ -11,18 +11,6 @@ Tea.context(function () {
})
}
// 修改节点
this.updateNode = function (nodeId) {
teaweb.popup("/db/updatePopup?nodeId=" + nodeId, {
height: "30em",
callback: function () {
teaweb.success("保存成功", function () {
window.location.reload()
})
}
})
}
// 删除节点
this.deleteNode = function (nodeId) {
let that = this
@@ -34,15 +22,7 @@ Tea.context(function () {
.refresh()
})
}
// 清理节点
this.cleanNode = function (nodeId) {
teaweb.popup("/db/cleanPopup?nodeId=" + nodeId, {
width: "44em",
height: "26em"
})
}
// 显示错误信息
this.showError = function (err) {
teaweb.popupTip("<span style=\"color:#db2828\">错误信息:" + err + "</span>")