继续è°workflowï:调整目录结构

This commit is contained in:
zhengxinonly
2021-06-22 03:18:44 +08:00
parent d7c7237cd4
commit 05dff28523
43 changed files with 203 additions and 556 deletions
+3 -4
View File
@@ -1,8 +1,7 @@
from flask import Blueprint, render_template, request, jsonify
from flask import Blueprint, render_template, request, jsonify, escape
from applications.common.utils.http import table_api, success_api, fail_api
from applications.common.utils.rights import authorize
from applications.common.utils.validate import xss_escape
from applications.models import DictType, DictData
from applications.common.admin import dict_curd
@@ -21,7 +20,7 @@ def main():
def dict_type_data():
page = request.args.get('page', type=int)
limit = request.args.get('limit', type=int)
type_name = xss_escape(request.args.get('typeName', type=str))
type_name = escape(request.args.get('typeName', type=str))
data, count = dict_curd.get_dict_type(page=page, limit=limit, type_name=type_name)
return table_api(data=data,count=count)
@@ -101,7 +100,7 @@ def dict_type_delete(_id):
def dict_code_data():
page = request.args.get('page', type=int)
limit = request.args.get('limit', type=int)
type_code = xss_escape(request.args.get('typeCode', type=str))
type_code = escape(request.args.get('typeCode', type=str))
data, count = dict_curd.get_dict_data(page=page, limit=limit, type_code=type_code)
return table_api(data=data,count=count)