From 640b47805aa3158188b86e9ea70bbeff64c81e8f Mon Sep 17 00:00:00 2001 From: "nathan.liu" Date: Wed, 26 Oct 2022 00:41:17 +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=8DUI=20=E7=94=A8=E4=BE=8B=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=88=86=E6=9E=90-=E6=9C=AA=E6=89=A7=E8=A1=8C=E5=92=8C?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5tab=E9=A1=B5=E6=9C=AA=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=94=E7=82=B9=E5=87=BB=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E6=9C=AA=E6=98=BE=E7=A4=BA=E6=8A=A5=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018848 --user=刘瑶 【测试跟踪】报告-UI 用例统计分析-未执行和失败tab页未显示数据且点击执行结果未显示报告 https://www.tapd.cn/55049933/s/1277418 --- .../report/detail/component/UiResult.vue | 3 +++ .../detail/component/UiScenarioResult.vue | 25 +++++++++++-------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiResult.vue b/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiResult.vue index e6ed41d3dd..6225cf3cf7 100644 --- a/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiResult.vue +++ b/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiResult.vue @@ -81,6 +81,9 @@ export default { this.stepCharData = stepCharData; }, getDataByStatus(status) { + if(status === "STOPPED"){ + status = "ERROR"; + } let tmp = this.caseDataMap.get(status); if (!tmp) { tmp = this.caseDataMap.get('Prepare'); diff --git a/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiScenarioResult.vue b/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiScenarioResult.vue index 71faeedd91..b2f90512a7 100644 --- a/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiScenarioResult.vue +++ b/test-track/frontend/src/business/plan/view/comonents/report/detail/component/UiScenarioResult.vue @@ -156,17 +156,20 @@ export default { }, rowClick(row) { this.showResponse = false; - if (this.isTemplate) { - if (row.response) { - this.showResponse = true; - this.response = row.response; - } - } else { - if (row.reportId && row.lastResult !== "Running" && row.lastResult !== "Waiting") { - this.showResponse = true; - this.reportId = row.reportId; - } - } + this.$nextTick(()=>{ + if (this.isTemplate) { + if (row.response) { + this.showResponse = true; + this.response = row.response; + } + } else { + if (row.reportId && row.lastResult !== "Running" && row.lastResult !== "Waiting") { + this.showResponse = true; + this.reportId = row.reportId; + console.log(this.isTemplate); + } + } + }) } } }