From 8467a64e9f0bb7cf4ca4d929add8a05a5056c37a Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Tue, 15 Mar 2022 20:43:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=94=B9=E5=AF=86=E8=AE=A1=E5=88=92=E6=9D=83=E9=99=90=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChangeAuthPlanExecutionList.vue | 2 ++ .../AppChangeAuthPlan/ChangeAuthPlanDetail/index.vue | 9 ++++++--- .../ChangeAuthPlanExecutionList.vue | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/accounts/ChangeAuthPlan/AppChangeAuthPlan/ChangeAuthPlanDetail/AppChangeAuthPlanExecution/ChangeAuthPlanExecutionList.vue b/src/views/accounts/ChangeAuthPlan/AppChangeAuthPlan/ChangeAuthPlanDetail/AppChangeAuthPlanExecution/ChangeAuthPlanExecutionList.vue index ee1ee57b6..6006a1a04 100644 --- a/src/views/accounts/ChangeAuthPlan/AppChangeAuthPlan/ChangeAuthPlanDetail/AppChangeAuthPlanExecution/ChangeAuthPlanExecutionList.vue +++ b/src/views/accounts/ChangeAuthPlan/AppChangeAuthPlan/ChangeAuthPlanDetail/AppChangeAuthPlanExecution/ChangeAuthPlanExecutionList.vue @@ -82,6 +82,7 @@ export default { { name: 'log', type: 'primary', + can: 'xpack.view_applicationchangeauthplanexecution', title: this.$t('xpack.ChangeAuthPlan.Log'), callback: function({ row }) { window.open(`/#/ops/celery/task/${row.id}/log/`, '_blank', 'toolbar=yes, width=900, height=600') @@ -91,6 +92,7 @@ export default { name: 'detail', title: this.$t('xpack.ChangeAuthPlan.Detail'), type: 'info', + can: 'xpack.view_applicationchangeauthplantask', callback: function({ row }) { return this.$router.push({ name: 'AppChangeAuthPlanExecutionDetail', params: { id: row.id }}) } diff --git a/src/views/accounts/ChangeAuthPlan/AppChangeAuthPlan/ChangeAuthPlanDetail/index.vue b/src/views/accounts/ChangeAuthPlan/AppChangeAuthPlan/ChangeAuthPlanDetail/index.vue index e451c98a0..4a981c10f 100644 --- a/src/views/accounts/ChangeAuthPlan/AppChangeAuthPlan/ChangeAuthPlanDetail/index.vue +++ b/src/views/accounts/ChangeAuthPlan/AppChangeAuthPlan/ChangeAuthPlanDetail/index.vue @@ -29,15 +29,18 @@ export default { submenu: [ { title: this.$t('common.BasicInfo'), - name: 'AppChangeAuthPlanInfo' + name: 'AppChangeAuthPlanInfo', + hidden: !this.$hasPerm('xpack.view_applicationchangeauthplan') }, { title: this.$t('xpack.ChangeAuthPlan.SystemUser'), - name: 'ChangeAuthPlanDatabase' + name: 'ChangeAuthPlanDatabase', + hidden: !this.$hasPerm('xpack.change_applicationchangeauthplan') }, { title: this.$t('xpack.ChangeAuthPlan.ExecutionList'), - name: 'AppChangeAuthPlanExecutionList' + name: 'AppChangeAuthPlanExecutionList', + hidden: !this.$hasPerm('xpack.view_applicationchangeauthplanexecution') } ], actions: { diff --git a/src/views/accounts/ChangeAuthPlan/AssetChangeAuthPlan/ChangeAuthPlanDetail/ChangeAuthPlanExecution/ChangeAuthPlanExecutionList.vue b/src/views/accounts/ChangeAuthPlan/AssetChangeAuthPlan/ChangeAuthPlanDetail/ChangeAuthPlanExecution/ChangeAuthPlanExecutionList.vue index 49cb569ac..336cee49e 100644 --- a/src/views/accounts/ChangeAuthPlan/AssetChangeAuthPlan/ChangeAuthPlanDetail/ChangeAuthPlanExecution/ChangeAuthPlanExecutionList.vue +++ b/src/views/accounts/ChangeAuthPlan/AssetChangeAuthPlan/ChangeAuthPlanDetail/ChangeAuthPlanExecution/ChangeAuthPlanExecutionList.vue @@ -74,6 +74,7 @@ export default { { name: 'log', type: 'primary', + can: 'xpack.view_changeauthplanexecution', title: this.$t('xpack.ChangeAuthPlan.Log'), callback: function({ row }) { window.open(`/#/ops/celery/task/${row.id}/log/`, '_blank', 'toolbar=yes, width=900, height=600')