diff --git a/apps/power/views.py b/apps/power/views.py index e392ce9..9a14048 100644 --- a/apps/power/views.py +++ b/apps/power/views.py @@ -98,7 +98,7 @@ def get_power_list(): 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))) + return jsonify(Utils.true_return(data={"total_count": page_param.totalRecords, "data_list": Utils.msyql_table_model(data_list)})) # 通过角色id查询角色列表 @power_router.route("/get_role_module", methods=["GET", "POST"])