refactor(api):调整模板目录

This commit is contained in:
zhengxinonly
2021-07-22 00:57:22 +08:00
parent 5470837707
commit ce8adda79d
35 changed files with 63 additions and 63 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ dept_api = Api(dept_bp)
@dept_bp.get('/')
@authorize("admin:dept:main", log=True)
def main():
return render_template('admin/department/main.html')
return render_template('department/main.html')
@dept_bp.get('/data')
@@ -32,7 +32,7 @@ def data():
class AddDepartment(Resource):
@authorize("admin:dept:add", log=True)
def get(self):
return make_response(render_template('admin/department/add.html'))
return make_response(render_template('department/add.html'))
@authorize("admin:dept:add", log=True)
def post(self):
@@ -98,7 +98,7 @@ class DeptURD(Resource):
@authorize("admin:dept:edit", log=True)
def get(self, dept_id):
dept = Dept.query.filter_by(id=dept_id).first()
return make_response(render_template('admin/department/edit.html', dept=dept))
return make_response(render_template('department/edit.html', dept=dept))
@authorize("admin:dept:edit", log=True)
def put(self, dept_id):