fix(测试跟踪): jenkin执行测试计划,时间显示异常
--bug=1009179 --user=王孝刚 【测试跟踪】jenkin执行测试计划,时间显示异常 https://www.tapd.cn/55049933/s/1085743
This commit is contained in:
parent
18e74a5991
commit
f964155778
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue