前端页面
This commit is contained in:
17
EdgeAdmin/web/views/@default/httpdns/clusters/cluster.js
Normal file
17
EdgeAdmin/web/views/@default/httpdns/clusters/cluster.js
Normal file
@@ -0,0 +1,17 @@
|
||||
Tea.context(function () {
|
||||
this.deleteNode = function (nodeId) {
|
||||
let that = this
|
||||
teaweb.confirm("确定要删除此节点吗?", function () {
|
||||
that.$post("/httpdns/clusters/deleteNode")
|
||||
.params({
|
||||
clusterId: that.clusterId,
|
||||
nodeId: nodeId
|
||||
})
|
||||
.success(function () {
|
||||
teaweb.success("删除成功", function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user