From 89b1673d5daf8399826fecf38242d7357bfae65d Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 7 Mar 2023 18:04:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E7=AD=9B=E9=80=89=E5=B7=A6=E4=BE=A7=E6=A0=91=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024019 --user=赵勇 [测试跟踪]github#22412功能用例版本筛选后,模块统计数量错误 ( 右侧筛选后左侧模块树没有自动更新,需要手动刷新才更新) https://www.tapd.cn/55049933/s/1346323 Signed-off-by: fit2-zhao --- test-track/frontend/src/business/case/TestCase.vue | 3 ++- .../frontend/src/business/case/components/TestCaseList.vue | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test-track/frontend/src/business/case/TestCase.vue b/test-track/frontend/src/business/case/TestCase.vue index 032bdca258..b387d67ad7 100644 --- a/test-track/frontend/src/business/case/TestCase.vue +++ b/test-track/frontend/src/business/case/TestCase.vue @@ -504,7 +504,8 @@ export default { this.$refs.trashNodeTree.list(); this.hasRefreshDefault = false; }, - refreshTreeByCaseFilter() { + refreshTreeByCaseFilter(currentVersion) { + this.condition.versionId = currentVersion || null; if (this.publicEnable) { this.$refs.publicNodeTree.list(); } else if (this.trashEnable) { diff --git a/test-track/frontend/src/business/case/components/TestCaseList.vue b/test-track/frontend/src/business/case/components/TestCaseList.vue index f51f1bbb10..1fe2f75881 100644 --- a/test-track/frontend/src/business/case/components/TestCaseList.vue +++ b/test-track/frontend/src/business/case/components/TestCaseList.vue @@ -826,6 +826,7 @@ export default { }, changeVersion(currentVersion) { this.currentVersion = currentVersion || null; + this.$emit('search',currentVersion); }, toggleAdvanceSearch() { this.$refs.advanceSearch.toggle();