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')