1
0
mirror of https://github.com/jumpserver/lina.git synced 2025-05-09 08:36:36 +00:00

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']
},
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() {
this.$axios.post(
`/api/v1/accounts/account-backup-plan-executions/`,
{ plan: this.object.id }
{ automation: this.object.id }
).then(res => {
openTaskPage(res['task'])
})

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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