mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-11 18:30:25 +08:00
优化数据库节点管理
This commit is contained in:
16
web/views/@default/db/node.js
Normal file
16
web/views/@default/db/node.js
Normal file
@@ -0,0 +1,16 @@
|
||||
Tea.context(function () {
|
||||
this.$delay(function () {
|
||||
this.loadStatus(this.node.id)
|
||||
})
|
||||
|
||||
this.status = null
|
||||
this.loadStatus = function (nodeId) {
|
||||
this.$post(".status")
|
||||
.params({
|
||||
nodeId: nodeId
|
||||
})
|
||||
.success(function (resp) {
|
||||
this.status = resp.data.status
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user