mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 12:20:28 +08:00
24 lines
472 B
JavaScript
24 lines
472 B
JavaScript
|
|
Tea.context(function () {
|
||
|
|
this.createAdmin = function () {
|
||
|
|
teaweb.popup("/admins/createPopup", {
|
||
|
|
height: "22em",
|
||
|
|
callback: function () {
|
||
|
|
teaweb.success("保存成功", function () {
|
||
|
|
teaweb.reload()
|
||
|
|
})
|
||
|
|
}
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
this.deleteAdmin = function (adminId) {
|
||
|
|
let that = this
|
||
|
|
teaweb.confirm("确定要删除此系统用户吗?", function () {
|
||
|
|
that.$post(".delete")
|
||
|
|
.params({
|
||
|
|
adminId: adminId
|
||
|
|
})
|
||
|
|
.post()
|
||
|
|
.refresh()
|
||
|
|
})
|
||
|
|
}
|
||
|
|
})
|