From 67c8521d5cf90b3d452577c93d48a063748b8bef Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Tue, 12 Mar 2024 10:58:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=8A=A8=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E6=89=A7=E8=A1=8C=E5=88=97=E8=A1=A8=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=BB=93=E6=9E=9C=E4=B8=8D=E5=87=86=E7=A1=AE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/TagSearch/index.vue | 12 +++++------- .../AccountBackupExecutionList.vue | 6 ++++++ .../AccountChangeSecretExecutionList.vue | 6 ++++++ .../AccountGather/TaskDetail/TaskExecutionList.vue | 6 ++++++ .../AccountPush/AccountPushExecutionList.vue | 6 ++++++ 5 files changed, 29 insertions(+), 7 deletions(-) diff --git a/src/components/Table/TagSearch/index.vue b/src/components/Table/TagSearch/index.vue index 7171048f2..570ec9648 100644 --- a/src/components/Table/TagSearch/index.vue +++ b/src/components/Table/TagSearch/index.vue @@ -57,7 +57,7 @@ export default { }, getUrlQuery: { type: Boolean, - default: () => true + default: () => false }, default: { type: Object, @@ -213,12 +213,10 @@ export default { delete routeFilter.search } const asFilterTags = _.cloneDeep(this.filterTags) - setTimeout(() => { - this.filterTags = { - ...asFilterTags, - ...routeFilter - } - }, 100) + this.filterTags = { + ...asFilterTags, + ...routeFilter + } }, getValueLabel(key, value) { for (const field of this.options) { diff --git a/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionList.vue b/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionList.vue index 59cb4c3e4..b091768d2 100644 --- a/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionList.vue +++ b/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionList.vue @@ -99,6 +99,12 @@ export default { hasBulkUpdate: false } } + }, + mounted() { + const plan_id = this.$route.query.plan_id + if (plan_id !== undefined) { + this.tableConfig.url = `${this.tableConfig.url}?plan_id=${plan_id}` + } } } diff --git a/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretExecution/AccountChangeSecretExecutionList.vue b/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretExecution/AccountChangeSecretExecutionList.vue index 751ff554f..fe175c04f 100644 --- a/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretExecution/AccountChangeSecretExecutionList.vue +++ b/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretExecution/AccountChangeSecretExecutionList.vue @@ -119,6 +119,12 @@ export default { hasBulkUpdate: false } } + }, + mounted() { + const automation_id = this.$route.query.automation_id + if (automation_id !== undefined) { + this.tableConfig.url = `${this.tableConfig.url}?automation_id=${automation_id}` + } } } diff --git a/src/views/accounts/AccountGather/TaskDetail/TaskExecutionList.vue b/src/views/accounts/AccountGather/TaskDetail/TaskExecutionList.vue index 9ed4015af..f5451c8f5 100644 --- a/src/views/accounts/AccountGather/TaskDetail/TaskExecutionList.vue +++ b/src/views/accounts/AccountGather/TaskDetail/TaskExecutionList.vue @@ -101,6 +101,12 @@ export default { hasBulkUpdate: false } } + }, + mounted() { + const automation_id = this.$route.query.automation_id + if (automation_id !== undefined) { + this.tableConfig.url = `${this.tableConfig.url}?automation_id=${automation_id}` + } } } diff --git a/src/views/accounts/AccountPush/AccountPushExecutionList.vue b/src/views/accounts/AccountPush/AccountPushExecutionList.vue index 77e193190..7e5f3a18a 100644 --- a/src/views/accounts/AccountPush/AccountPushExecutionList.vue +++ b/src/views/accounts/AccountPush/AccountPushExecutionList.vue @@ -119,6 +119,12 @@ export default { hasBulkUpdate: false } } + }, + mounted() { + const automation_id = this.$route.query.automation_id + if (automation_id !== undefined) { + this.tableConfig.url = `${this.tableConfig.url}?automation_id=${automation_id}` + } } }