Commit fdfac468 authored by xxx's avatar xxx

1

parent cad3355c
......@@ -186,9 +186,25 @@ export default {
}
})
//获取右侧播放时间列表
HttpReq.truckDispatching.apiMineAlarmHistoryTongJiQuery({number:this.query.number,bTime:this.query.bTime,eTime:this.query.eTime}).then((res1) => {
if(res1.code == 200){
this.playtimeTableData = res1.data;
HttpReq.truckDispatching.apiMineAlarmHistoryTongJiQuery({number:this.query.number,bTime:this.query.bTime,eTime:this.query.eTime}).then((res2) => {
if(res2.code == 200){
let arr1 = [];
let arr2 = [];
res2.data.forEach((item,index)=>{
if(index % 2 == 0){
arr1.push(item.time);
}else{
arr2.push(item.time);
}
})
let lastData1 = [];
arr1.forEach((item,index)=>{
let obj1 = {};
obj1.bTime = item;
obj1.eTime = arr2[index];
lastData1.push(obj1);
})
this.playtimeTableData = lastData1;
}
})
}else{
......@@ -300,7 +316,7 @@ export default {
},
//接收当前进度时间
progressTimeFn(time){
console.log(time);
//console.log(time);
this.trajectoryTimePoint = time;
},
// 地图构造完成回调
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment