From ffee484d6c2a389f3c3f623b52bbfd795905208d Mon Sep 17 00:00:00 2001 From: w940853815 <940853815@qq.com> Date: Wed, 19 Feb 2025 18:47:52 +0800 Subject: [PATCH] perf: add drawer functionality and title formatting to AccountChangeSecret and AccountPush execution lists --- .../AccountChangeSecretExecutionList.vue | 4 ++++ src/views/accounts/AccountPush/AccountPushExecutionList.vue | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/accounts/AccountChangeSecret/AccountChangeSecretExecution/AccountChangeSecretExecutionList.vue b/src/views/accounts/AccountChangeSecret/AccountChangeSecretExecution/AccountChangeSecretExecutionList.vue index bb33d13cd..0e591ed3c 100644 --- a/src/views/accounts/AccountChangeSecret/AccountChangeSecretExecution/AccountChangeSecretExecutionList.vue +++ b/src/views/accounts/AccountChangeSecret/AccountChangeSecretExecution/AccountChangeSecretExecutionList.vue @@ -44,6 +44,10 @@ export default { label: this.$t('DisplayName'), formatter: DetailFormatter, formatterArgs: { + drawer: true, + getDrawerTitle({ row }) { + return row.snapshot.name + }, getTitle: ({ row }) => row.snapshot.name, getRoute: ({ row }) => ({ name: 'AccountChangeSecretDetail', diff --git a/src/views/accounts/AccountPush/AccountPushExecutionList.vue b/src/views/accounts/AccountPush/AccountPushExecutionList.vue index 6a2a483a0..60636f7ad 100644 --- a/src/views/accounts/AccountPush/AccountPushExecutionList.vue +++ b/src/views/accounts/AccountPush/AccountPushExecutionList.vue @@ -50,11 +50,15 @@ export default { label: this.$t('DisplayName'), formatter: DetailFormatter, formatterArgs: { + drawer: true, getTitle: ({ row }) => row.snapshot.name, getRoute: ({ row }) => ({ name: 'AccountPushDetail', params: { id: row.automation } - }) + }), + getDrawerTitle({ row }) { + return row.snapshot.name + } }, id: ({ row }) => row.automation },