区域设置中增加节点快速设置区域的功能

This commit is contained in:
GoEdgeLab
2022-10-20 15:11:26 +08:00
parent 71567af989
commit 349b27f2f1
9 changed files with 303 additions and 3 deletions

View 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("保存成功")
}
})
}
})