From 33f061e33f91e5173abf5386010604f3def1aca5 Mon Sep 17 00:00:00 2001 From: wenyann Date: Tue, 25 May 2021 11:08:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=AE=9A=E4=B9=89=E8=A1=A8?= =?UTF-8?q?=E5=A4=B4=E4=BF=AE=E6=94=B9=E5=AE=8C=E4=B8=8D=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E8=A1=A8=E5=A4=B4=E4=BE=9D=E7=84=B6=E5=8F=91=E7=94=9F=E6=94=B9?= =?UTF-8?q?=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/api/automation/scenario/ApiScenarioList.vue | 5 +++-- .../api/definition/components/list/ApiCaseSimpleList.vue | 5 +++-- .../components/track/case/components/TestCaseList.vue | 5 +++-- frontend/src/business/components/track/common/NodeTree.vue | 2 +- .../components/track/plan/components/TestPlanList.vue | 5 +++-- .../track/plan/view/comonents/api/TestPlanApiCaseList.vue | 5 +++-- .../plan/view/comonents/api/TestPlanApiScenarioList.vue | 5 +++-- .../track/plan/view/comonents/load/TestPlanLoadCaseList.vue | 5 +++-- .../track/review/components/TestCaseReviewList.vue | 5 +++-- .../track/review/view/components/TestReviewTestCaseList.vue | 5 +++-- 10 files changed, 28 insertions(+), 19 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue index e6e2e60f96..60644d610d 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue @@ -208,7 +208,7 @@ import { _filter, _handleSelect, _handleSelectAll, - _sort, + _sort, deepClone, getLabel, getSelectDataCounts, setUnSelectIds, @@ -418,7 +418,8 @@ export default { }, methods: { customHeader() { - this.$refs.headerCustom.open(this.tableLabel); + const list = deepClone(this.tableLabel); + this.$refs.headerCustom.open(list); }, selectByParam() { this.changeSelectDataRangeAll(); diff --git a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue index b938f5f17d..5ca1efd8c3 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue @@ -164,7 +164,7 @@ import {parseEnvironment} from "@/business/components/api/test/model/Environment import MsTableHeaderSelectPopover from "@/business/components/common/components/table/MsTableHeaderSelectPopover"; import MsTableAdvSearchBar from "@/business/components/common/components/search/MsTableAdvSearchBar"; import {API_CASE_CONFIGS} from "@/business/components/common/components/search/search-components"; -import {_filter, _handleSelect, _handleSelectAll, _sort, getLabel} from "@/common/js/tableUtils"; +import {_filter, _handleSelect, _handleSelectAll, _sort, deepClone, getLabel} from "@/common/js/tableUtils"; import {API_CASE_LIST} from "@/common/js/constants"; import {Api_Case_List} from "@/business/components/common/model/JsonData"; import HeaderCustom from "@/business/components/common/head/HeaderCustom"; @@ -314,7 +314,8 @@ export default { }, methods: { customHeader() { - this.$refs.headerCustom.open(this.tableLabel) + const list = deepClone(this.tableLabel); + this.$refs.headerCustom.open(list); }, initTable() { if (this.$refs.caseTable) { diff --git a/frontend/src/business/components/track/case/components/TestCaseList.vue b/frontend/src/business/components/track/case/components/TestCaseList.vue index 5dc2b4cf22..d7d64bd5bc 100644 --- a/frontend/src/business/components/track/case/components/TestCaseList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseList.vue @@ -177,7 +177,7 @@ import { _handleSelect, _handleSelectAll, _sort, - buildBatchParam, + buildBatchParam, deepClone, getLabel, getSelectDataCounts, initCondition, @@ -360,7 +360,8 @@ export default { } }, customHeader() { - this.$refs.headerCustom.open(this.tableLabel); + const list = deepClone(this.tableLabel); + this.$refs.headerCustom.open(list); }, getSelectDataRange() { let dataRange = this.$route.params.dataSelectRange; diff --git a/frontend/src/business/components/track/common/NodeTree.vue b/frontend/src/business/components/track/common/NodeTree.vue index 7a3f793898..f837669a78 100644 --- a/frontend/src/business/components/track/common/NodeTree.vue +++ b/frontend/src/business/components/track/common/NodeTree.vue @@ -31,7 +31,7 @@ - (0/{{ data.caseNum }}) + ({{ data.caseNum }})