fix(测试跟踪): jenkin执行测试计划,时间显示异常

--bug=1009179 --user=王孝刚 【测试跟踪】jenkin执行测试计划,时间显示异常
https://www.tapd.cn/55049933/s/1085743
This commit is contained in:
wxg0103 2021-12-22 21:26:12 +08:00 committed by BugKing
parent 18e74a5991
commit f964155778
1 changed files with 7 additions and 3 deletions

View File

@ -409,12 +409,16 @@ export default {
if (request.endTime && Number(request.endTime)) {
endTime = request.endTime;
}
requestTime = requestTime + (endTime - startTime);
let resTime;
if (startTime === 0 || endTime === 0) {
resTime = 0
} else {
resTime = endTime - startTime
}
requestTime = requestTime + resTime;
})
})
if (startTime < endTime) {
this.totalTime = requestTime
}
}
},
requestResult(requestResult) {