From 0b8900debe898dc0f5056170fc9cf0d4a6e774bd Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 26 Oct 2022 11:27:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=A0=91=E6=95=B0=E9=87=8F=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018656 --user=陈建星 【测试跟踪】测试跟踪-功能用例左侧tree偶现统计不正确问题 https://www.tapd.cn/55049933/s/1277567 --- .../frontend/src/business/case/TestCase.vue | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/test-track/frontend/src/business/case/TestCase.vue b/test-track/frontend/src/business/case/TestCase.vue index 0d55208a56..0c24f226fe 100644 --- a/test-track/frontend/src/business/case/TestCase.vue +++ b/test-track/frontend/src/business/case/TestCase.vue @@ -26,14 +26,14 @@ @@ -57,7 +57,7 @@ @testCaseCopy="copyTestCase" @refresh="refreshTrashNode" @refreshAll="refreshAll" - @setCondition="setCondition" + @setCondition="setTrashCondition" @search="refreshTreeByCaseFilter" ref="testCaseTrashList"> @@ -75,7 +75,7 @@ @refresh="refresh" @refreshAll="refreshAll" @refreshPublic="refreshPublic" - @setCondition="setCondition" + @setCondition="setPublicCondition" @search="refreshTreeByCaseFilter" ref="testCasePublicList"> @@ -143,7 +143,7 @@ :read-only="testCaseReadOnly" :tree-nodes="treeNodes" :select-node="selectNode" - :select-condition="condition" + :select-condition="item.isPublic ? publicCondition : condition" :public-enable="item.isPublic" :case-type="type" @addTab="addTab" @@ -252,6 +252,8 @@ export default { publicEnable: false, showPublic: false, condition: {}, + trashCondition: {}, + publicCondition: {}, activeName: 'default', currentActiveName: '', tabs: [], @@ -755,14 +757,14 @@ export default { setTreeNodes(data) { this.treeNodes = data; }, + setPublicCondition(data) { + this.publicCondition = data; + }, + setTrashCondition(data) { + this.trashCondition = data; + }, setCondition(data) { - if (this.activeName === 'trash' && this.$refs.testCaseTrashList) { - this.condition = this.$refs.testCaseTrashList.condition; - } else if (this.activeName === 'default' && this.$refs.testCaseList) { - this.condition = this.$refs.testCaseList.condition; - } else { - this.condition = data; - } + this.condition = data; }, getProject() { getProjectApplicationConfig('CASE_CUSTOM_NUM')