From cce6a7f0de4a6061c883b64c1b68cd1a61bc5caa Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 19 Jul 2022 11:54:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=85=B3=E8=81=94=E6=B5=8B=E6=8E=A5=E5=8F=A3=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E9=80=89=E4=B8=AD=E6=A8=A1=E5=9D=97=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E9=A1=B9=E7=9B=AE=E6=97=A0=E6=95=B0=E6=8D=AE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1014771 --user=陈建星 【测试跟踪】缺陷管理关联测试用例,选中某一模块后,再切换其他项目,列表数据显示不正确 https://www.tapd.cn/55049933/s/1203819 --- .../api/automation/scenario/api/RelevanceApiList.vue | 5 ++++- .../api/automation/scenario/api/RelevanceCaseList.vue | 8 +++++++- .../api/automation/scenario/api/RelevanceScenarioList.vue | 4 ++++ .../track/case/components/TestCaseRelateApiList.vue | 5 ++++- .../track/case/components/TestCaseRelateScenarioList.vue | 5 ++++- .../business/components/track/issue/IssueEditDetail.vue | 2 -- .../components/track/issue/TestCaseRelateList.vue | 2 ++ .../plan/view/comonents/api/RelevanceScenarioList.vue | 5 ++++- .../plan/view/comonents/api/RelevanceUiScenarioList.vue | 5 ++++- 9 files changed, 33 insertions(+), 8 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue b/frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue index 1e929770ac..d9ce8db082 100644 --- a/frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue +++ b/frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue @@ -114,7 +114,10 @@ export default { this.initTable(); }, projectId() { - this.condition.versionId = null; + this.condition = { + components: TEST_PLAN_RELEVANCE_API_DEFINITION_CONFIGS + }; + this.selectNodeIds.length = 0; this.initTable(); }, currentVersion() { diff --git a/frontend/src/business/components/api/automation/scenario/api/RelevanceCaseList.vue b/frontend/src/business/components/api/automation/scenario/api/RelevanceCaseList.vue index 3277428a18..c1b5722834 100644 --- a/frontend/src/business/components/api/automation/scenario/api/RelevanceCaseList.vue +++ b/frontend/src/business/components/api/automation/scenario/api/RelevanceCaseList.vue @@ -116,7 +116,9 @@ import PriorityTableItem from "../../../../track/common/tableItems/planview/Prio import MsEnvironmentSelect from "../../../definition/components/case/MsEnvironmentSelect"; import {_filter, _sort, buildBatchParam} from "@/common/js/tableUtils"; import MsTableAdvSearchBar from "@/business/components/common/components/search/MsTableAdvSearchBar"; -import {TEST_PLAN_RELEVANCE_API_CASE_CONFIGS} from "@/business/components/common/components/search/search-components"; +import { + TEST_PLAN_RELEVANCE_API_CASE_CONFIGS +} from "@/business/components/common/components/search/search-components"; import {hasLicense} from "@/common/js/utils"; import MsSearch from "@/business/components/common/components/search/MsSearch"; @@ -212,6 +214,10 @@ export default { this.initTable(); }, projectId() { + this.condition = { + components: TEST_PLAN_RELEVANCE_API_CASE_CONFIGS + }; + this.selectNodeIds.length = 0; this.initTable(); this.checkVersionEnable(); }, 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 39052c9204..f3f73a0df1 100644 --- a/frontend/src/business/components/api/automation/scenario/api/RelevanceScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/api/RelevanceScenarioList.vue @@ -162,6 +162,10 @@ export default { this.search(); }, projectId() { + this.condition = { + components: API_SCENARIO_CONFIGS + }; + this.selectNodeIds.length = 0; this.search(); }, }, diff --git a/frontend/src/business/components/track/case/components/TestCaseRelateApiList.vue b/frontend/src/business/components/track/case/components/TestCaseRelateApiList.vue index 0fd6f1744a..0861f18bf1 100644 --- a/frontend/src/business/components/track/case/components/TestCaseRelateApiList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseRelateApiList.vue @@ -137,7 +137,10 @@ export default { this.initTable(); }, projectId() { - this.condition.versionId = null; + this.condition = { + components: TEST_CASE_RELEVANCE_API_CASE_CONFIGS + }; + this.selectNodeIds.length = 0; this.getVersionOptions(); this.initTable(); } diff --git a/frontend/src/business/components/track/case/components/TestCaseRelateScenarioList.vue b/frontend/src/business/components/track/case/components/TestCaseRelateScenarioList.vue index f4e6c125eb..f64d31b9a3 100644 --- a/frontend/src/business/components/track/case/components/TestCaseRelateScenarioList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseRelateScenarioList.vue @@ -139,7 +139,10 @@ export default { this.initTable(); }, projectId() { - this.condition.versionId = null; + this.condition = { + components: TEST_CASE_RELEVANCE_API_CASE_CONFIGS + }; + this.selectNodeIds.length = 0; this.getVersionOptions(); this.initTable(); } diff --git a/frontend/src/business/components/track/issue/IssueEditDetail.vue b/frontend/src/business/components/track/issue/IssueEditDetail.vue index 47067c654c..5c2f623ee1 100644 --- a/frontend/src/business/components/track/issue/IssueEditDetail.vue +++ b/frontend/src/business/components/track/issue/IssueEditDetail.vue @@ -172,8 +172,6 @@ - - diff --git a/frontend/src/business/components/track/issue/TestCaseRelateList.vue b/frontend/src/business/components/track/issue/TestCaseRelateList.vue index 3ea5375392..e68766fe4a 100644 --- a/frontend/src/business/components/track/issue/TestCaseRelateList.vue +++ b/frontend/src/business/components/track/issue/TestCaseRelateList.vue @@ -120,6 +120,8 @@ export default { this.initTableData(); }, projectId() { + this.condition = {}; + this.selectNodeIds = []; this.initTableData(); }, }, diff --git a/frontend/src/business/components/track/plan/view/comonents/api/RelevanceScenarioList.vue b/frontend/src/business/components/track/plan/view/comonents/api/RelevanceScenarioList.vue index 57b82d9827..c5709f4663 100644 --- a/frontend/src/business/components/track/plan/view/comonents/api/RelevanceScenarioList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/api/RelevanceScenarioList.vue @@ -176,7 +176,10 @@ export default { this.search(); }, projectId() { - this.condition.versionId = null; + this.condition = { + components: TEST_PLAN_RELEVANCE_API_SCENARIO_CONFIGS + }; + this.selectNodeIds.length = 0; this.search(); this.getVersionOptions(); }, diff --git a/frontend/src/business/components/track/plan/view/comonents/api/RelevanceUiScenarioList.vue b/frontend/src/business/components/track/plan/view/comonents/api/RelevanceUiScenarioList.vue index 976c815447..c9b8792b99 100644 --- a/frontend/src/business/components/track/plan/view/comonents/api/RelevanceUiScenarioList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/api/RelevanceUiScenarioList.vue @@ -155,7 +155,10 @@ export default { this.search(); }, projectId() { - this.condition.versionId = null; + this.condition = { + components: TEST_PLAN_RELEVANCE_API_SCENARIO_CONFIGS + }; + this.selectNodeIds.length = 0; this.search(); this.getVersionOptions(); },