mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
fix: 修复应用改密计划权限控制
This commit is contained in:
committed by
Jiangjie.Bai
parent
03431f98c8
commit
8467a64e9f
@@ -82,6 +82,7 @@ export default {
|
|||||||
{
|
{
|
||||||
name: 'log',
|
name: 'log',
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
|
can: 'xpack.view_applicationchangeauthplanexecution',
|
||||||
title: this.$t('xpack.ChangeAuthPlan.Log'),
|
title: this.$t('xpack.ChangeAuthPlan.Log'),
|
||||||
callback: function({ row }) {
|
callback: function({ row }) {
|
||||||
window.open(`/#/ops/celery/task/${row.id}/log/`, '_blank', 'toolbar=yes, width=900, height=600')
|
window.open(`/#/ops/celery/task/${row.id}/log/`, '_blank', 'toolbar=yes, width=900, height=600')
|
||||||
@@ -91,6 +92,7 @@ export default {
|
|||||||
name: 'detail',
|
name: 'detail',
|
||||||
title: this.$t('xpack.ChangeAuthPlan.Detail'),
|
title: this.$t('xpack.ChangeAuthPlan.Detail'),
|
||||||
type: 'info',
|
type: 'info',
|
||||||
|
can: 'xpack.view_applicationchangeauthplantask',
|
||||||
callback: function({ row }) {
|
callback: function({ row }) {
|
||||||
return this.$router.push({ name: 'AppChangeAuthPlanExecutionDetail', params: { id: row.id }})
|
return this.$router.push({ name: 'AppChangeAuthPlanExecutionDetail', params: { id: row.id }})
|
||||||
}
|
}
|
||||||
|
@@ -29,15 +29,18 @@ export default {
|
|||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
title: this.$t('common.BasicInfo'),
|
title: this.$t('common.BasicInfo'),
|
||||||
name: 'AppChangeAuthPlanInfo'
|
name: 'AppChangeAuthPlanInfo',
|
||||||
|
hidden: !this.$hasPerm('xpack.view_applicationchangeauthplan')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('xpack.ChangeAuthPlan.SystemUser'),
|
title: this.$t('xpack.ChangeAuthPlan.SystemUser'),
|
||||||
name: 'ChangeAuthPlanDatabase'
|
name: 'ChangeAuthPlanDatabase',
|
||||||
|
hidden: !this.$hasPerm('xpack.change_applicationchangeauthplan')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('xpack.ChangeAuthPlan.ExecutionList'),
|
title: this.$t('xpack.ChangeAuthPlan.ExecutionList'),
|
||||||
name: 'AppChangeAuthPlanExecutionList'
|
name: 'AppChangeAuthPlanExecutionList',
|
||||||
|
hidden: !this.$hasPerm('xpack.view_applicationchangeauthplanexecution')
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
actions: {
|
actions: {
|
||||||
|
@@ -74,6 +74,7 @@ export default {
|
|||||||
{
|
{
|
||||||
name: 'log',
|
name: 'log',
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
|
can: 'xpack.view_changeauthplanexecution',
|
||||||
title: this.$t('xpack.ChangeAuthPlan.Log'),
|
title: this.$t('xpack.ChangeAuthPlan.Log'),
|
||||||
callback: function({ row }) {
|
callback: function({ row }) {
|
||||||
window.open(`/#/ops/celery/task/${row.id}/log/`, '_blank', 'toolbar=yes, width=900, height=600')
|
window.open(`/#/ops/celery/task/${row.id}/log/`, '_blank', 'toolbar=yes, width=900, height=600')
|
||||||
|
Reference in New Issue
Block a user