2020-11-14 21:28:14 +08:00
|
|
|
Tea.context(function () {
|
|
|
|
|
this.isRequesting = true
|
|
|
|
|
|
|
|
|
|
this.$delay(function () {
|
|
|
|
|
this.reload()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.updateCluster = function (clusterId) {
|
|
|
|
|
let that = this
|
|
|
|
|
teaweb.popup("/dns/updateClusterPopup?clusterId=" + clusterId, {
|
2020-11-15 21:17:52 +08:00
|
|
|
height: "25em",
|
2020-11-14 21:28:14 +08:00
|
|
|
callback: function () {
|
|
|
|
|
teaweb.success("保存成功", function () {
|
|
|
|
|
that.reload()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-31 22:23:07 +08:00
|
|
|
this.updateNode = function (clusterId, nodeId) {
|
2020-11-14 21:28:14 +08:00
|
|
|
let that = this
|
2021-07-31 22:23:07 +08:00
|
|
|
teaweb.popup("/dns/issues/updateNodePopup?clusterId=" + clusterId + "&nodeId=" + nodeId, {
|
2021-08-25 17:16:14 +08:00
|
|
|
width: "46em",
|
|
|
|
|
height: "26em",
|
2020-11-14 21:28:14 +08:00
|
|
|
callback: function () {
|
|
|
|
|
teaweb.success("保存成功", function () {
|
|
|
|
|
that.reload()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.reload = function () {
|
|
|
|
|
this.isRequesting = true
|
|
|
|
|
this.$post("$")
|
|
|
|
|
.success(function (resp) {
|
|
|
|
|
this.issues = resp.data.issues;
|
|
|
|
|
})
|
|
|
|
|
.done(function () {
|
|
|
|
|
this.isRequesting = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|