From e79bd251cbcd66da2b6e93eea192ec97c84b961f Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 17 Mar 2022 14:51:29 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=E4=B8=80=E4=BA=9Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/audits/LoginLogList.vue | 4 ++++ src/views/users/Role/RoleDetail/RoleUsers.vue | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/views/audits/LoginLogList.vue b/src/views/audits/LoginLogList.vue index 63a2d44e5..31868f509 100644 --- a/src/views/audits/LoginLogList.vue +++ b/src/views/audits/LoginLogList.vue @@ -16,6 +16,10 @@ export default { const dateTo = getDayEnd(now).toISOString() return { tableConfig: { + permissions: { + app: 'audits', + resource: 'userloginlog' + }, url: '/api/v1/audits/login-logs/', columns: [ 'username', 'type', 'backend_display', 'ip', 'city', diff --git a/src/views/users/Role/RoleDetail/RoleUsers.vue b/src/views/users/Role/RoleDetail/RoleUsers.vue index 055dd89ef..cf271b209 100644 --- a/src/views/users/Role/RoleDetail/RoleUsers.vue +++ b/src/views/users/Role/RoleDetail/RoleUsers.vue @@ -77,6 +77,9 @@ export default { }, headerActions: { hasLeftActions: false, + importOptions: { + canImportUpdate: false + }, searchConfig: { exclude: ['scope', 'role', 'org'] }