fix:(性能测试): 报告详情图表下面的avg min max支持按照数字排序
--bug=1034494 --user=刘瑞斌 【性能测试】性能用例-报告-测试详情中的Avg 排序错误 https://www.tapd.cn/55049933/s/1630917
This commit is contained in:
parent
3ef3cf258c
commit
2cb4871f65
|
@ -651,6 +651,11 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
avg = (sum / len).toFixed(2);
|
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});
|
tableData.push({label, min, max, avg, startTime, endTime});
|
||||||
}
|
}
|
||||||
this.tableData = tableData;
|
this.tableData = tableData;
|
||||||
|
|
Loading…
Reference in New Issue