From 2cb4871f659efdcb94d64c9c9a88957ea7446e13 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 16 Dec 2024 11:16:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E8=AF=A6=E6=83=85=E5=9B=BE=E8=A1=A8=E4=B8=8B?= =?UTF-8?q?=E9=9D=A2=E7=9A=84avg=20min=20max=E6=94=AF=E6=8C=81=E6=8C=89?= =?UTF-8?q?=E7=85=A7=E6=95=B0=E5=AD=97=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1034494 --user=刘瑞斌 【性能测试】性能用例-报告-测试详情中的Avg 排序错误 https://www.tapd.cn/55049933/s/1630917 --- .../frontend/src/business/report/components/TestDetails.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/performance-test/frontend/src/business/report/components/TestDetails.vue b/performance-test/frontend/src/business/report/components/TestDetails.vue index 498c64f238..dc6985a599 100644 --- a/performance-test/frontend/src/business/report/components/TestDetails.vue +++ b/performance-test/frontend/src/business/report/components/TestDetails.vue @@ -651,6 +651,11 @@ export default { } avg = (sum / len).toFixed(2); + // min max avg 转成数字支持排序 + min = Number.parseFloat(min); + max = Number.parseFloat(max); + avg = Number.parseFloat(avg); + tableData.push({label, min, max, avg, startTime, endTime}); } this.tableData = tableData;