[用户]实现对平台用户的增删改查

This commit is contained in:
刘祥超
2020-12-04 16:00:55 +08:00
parent f87d9c6994
commit 67b9e0e503
19 changed files with 681 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
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()
})
}
})