fix: 改密计划权限位

This commit is contained in:
Jiangjie.Bai
2022-03-17 18:17:48 +08:00
committed by Jiangjie.Bai
parent 977328ff41
commit 96a0d9c5e2
4 changed files with 6 additions and 2 deletions

View File

@@ -103,6 +103,7 @@ export default {
{
title: vm.$t('xpack.Execute'),
name: 'execute',
can: this.$hasPerm('xpack.add_applicationchangeauthplanexecution'),
type: 'info',
callback: function({ row }) {
this.$axios.post(

View File

@@ -33,7 +33,8 @@ export default {
title: this.$t('xpack.ChangeAuthPlan.ManualExecutePlan'),
attrs: {
type: 'primary',
label: this.$t('xpack.ChangeAuthPlan.Execute')
label: this.$t('xpack.ChangeAuthPlan.Execute'),
disabled: !this.$hasPerm('xpack.add_applicationchangeauthplanexecution')
},
callbacks: {
click: function() {

View File

@@ -33,7 +33,8 @@ export default {
title: this.$t('xpack.ChangeAuthPlan.ManualExecutePlan'),
attrs: {
type: 'primary',
label: this.$t('xpack.ChangeAuthPlan.Execute')
label: this.$t('xpack.ChangeAuthPlan.Execute'),
disabled: !this.$hasPerm('xpack.add_changeauthplanexecution')
},
callbacks: {
click: function() {

View File

@@ -87,6 +87,7 @@ export default {
{
title: vm.$t('xpack.Execute'),
name: 'execute',
can: this.$hasPerm('xpack.add_changeauthplanexecution'),
type: 'info',
callback: function({ row }) {
this.$axios.post(