From fc9b09f5fdaf0cc136148f0a60b21733bc1a69a5 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Thu, 17 Mar 2022 16:41:00 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=20change=20auth=20pl?= =?UTF-8?q?an=20(#1561)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: 修改 change auth plan * perf: 还原 Co-authored-by: ibuler --- src/components/TagSearch/index.vue | 2 +- .../AppChangeAuthPlan/AppChangeAuthPlanList.vue | 13 ++++++++++--- src/views/audits/CommandExecutionList.vue | 4 ++++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/components/TagSearch/index.vue b/src/components/TagSearch/index.vue index 292da2179..74c9acbeb 100644 --- a/src/components/TagSearch/index.vue +++ b/src/components/TagSearch/index.vue @@ -125,7 +125,7 @@ export default { value: attr } } - if (routerSearchAttrs.length === 0) { + if (routerSearchAttrs.length !== 0) { delete routeFilter.search } diff --git a/src/views/accounts/ChangeAuthPlan/AppChangeAuthPlan/AppChangeAuthPlanList.vue b/src/views/accounts/ChangeAuthPlan/AppChangeAuthPlan/AppChangeAuthPlanList.vue index 54cd8d45b..f34820bd9 100644 --- a/src/views/accounts/ChangeAuthPlan/AppChangeAuthPlan/AppChangeAuthPlanList.vue +++ b/src/views/accounts/ChangeAuthPlan/AppChangeAuthPlan/AppChangeAuthPlanList.vue @@ -17,14 +17,21 @@ export default { const vm = this return { tableConfig: { + permissions: { + 'app': 'xpack', + 'resource': 'applicationchangeauthplan' + }, url: '/api/v1/xpack/change-auth-plan/app-plan/', columns: [ - 'name', 'password_strategy_display', - 'is_periodic', 'periodic_display', 'run_times', 'comment', 'org_name', 'actions' + 'name', 'password_strategy_display', 'is_periodic', 'periodic_display', + 'run_times', 'comment', 'org_name', 'actions' ], columnsShow: { min: ['name', 'actions'], - default: ['name', 'password_strategy_display', 'is_periodic', 'periodic_display', 'run_times', 'actions'] + default: [ + 'name', 'password_strategy_display', 'is_periodic', + 'periodic_display', 'run_times', 'actions' + ] }, columnsMeta: { name: { diff --git a/src/views/audits/CommandExecutionList.vue b/src/views/audits/CommandExecutionList.vue index 82434ac9e..bb32f8f32 100644 --- a/src/views/audits/CommandExecutionList.vue +++ b/src/views/audits/CommandExecutionList.vue @@ -25,6 +25,10 @@ export default { const vm = this return { tableConfig: { + permissions: { + app: 'ops', + resource: 'commandexecution' + }, url: '/api/v1/audits/command-execution-logs/', columns: [ 'hosts', 'user', 'command', 'run_as', 'result', 'is_finished',