Fixed: Detail Drawer

This commit is contained in:
zhaojisen
2025-02-28 11:34:16 +08:00
committed by ZhaoJiSen
parent f0b332a269
commit fa93f52f87
4 changed files with 7 additions and 5 deletions

View File

@@ -60,6 +60,7 @@ export default {
label: this.$t('DisplayName'),
formatter: DetailFormatter,
formatterArgs: {
drawer: true,
getTitle: ({ row }) => row.snapshot.name,
getRoute: ({ row }) => ({
name: 'AccountBackupDetail',

View File

@@ -70,8 +70,7 @@ export default {
getTitle: ({ row }) => row.snapshot.name,
getRoute: ({ row }) => ({
name: 'AccountDiscoverTaskDetail',
params: { id: row.automation },
query: { type: 'pam' }
params: { id: row.automation }
}),
drawer: true
},

View File

@@ -41,6 +41,7 @@ export default {
label: this.$t('Asset'),
formatter: DetailFormatter,
formatterArgs: {
drawer: true,
can: this.$hasPerm('assets.view_asset'),
getTitle({ row }) {
return row.asset.name
@@ -57,6 +58,7 @@ export default {
label: this.$t('Username'),
formatter: DetailFormatter,
formatterArgs: {
drawer: true,
can: this.$hasPerm('accounts.view_account'),
getTitle({ row }) {
return row.account.username

View File

@@ -47,10 +47,9 @@ export default {
label: this.$t('ID'),
formatter: DetailFormatter,
formatterArgs: {
route: 'AccountCheckExecutionDetail',
getRoute: ({ row }) => ({
name: 'AccountCheckExecutionDetail',
params: { id: row.id }
params: { id: row.automation }
}),
getTitle: ({ row }) => row.automation.slice(0, 8),
drawer: true,
@@ -61,9 +60,10 @@ export default {
label: this.$t('DisplayName'),
formatter: DetailFormatter,
formatterArgs: {
drawer: true,
getTitle: ({ row }) => row.snapshot.name,
getRoute: ({ row }) => ({
name: 'AccountCheckDetail',
name: 'AccountCheckList',
params: { id: row.automation }
})
},