增加DNS服务商账号管理

This commit is contained in:
刘祥超
2020-11-11 21:32:19 +08:00
parent 1037b83742
commit a697ec65ac
15 changed files with 464 additions and 3 deletions

View File

@@ -0,0 +1,34 @@
Tea.context(function () {
this.createProvider = function () {
teaweb.popup(Tea.url(".createPopup"), {
height: "26em",
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()
})
}
})
}
this.updateProvider = function (providerId) {
teaweb.popup(Tea.url(".updatePopup?providerId=" + providerId), {
height: "26em",
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()
})
}
})
}
this.deleteProvider = function (providerId) {
let that = this
teaweb.confirm("确定要删除这个DNS服务商账号吗", function () {
that.$post(".delete")
.params({
providerId: providerId
})
.refresh()
})
}
})