From ef43be0cb78076cf8b4afe4ce958c177f46cb277 Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Mon, 9 Dec 2024 18:45:58 +0800 Subject: [PATCH] perf: Add drawer --- .../Table/TableFormatters/DetailFormatter.vue | 8 +++ .../AccountBackupDetail/index.vue | 5 +- .../AccountBackup/AccountBackupList.vue | 39 +++++++++++-- .../accounts/AccountPush/AccountPushList.vue | 46 +++++++++++++-- src/views/pam/Account/AssetList.vue | 1 - src/views/pam/Integration/ApplicationList.vue | 56 +++++++++++++++++-- 6 files changed, 137 insertions(+), 18 deletions(-) diff --git a/src/components/Table/TableFormatters/DetailFormatter.vue b/src/components/Table/TableFormatters/DetailFormatter.vue index 4ff7208dc..b72c2149e 100644 --- a/src/components/Table/TableFormatters/DetailFormatter.vue +++ b/src/components/Table/TableFormatters/DetailFormatter.vue @@ -29,7 +29,10 @@ export default { Drawer, AssetDetail: () => import('@/views/assets/Asset/AssetDetail'), AssetAccountList: () => import('@/views/accounts/Account/AccountDetail/index.vue'), + AccountPushDetail: () => import('@/views/accounts/AccountPush/AccountPushDetail/index.vue'), AccountDiscoverTaskDetail: () => import('@/views/accounts/AccountDiscover/TaskDetail/index'), + AccountBackupDetail: () => import('@/views/accounts/AccountBackup/AccountBackupDetail/index.vue'), + IntegrationApplicationDetail: () => import('@/views/pam/Integration/ApplicationDetail/index.vue'), AccountTemplateDetail: () => import('@/views/accounts/AccountTemplate/AccountTemplateDetail/index.vue') }, extends: BaseFormatter, @@ -132,6 +135,7 @@ export default { this.showTableDetailDrawer = true this.currentTemplate = detailRoute.name + this.drawerTitle = this.$t(detailRoute.name) this.$route.params.id = detailRoute.params.id return @@ -167,4 +171,8 @@ export default { width: 28px; height: 28px; } + +::v-deep .go-back { + display: none; +} diff --git a/src/views/accounts/AccountBackup/AccountBackupDetail/index.vue b/src/views/accounts/AccountBackup/AccountBackupDetail/index.vue index 9c83493a9..40ec6677f 100644 --- a/src/views/accounts/AccountBackup/AccountBackupDetail/index.vue +++ b/src/views/accounts/AccountBackup/AccountBackupDetail/index.vue @@ -13,6 +13,7 @@ import AccountBackupExecutionList from '@/views/accounts/AccountBackup/AccountBackupExecution/AccountBackupExecutionList.vue' export default { + name: 'AccountBackupDetail', components: { GenericDetailPage, AccountBackupInfo, @@ -39,7 +40,3 @@ export default { } } - - diff --git a/src/views/accounts/AccountBackup/AccountBackupList.vue b/src/views/accounts/AccountBackup/AccountBackupList.vue index d152305a2..3fbfa395f 100644 --- a/src/views/accounts/AccountBackup/AccountBackupList.vue +++ b/src/views/accounts/AccountBackup/AccountBackupList.vue @@ -1,20 +1,33 @@ +