From 7d63f22fcc1d03986fda53fb36995fd58667cc70 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 26 May 2022 21:38:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=87=E6=8D=A2=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E7=94=A8=E4=BE=8B=E9=A1=B5=E9=9D=A2=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=8D=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013576 --user=陈建星 【测试跟踪】选中第一个测试计划的 某个模块,回到列表页打开第二个测试计划,功能列表用例 数据没有全部展示 https://www.tapd.cn/55049933/s/1165851 --- .../comonents/functional/FunctionalTestCaseList.vue | 4 ++-- .../view/comonents/functional/TestPlanFunctional.vue | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue index 2a741646ee..8bda1b0eb7 100644 --- a/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue @@ -555,13 +555,13 @@ export default { } this.status = 'all'; } + this.condition.nodeIds = []; if (this.selectNodeIds && this.selectNodeIds.length > 0) { - // param.nodeIds = this.selectNodeIds; this.condition.nodeIds = this.selectNodeIds; } this.condition.projectId = getCurrentProjectID(); if (this.planId) { - getTestPlanTestCase(this.currentPage, this.pageSize, this.condition, (data) => { + this.result = getTestPlanTestCase(this.currentPage, this.pageSize, this.condition, (data) => { this.total = data.itemCount; this.tableData = data.listObject; for (let i = 0; i < this.tableData.length; i++) { diff --git a/frontend/src/business/components/track/plan/view/comonents/functional/TestPlanFunctional.vue b/frontend/src/business/components/track/plan/view/comonents/functional/TestPlanFunctional.vue index 2e69c86153..91981cc8ee 100644 --- a/frontend/src/business/components/track/plan/view/comonents/functional/TestPlanFunctional.vue +++ b/frontend/src/business/components/track/plan/view/comonents/functional/TestPlanFunctional.vue @@ -101,7 +101,6 @@ export default { 'planStatus' ], mounted() { - this.$store.commit('setTestPlanViewSelectNode', {}); this.initData(); }, computed: { @@ -110,6 +109,7 @@ export default { }, }, activated() { + this.clearSelectNode(); this.initData(); this.openTestCaseEdit(this.$route.path); }, @@ -118,16 +118,20 @@ export default { this.openTestCaseEdit(to.path); }, planId() { + this.clearSelectNode(); this.initData(); } }, methods: { refresh() { - this.selectNodeIds = []; - this.$store.commit('setTestPlanViewSelectNode', {}); + this.clearSelectNode(); this.$refs.testCaseRelevance.search(); this.getNodeTreeByPlanId(); }, + clearSelectNode() { + this.selectNodeIds = []; + this.$store.commit('setTestPlanViewSelectNode', {}); + }, initData() { this.getNodeTreeByPlanId(); },