From d861bb767efbc9a0efb0664583d7fe891e2d773f Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 22 Nov 2022 18:29:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E9=A6=96=E9=A1=B5TOP10=E5=88=97=E8=A1=A8=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E7=9A=84=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1020064 --user=宋昌昌 【测试跟踪】首页-过去7天测试计划失败用例TOP 10-点击功能用例无法跳转 https://www.tapd.cn/55049933/s/1301655 --- .../frontend/src/business/case/components/TestCaseList.vue | 3 +++ .../src/business/home/components/FailureTestCaseList.vue | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test-track/frontend/src/business/case/components/TestCaseList.vue b/test-track/frontend/src/business/case/components/TestCaseList.vue index 6b1c1630b5..0e4acebd79 100644 --- a/test-track/frontend/src/business/case/components/TestCaseList.vue +++ b/test-track/frontend/src/business/case/components/TestCaseList.vue @@ -664,6 +664,9 @@ export default { this.condition.selectThisWeedRelevanceData = false; this.condition.caseCoverage = null; this.condition.filters.reviewStatus = ["Prepare", "Pass", "UnPass"]; + if (this.selectDataRange && this.selectDataRange.indexOf("single") > -1) { + this.condition.ids = [this.selectDataRange.substring(7)]; + } switch (this.selectDataRange) { case 'thisWeekCount': this.condition.selectThisWeedData = true; diff --git a/test-track/frontend/src/business/home/components/FailureTestCaseList.vue b/test-track/frontend/src/business/home/components/FailureTestCaseList.vue index 3cd29880d0..35970d2638 100644 --- a/test-track/frontend/src/business/home/components/FailureTestCaseList.vue +++ b/test-track/frontend/src/business/home/components/FailureTestCaseList.vue @@ -115,6 +115,9 @@ export default { case "scenario": this.$emit('redirectPage', 'scenarioWithQuery', 'scenario', 'edit:' + param); break; + case "testCase": + this.$emit('redirectPage', 'testCase', 'case', 'single:' + param); + break; } } },