From 25c60bb918b5be2580f48a9cf2db631ee4edea6a Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 20 Jul 2022 11:52:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=88=97=E8=A1=A8=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=93=8D=E4=BD=9C=E6=A8=A1=E5=9D=97=E6=95=B0=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E4=B8=8D=E6=98=AF=E7=AD=9B=E9=80=89=E5=90=8E=E7=9A=84?= =?UTF-8?q?=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015069 --user=陈建星 【测试跟踪】功能用例-搜索用例后操作用例保存或者移动模块后-右侧还是搜索结果但是左侧模块树显示所有的用例数 https://www.tapd.cn/55049933/s/1205224 --- frontend/src/business/components/track/case/TestCase.vue | 3 ++- .../business/components/track/module/TestCaseNodeTree.vue | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/track/case/TestCase.vue b/frontend/src/business/components/track/case/TestCase.vue index 3f1ea6c67d..7e01ab0603 100644 --- a/frontend/src/business/components/track/case/TestCase.vue +++ b/frontend/src/business/components/track/case/TestCase.vue @@ -7,6 +7,7 @@ :total='total' :show-operator="true" :public-total="publicTotal" + :case-condition="condition" @refreshTable="refresh" @setTreeNodes="setTreeNodes" @exportTestCase="exportTestCase" @@ -671,7 +672,7 @@ export default { if (this.publicEnable) { this.$refs.publicNodeTree.list(this.condition); } else if (!this.trashEnable) { - this.$refs.nodeTree.list(this.condition); + this.$refs.nodeTree.list(); } }, setTable(data) { diff --git a/frontend/src/business/components/track/module/TestCaseNodeTree.vue b/frontend/src/business/components/track/module/TestCaseNodeTree.vue index 8b54022e90..0da2dde429 100644 --- a/frontend/src/business/components/track/module/TestCaseNodeTree.vue +++ b/frontend/src/business/components/track/module/TestCaseNodeTree.vue @@ -126,6 +126,7 @@ export default { showOperator: Boolean, total: Number, publicTotal: Number, + caseCondition: Object }, watch: { treeNodes() { @@ -181,9 +182,9 @@ export default { this.$emit('enablePublic', this.condition.publicEnable); this.$emit('toPublic', 'public'); }, - list(caseCondition) { + list() { if (this.projectId) { - this.result = getTestCaseNodesByCaseFilter(this.projectId, caseCondition, data => { + this.result = getTestCaseNodesByCaseFilter(this.projectId, this.caseCondition, data => { this.treeNodes = data; this.treeNodes.forEach(node => { node.name = node.name === '未规划用例' ? this.$t('api_test.unplanned_case') : node.name