'wip(semantic):调整模板文件'

This commit is contained in:
zhengxinonly
2021-09-08 01:05:54 +08:00
parent e918727984
commit 7505e4552b
29 changed files with 588 additions and 414 deletions
+3 -3
View File
@@ -8,13 +8,13 @@ from applications.view import index_bp
@index_bp.get('/dept')
@authorize("admin:dept:main", log=True)
def dept_index():
return render_template('department/main.html')
return render_template('admin/department/main.html')
@index_bp.get('/dept/add')
@authorize("admin:dept:add", log=True)
def add():
return render_template('department/add.html')
return render_template('admin/department/add.html')
@index_bp.get('/dept/edit')
@@ -22,4 +22,4 @@ def add():
def edit():
dept_id = request.args.get("deptId", type=int)
dept = CompanyDepartment.query.get(dept_id)
return render_template('department/edit.html', dept=dept)
return render_template('admin/department/edit.html', dept=dept)