From b38a484f3f3aecb968244bade555deca626f0844 Mon Sep 17 00:00:00 2001 From: zhangyong Date: Tue, 10 Jan 2023 14:41:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=E8=87=AA=E5=8A=A8=E5=8C=96):=20=E6=8A=A5?= =?UTF-8?q?=E5=91=8A-=E6=9F=A5=E7=9C=8B=E6=8A=A5=E5=91=8A=E8=AF=A6?= =?UTF-8?q?=E6=83=85-=E5=AF=BC=E5=87=BA-=E5=9C=BA=E6=99=AF=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E6=97=B6=E9=97=B4=E5=92=8C=E5=AF=BC=E5=87=BA=E5=89=8D?= =?UTF-8?q?=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1021713 --user=张勇 【测试跟踪】报告-查看报告详情-导出-场景执行时间和导出前不一致 https://www.tapd.cn/55049933/s/1325116 --- .../report/detail/ui/UiShareReportDetail.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test-track/frontend/src/business/plan/view/comonents/report/detail/ui/UiShareReportDetail.vue b/test-track/frontend/src/business/plan/view/comonents/report/detail/ui/UiShareReportDetail.vue index 6ba2c9cecb..710a75fd3b 100644 --- a/test-track/frontend/src/business/plan/view/comonents/report/detail/ui/UiShareReportDetail.vue +++ b/test-track/frontend/src/business/plan/view/comonents/report/detail/ui/UiShareReportDetail.vue @@ -398,7 +398,11 @@ export default { this.content.error = report.error; let successCount = (report.total - report.error - report.errorCode - report.unExecute); this.content.success = successCount; - this.totalTime = report.totalTime; + if (this.report.endTime > 0) { + this.totalTime = this.report.endTime - this.report.createTime; + } else { + this.totalTime = report.totalTime; + } } this.exportReportIsOk = true; setTimeout(this.startExport, 500) @@ -466,7 +470,11 @@ export default { this.content.error = report.error; let successCount = (report.total - report.error - report.errorCode - report.unExecute); this.content.success = successCount; - this.totalTime = report.totalTime; + if (this.report.endTime > 0) { + this.totalTime = this.report.endTime - this.report.createTime; + } else { + this.totalTime = report.totalTime; + } } // 增加失败重跑校验 if (this.report && this.report.reportType === 'SCENARIO_INTEGRATED' || this.report.reportType === 'API_INTEGRATED') {