mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-30 05:42:19 +00:00
Fixed: Detail Drawer
This commit is contained in:
@@ -60,6 +60,7 @@ export default {
|
||||
label: this.$t('DisplayName'),
|
||||
formatter: DetailFormatter,
|
||||
formatterArgs: {
|
||||
drawer: true,
|
||||
getTitle: ({ row }) => row.snapshot.name,
|
||||
getRoute: ({ row }) => ({
|
||||
name: 'AccountBackupDetail',
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 }
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user