mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-19 15:30:25 +08:00
区域设置中增加节点快速设置区域的功能
This commit is contained in:
12
web/views/@default/clusters/regions/nodes.js
Normal file
12
web/views/@default/clusters/regions/nodes.js
Normal file
@@ -0,0 +1,12 @@
|
||||
Tea.context(function () {
|
||||
this.updateNodeRegion = function (node) {
|
||||
let nodeId = node.id
|
||||
let regionId = (node.region ? node.region.id : 0)
|
||||
|
||||
teaweb.popup(Tea.url(".updateNodeRegionPopup", { nodeId: nodeId, regionId: regionId }), {
|
||||
callback: function () {
|
||||
teaweb.successRefresh("保存成功")
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user