From 952c86c1178f9e5332016392b270365f24afc3b9 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 24 Aug 2022 18:52:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E5=AF=BC=E5=85=A5=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E9=A1=B9=E7=9B=AE=E6=95=B0=E6=8D=AE=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016234 --user=王孝刚 【接口测试】场景编辑-导入场景-切换项目 / 切换工作空间 -列表数据未对应更新 https://www.tapd.cn/55049933/s/1233227 --- .../api/automation/scenario/api/RelevanceScenarioList.vue | 5 ++++- .../api/automation/scenario/api/ScenarioRelevance.vue | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/api/RelevanceScenarioList.vue b/frontend/src/business/components/api/automation/scenario/api/RelevanceScenarioList.vue index f3f73a0df1..6c03877972 100644 --- a/frontend/src/business/components/api/automation/scenario/api/RelevanceScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/api/RelevanceScenarioList.vue @@ -174,7 +174,7 @@ export default { this.getVersionOptions(); }, methods: { - search() { + search(projectId) { this.selectRows = new Set(); this.condition.moduleIds = this.selectNodeIds; if (this.trashEnable) { @@ -182,6 +182,9 @@ export default { this.condition.moduleIds = []; } + if (projectId) { + this.projectId = projectId; + } if (this.projectId != null && typeof projectId === 'string') { this.condition.projectId = this.projectId; } else if (this.projectId != null) { diff --git a/frontend/src/business/components/api/automation/scenario/api/ScenarioRelevance.vue b/frontend/src/business/components/api/automation/scenario/api/ScenarioRelevance.vue index 621c93b170..d12cd5d553 100644 --- a/frontend/src/business/components/api/automation/scenario/api/ScenarioRelevance.vue +++ b/frontend/src/business/components/api/automation/scenario/api/ScenarioRelevance.vue @@ -3,6 +3,7 @@ :is-across-space="isAcrossSpace" :dialog-title="$t('api_test.automation.scenario_import')" @setProject="setProject" + @refreshNode="refresh" ref="baseRelevance">