fix: 修复应用改密计划详情页执行列表操作权限

This commit is contained in:
“huailei000”
2022-04-19 20:14:30 +08:00
committed by 老广
parent 484fb63577
commit c17d983b2f
2 changed files with 2 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ export default {
name: 'retry',
type: 'info',
title: this.$t('xpack.ChangeAuthPlan.Retry'),
can: this.$hasPerm('xpack.change_applicationchangeauthplantask'),
callback: function({ row, tableData }) {
this.$axios.put(
`/api/v1/xpack/change-auth-plan/app-plan-execution-subtask/${row.id}/`,

View File

@@ -92,7 +92,7 @@ export default {
name: 'detail',
title: this.$t('xpack.ChangeAuthPlan.Detail'),
type: 'info',
can: 'xpack.view_applicationchangeauthplantask',
can: this.$hasPerm('xpack.view_applicationchangeauthplantask'),
callback: function({ row }) {
return this.$router.push({ name: 'AppChangeAuthPlanExecutionDetail', params: { id: row.id }})
}