|
|
|
@ -62,7 +62,7 @@ export default { |
|
|
|
this.baiduMap.setMapStyleV2({ |
|
|
|
this.baiduMap.setMapStyleV2({ |
|
|
|
styleJson: styleJson |
|
|
|
styleJson: styleJson |
|
|
|
}) |
|
|
|
}) |
|
|
|
alert('自定义样式') |
|
|
|
// alert('自定义样式') |
|
|
|
// this.view = new mapvgl.View({ |
|
|
|
// this.view = new mapvgl.View({ |
|
|
|
// map: this.baiduMap |
|
|
|
// map: this.baiduMap |
|
|
|
// }); |
|
|
|
// }); |
|
|
|
@ -255,7 +255,14 @@ export default { |
|
|
|
"EndTime": dateFormat(new Date(yesterDay1), 'yyyy-MM-dd'), |
|
|
|
"EndTime": dateFormat(new Date(yesterDay1), 'yyyy-MM-dd'), |
|
|
|
"MaxValue": 500 |
|
|
|
"MaxValue": 500 |
|
|
|
} |
|
|
|
} |
|
|
|
lunzApi.getLocationsByImei(this.key, param).then(res => { |
|
|
|
param = { |
|
|
|
|
|
|
|
"IMEI": deviceId, |
|
|
|
|
|
|
|
"StartDateTime":dateFormat(new Date(yesterDay2), 'yyyy-MM-dd'), |
|
|
|
|
|
|
|
"EndDateTime":dateFormat(new Date(yesterDay1), 'yyyy-MM-dd'), |
|
|
|
|
|
|
|
"MaxValues":500, |
|
|
|
|
|
|
|
"LocType":1 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
lunzApi.getLocationsByImei2(this.appKey, param).then(res => { |
|
|
|
if (res.Data == null) { |
|
|
|
if (res.Data == null) { |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
|
message: '未查询到今日行车轨迹', |
|
|
|
message: '未查询到今日行车轨迹', |
|
|
|
@ -264,7 +271,7 @@ export default { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
let point = []; |
|
|
|
let point = []; |
|
|
|
res.Data.map(item => { |
|
|
|
res.Data.Locations.map(item => { |
|
|
|
point.push(new BMapGL.Point(item.Lng, item.Lat)); |
|
|
|
point.push(new BMapGL.Point(item.Lng, item.Lat)); |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (this.polyline) { |
|
|
|
if (this.polyline) { |
|
|
|
|