From e0127fd00f23dc87b88e970cd16a02e78c234425 Mon Sep 17 00:00:00 2001 From: apan Date: Fri, 5 Aug 2022 14:51:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=80=BB=E9=A1=B5=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/power/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"])