mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-22 09:10:25 +08:00
优化数据库节点管理
This commit is contained in:
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user