update applications/view/department/__init__.py.

This commit is contained in:
sys
2021-11-09 06:17:05 +00:00
committed by Gitee
parent c0fc70425b
commit 2c57bc36ea
+1 -1
View File
@@ -92,7 +92,7 @@ def edit():
@dept_bp.put('/enable') @dept_bp.put('/enable')
@authorize("admin:dept:edit", log=True) @authorize("admin:dept:edit", log=True)
def enable(): def enable():
_id = request.json.get('deptId') id = request.json.get('deptId')
if id: if id:
enable = 1 enable = 1
d = Dept.query.filter_by(id=id).update({"status": enable}) d = Dept.query.filter_by(id=id).update({"status": enable})