Merge branch 'pam' of github.com:jumpserver/lina into pam

This commit is contained in:
ibuler 2025-02-28 15:56:08 +08:00
commit 819bbae3e5
10 changed files with 20 additions and 10 deletions

View File

@ -129,6 +129,16 @@ export default [
permissions: ['accounts.view_accountrisk'] permissions: ['accounts.view_accountrisk']
}, },
hidden: true hidden: true
},
{
path: 'executions/:id',
component: () => import('@/views/pam/RiskDetect/RiskHistoryExecutionDetail/index.vue'),
name: 'RiskHistoryExecutionDetail',
hidden: true,
meta: {
title: i18n.t('ExecutionDetail'),
permissions: ['accounts.view_checkaccountexecution']
}
} }
] ]
} }

View File

@ -45,7 +45,7 @@ export default {
click: function() { click: function() {
this.$axios.post( this.$axios.post(
`/api/v1/accounts/account-backup-plan-executions/`, `/api/v1/accounts/account-backup-plan-executions/`,
{ plan: this.object.id } { automation: this.object.id }
).then(res => { ).then(res => {
openTaskPage(res['task']) openTaskPage(res['task'])
}) })

View File

@ -51,7 +51,7 @@ export default {
name: 'AccountBackupExecutionDetail', name: 'AccountBackupExecutionDetail',
params: { id: row.id } params: { id: row.id }
}), }),
getTitle: ({ row }) => row.automation.slice(0, 8), getTitle: ({ row }) => row.id.slice(0, 8),
drawer: true, drawer: true,
can: this.$hasPerm('accounts.view_backupaccountexecution') can: this.$hasPerm('accounts.view_backupaccountexecution')
} }

View File

@ -44,7 +44,7 @@ export default {
name: 'AccountChangeSecretExecutionDetail', name: 'AccountChangeSecretExecutionDetail',
params: { id: row.id } params: { id: row.id }
}), }),
getTitle: ({ row }) => row.automation.slice(0, 8), getTitle: ({ row }) => row.id.slice(0, 8),
drawer: true, drawer: true,
can: this.$hasPerm('accounts.view_changesecretexecution') can: this.$hasPerm('accounts.view_changesecretexecution')
} }

View File

@ -51,7 +51,7 @@ export default {
name: 'AccountDiscoverExecutionDetail', name: 'AccountDiscoverExecutionDetail',
params: { id: row.id } params: { id: row.id }
}), }),
getTitle: ({ row }) => row.automation.slice(0, 8), getTitle: ({ row }) => row.id.slice(0, 8),
drawer: true drawer: true
} }
}, },

View File

@ -50,7 +50,7 @@ export default {
name: 'AccountPushExecutionDetail', name: 'AccountPushExecutionDetail',
params: { id: row.id } params: { id: row.id }
}), }),
getTitle: ({ row }) => row.automation.slice(0, 8), getTitle: ({ row }) => row.id.slice(0, 8),
drawer: true, drawer: true,
can: this.$hasPerm('accounts.view_pushaccountexecution') can: this.$hasPerm('accounts.view_pushaccountexecution')
} }

View File

@ -48,10 +48,10 @@ export default {
formatter: DetailFormatter, formatter: DetailFormatter,
formatterArgs: { formatterArgs: {
getRoute: ({ row }) => ({ getRoute: ({ row }) => ({
name: 'AccountCheckExecutionDetail', name: 'RiskHistoryExecutionDetail',
params: { id: row.automation } params: { id: row.id }
}), }),
getTitle: ({ row }) => row.automation.slice(0, 8), getTitle: ({ row }) => row.id.slice(0, 8),
drawer: true, drawer: true,
can: this.$hasPerm('accounts.view_checkaccountexecution') can: this.$hasPerm('accounts.view_checkaccountexecution')
} }
@ -63,7 +63,7 @@ export default {
drawer: true, drawer: true,
getTitle: ({ row }) => row.snapshot.name, getTitle: ({ row }) => row.snapshot.name,
getRoute: ({ row }) => ({ getRoute: ({ row }) => ({
name: 'AccountCheckList', name: 'AccountCheckDetail',
params: { id: row.automation } params: { id: row.automation }
}) })
}, },

View File

@ -21,7 +21,7 @@ export default {
return { return {
execution: { id: '' }, execution: { id: '' },
config: { config: {
url: '/api/v1/accounts/push-account-executions', url: '/api/v1/accounts/check-account-executions',
activeMenu: 'AccountPushExecutionInfo', activeMenu: 'AccountPushExecutionInfo',
actions: { actions: {
hasUpdate: false, hasUpdate: false,