Files
EdgeAdmin/web/views/@default/servers/certs/acme/accounts/index.js
2021-10-03 13:09:49 +08:00

33 lines
677 B
JavaScript

Tea.context(function () {
this.createAccount = function () {
teaweb.popup(".createPopup", {
height: "24em",
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()
})
}
})
}
this.updateAccount = function (accountId) {
teaweb.popup(".updatePopup?accountId=" + accountId, {
height: "24em",
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()
})
}
})
}
this.deleteAccount = function (accountId) {
teaweb.confirm("确定要删除此账号吗?", function () {
this.$post(".delete")
.params({
accountId: accountId
})
.refresh()
})
}
})