mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-26 20:26:35 +08:00
增加DNS域名管理
This commit is contained in:
34
web/views/@default/dns/providers/provider.js
Normal file
34
web/views/@default/dns/providers/provider.js
Normal file
@@ -0,0 +1,34 @@
|
||||
Tea.context(function () {
|
||||
this.updateProvider = function (providerId) {
|
||||
teaweb.popup(Tea.url(".updatePopup?providerId=" + providerId), {
|
||||
height: "26em",
|
||||
callback: function () {
|
||||
teaweb.success("保存成功", function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
this.createDomain = function () {
|
||||
teaweb.popup("/dns/domains/createPopup?providerId=" + this.provider.id, {
|
||||
callback: function () {
|
||||
teaweb.success("保存成功", function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
this.deleteDomain = function (domain) {
|
||||
let that = this
|
||||
teaweb.confirm("确定要删除域名\"" + domain.name + "\"吗?", function () {
|
||||
that.$post("/dns/domains/delete")
|
||||
.params({
|
||||
domainId: domain.id
|
||||
})
|
||||
.post()
|
||||
.refresh()
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user