2020-11-15 16:28:25 +08:00
|
|
|
Tea.context(function () {
|
|
|
|
|
this.success = NotifyReloadSuccess("保存成功")
|
2021-08-25 11:55:06 +08:00
|
|
|
|
|
|
|
|
this.domain = {id: this.domainId, name: this.domainName}
|
2022-07-14 09:48:13 +08:00
|
|
|
this.oldDomain = {id: this.domainId, name: this.domainName}
|
2021-08-25 11:55:06 +08:00
|
|
|
this.changeDomain = function (domain) {
|
|
|
|
|
this.domain.id = domain.id
|
|
|
|
|
this.domain.name = domain.name
|
|
|
|
|
}
|
2021-09-20 16:37:41 +08:00
|
|
|
|
|
|
|
|
this.addCnameRecord = function (name) {
|
|
|
|
|
this.$refs.cnameRecords.addValue(name)
|
|
|
|
|
}
|
2022-04-18 18:19:30 +08:00
|
|
|
|
|
|
|
|
this.generateRandName = function () {
|
|
|
|
|
this.$post(".randomName")
|
|
|
|
|
.success(function (resp) {
|
|
|
|
|
this.dnsName = resp.data.name
|
|
|
|
|
})
|
|
|
|
|
}
|
2020-11-15 16:28:25 +08:00
|
|
|
})
|