Files
EdgeAdmin/web/views/@default/servers/certs/acme/users/index.js
2020-11-24 17:36:42 +08:00

32 lines
664 B
JavaScript

Tea.context(function () {
this.createUser = function () {
teaweb.popup(Tea.url(".createPopup"), {
callback: function () {
teaweb.success("创建成功", function () {
teaweb.reload()
})
}
})
}
this.updateUser = function (userId) {
teaweb.popup("/servers/certs/acme/users/updatePopup?userId=" + userId, {
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()
})
}
})
}
this.deleteUser = function (userId) {
let that = this
teaweb.confirm("确定要删除此用户吗?", function () {
that.$post(".delete")
.params({
userId: userId
})
.refresh()
})
}
})