From 858cfbec27cb394bb28d0917b7d0cbc6456d332a Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Fri, 7 Mar 2025 16:07:29 +0800 Subject: [PATCH] Fixed: Fix the issue where the execution list name remains unchanged after the execution task name changes --- .../AccountBackup/Executions/AccountBackupExecutionList.vue | 4 ++-- .../Executions/AccountChangeSecretExecutionList.vue | 6 +++--- src/views/accounts/AccountDiscover/TaskExecutionList.vue | 4 ++-- src/views/accounts/AccountPush/AccountPushExecutionList.vue | 6 +++--- src/views/accounts/RiskDetect/AccountCheckExecutionList.vue | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/accounts/AccountBackup/Executions/AccountBackupExecutionList.vue b/src/views/accounts/AccountBackup/Executions/AccountBackupExecutionList.vue index a37039d0a..14a416d5e 100644 --- a/src/views/accounts/AccountBackup/Executions/AccountBackupExecutionList.vue +++ b/src/views/accounts/AccountBackup/Executions/AccountBackupExecutionList.vue @@ -61,10 +61,10 @@ export default { formatter: DetailFormatter, formatterArgs: { drawer: true, - getTitle: ({ row }) => row.snapshot.name, + getTitle: ({ row }) => row.automation.name, getRoute: ({ row }) => ({ name: 'AccountBackupDetail', - params: { id: row.automation } + params: { id: row.automation.id } }) }, id: ({ row }) => row.automation diff --git a/src/views/accounts/AccountChangeSecret/Executions/AccountChangeSecretExecutionList.vue b/src/views/accounts/AccountChangeSecret/Executions/AccountChangeSecretExecutionList.vue index 2e5a3f3ca..f5fbd761b 100644 --- a/src/views/accounts/AccountChangeSecret/Executions/AccountChangeSecretExecutionList.vue +++ b/src/views/accounts/AccountChangeSecret/Executions/AccountChangeSecretExecutionList.vue @@ -55,12 +55,12 @@ export default { formatterArgs: { drawer: true, getDrawerTitle({ row }) { - return row.snapshot.name + return row.automation.name }, - getTitle: ({ row }) => row.snapshot.name, + getTitle: ({ row }) => row.automation.name, getRoute: ({ row }) => ({ name: 'AccountChangeSecretDetail', - params: { id: row.automation } + params: { id: row.automation.id } }) }, id: ({ row }) => row.automation diff --git a/src/views/accounts/AccountDiscover/TaskExecutionList.vue b/src/views/accounts/AccountDiscover/TaskExecutionList.vue index 43e18ddf8..126816835 100644 --- a/src/views/accounts/AccountDiscover/TaskExecutionList.vue +++ b/src/views/accounts/AccountDiscover/TaskExecutionList.vue @@ -67,10 +67,10 @@ export default { label: this.$t('Automation'), formatter: DetailFormatter, formatterArgs: { - getTitle: ({ row }) => row.snapshot.name, + getTitle: ({ row }) => row.automation.name, getRoute: ({ row }) => ({ name: 'AccountDiscoverTaskDetail', - params: { id: row.automation } + params: { id: row.automation.id } }), drawer: true }, diff --git a/src/views/accounts/AccountPush/AccountPushExecutionList.vue b/src/views/accounts/AccountPush/AccountPushExecutionList.vue index b3c745ae5..ff5df18d8 100644 --- a/src/views/accounts/AccountPush/AccountPushExecutionList.vue +++ b/src/views/accounts/AccountPush/AccountPushExecutionList.vue @@ -60,13 +60,13 @@ export default { formatter: DetailFormatter, formatterArgs: { drawer: true, - getTitle: ({ row }) => row.snapshot.name, + getTitle: ({ row }) => row.automation.name, getRoute: ({ row }) => ({ name: 'AccountPushDetail', - params: { id: row.automation } + params: { id: row.automation.id } }), getDrawerTitle({ row }) { - return row.snapshot.name + return row.automation.name } }, id: ({ row }) => row.automation diff --git a/src/views/accounts/RiskDetect/AccountCheckExecutionList.vue b/src/views/accounts/RiskDetect/AccountCheckExecutionList.vue index b45fd47e7..e2cc7d34b 100644 --- a/src/views/accounts/RiskDetect/AccountCheckExecutionList.vue +++ b/src/views/accounts/RiskDetect/AccountCheckExecutionList.vue @@ -61,10 +61,10 @@ export default { formatter: DetailFormatter, formatterArgs: { drawer: true, - getTitle: ({ row }) => row.snapshot.name, + getTitle: ({ row }) => row.automation.name, getRoute: ({ row }) => ({ name: 'AccountCheckDetail', - params: { id: row.automation } + params: { id: row.automation.id } }) }, id: ({ row }) => row.automation