优化集群选择DNS设置交互

This commit is contained in:
刘祥超
2021-08-25 11:55:06 +08:00
parent 6536ace4f7
commit 745f5d9759
5 changed files with 28 additions and 5 deletions

View File

@@ -21,12 +21,14 @@ Vue.component("dns-domain-selector", {
callback: function (resp) {
that.domainId = resp.data.domainId
that.domainName = resp.data.domainName
that.change()
}
})
},
remove: function() {
this.domainId = 0
this.domainName = ""
this.change()
},
update: function () {
let that = this
@@ -34,8 +36,15 @@ Vue.component("dns-domain-selector", {
callback: function (resp) {
that.domainId = resp.data.domainId
that.domainName = resp.data.domainName
that.change()
}
})
},
change: function () {
this.$emit("change", {
id: this.domainId,
name: this.domainName
})
}
},
template: `<div>