分页问题修改

duizhaopin
apan 2 years ago
parent c008dc2f5b
commit 76a64c586c

@ -93,10 +93,11 @@ def get_power_list():
# 思路角色表角色id->模块权限表object_id-> 终端权限表()
# | |
# role_id=object_id module_id=module_id
page = int(request.values.get("page"))
page_size = int(request.values.get("page_size"))
page = int(request.values.get("page", 1))
page_size = int(request.values.get("page_size", 15))
page_param = PageParam(page, page_size)
data_list = BllModuleRelation().get_role_module(page_param)
return jsonify(Utils.true_return(data=Utils.msyql_table_model(data_list)))
# 通过角色id查询角色列表

@ -90,7 +90,8 @@ class BllModuleRelation(Repository):
count_number = 0
page_param.totalRecords=count_number
page_sql_data = Utils.sql_paging_assemble(sql_all, page_param)
return page_sql_data
return self.execute(page_sql_data).fetchall()
def add_inster_user_moduele(self):
role_id = "a699ff99-117b-11ed-a086-f47b094925e5"

Loading…
Cancel
Save