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(); },