18 lines
551 B
JavaScript
18 lines
551 B
JavaScript
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()
|
|
})
|
|
})
|
|
})
|
|
}
|
|
})
|