完成部门管理,增加.flaskenv配置,抽基本js和css作为引入模板

This commit is contained in:
mkg
2021-06-01 17:54:13 +08:00
parent f051693690
commit e0738aa5b2
22 changed files with 1003 additions and 76 deletions
+3 -3
View File
@@ -73,7 +73,7 @@ def update():
return success_api(msg="更新权限成功")
# 启用用户
# 启用权限
@admin_power.route('/enable', methods=['PUT'])
@authorize_and_log("admin:power:edit")
def enable():
@@ -83,11 +83,11 @@ def enable():
res = enable_status(id)
if not res:
return fail_api(msg="出错啦")
return success_api(msg="成功")
return success_api(msg="成功")
return fail_api(msg="数据错误")
# 禁用用户
# 禁用权限
@admin_power.route('/disable', methods=['PUT'])
@authorize_and_log("admin:power:edit")
def disenable():