From 9925a270e17455eb481e06ff9f85b93e153494d3 Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Wed, 18 Sep 2019 18:39:07 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E8=BF=9C=E7=A8=8B=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E5=88=97=E8=A1=A8=E6=B7=BB=E5=8A=A0=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=94=A8=E6=88=B7=E6=95=B0=E9=87=8F=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../perms/templates/perms/remote_app_permission_list.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/perms/templates/perms/remote_app_permission_list.html b/apps/perms/templates/perms/remote_app_permission_list.html index 8f1681781..3812b747b 100644 --- a/apps/perms/templates/perms/remote_app_permission_list.html +++ b/apps/perms/templates/perms/remote_app_permission_list.html @@ -15,6 +15,7 @@ {% trans 'User' %} {% trans 'User group' %} {% trans 'RemoteApp' %} + {% trans 'System user' %} {% trans 'Validity' %} {% trans 'Action' %} @@ -49,13 +50,17 @@ function initTable() { $(td).html(num); }}, {targets: 5, createdCell: function (td, cellData, rowData) { + var num = cellData.length; + $(td).html(num); + }}, + {targets: 6, createdCell: function (td, cellData, rowData) { if (!cellData) { $(td).html('') } else { $(td).html('') } }}, - {targets: 6, createdCell: function (td, cellData, rowData) { + {targets: 7, createdCell: function (td, cellData, rowData) { var update_btn = '{% trans "Update" %}'.replace("{{ DEFAULT_PK }}", cellData); var del_btn = '{% trans "Delete" %}'.replace('{{ DEFAULT_PK }}', cellData); $(td).html(update_btn + del_btn) @@ -68,6 +73,7 @@ function initTable() { {data: "users", orderable: false}, {data: "user_groups", orderable: false}, {data: "remote_apps", orderable: false}, + {data: "system_users", orderable: false}, {data: "is_valid", orderable: false}, {data: "id", orderable: false} ],