mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 06:40:27 +08:00
22 lines
435 B
JavaScript
22 lines
435 B
JavaScript
|
|
Tea.context(function () {
|
||
|
|
this.createUser = function () {
|
||
|
|
teaweb.popup(Tea.url(".createPopup"), {
|
||
|
|
callback: function () {
|
||
|
|
teaweb.success("保存成功", function () {
|
||
|
|
teaweb.reload()
|
||
|
|
})
|
||
|
|
}
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
this.deleteUser = function (userId) {
|
||
|
|
let that = this
|
||
|
|
teaweb.confirm("确定要删除这个用户吗?", function () {
|
||
|
|
that.$post(".delete")
|
||
|
|
.params({
|
||
|
|
userId: userId
|
||
|
|
})
|
||
|
|
.refresh()
|
||
|
|
})
|
||
|
|
}
|
||
|
|
})
|