Commit 58b1b229 authored by xxx's avatar xxx

1

parent 8a92e2f3
......@@ -300,7 +300,7 @@ export default {
httpGet(carRealTimeLocationQuery2,{name:equipmentName}).then((res) => {
if(res.data){
graphicLayer4.eachGraphic((graphic) => {
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(res.data.location.y, res.data.location.x, 1000), 5)
graphic.addDynamicPosition(Cesium.Cartesian3.fromDegrees(res.data.location.x, res.data.location.y, 1000), 5)
})
}else{
graphicLayer4.eachGraphic((graphic) => {
......
......@@ -126,8 +126,8 @@ export default {
}else{
httpGet(carRealTimeLocationQuery2,{name:res.data.content[0].equipmentName}).then((res1) => {
if(res1.data){
that.from.lat = res1.data.lat;
that.from.lon = res1.data.lon;
that.from.lat = res1.data.location.y;
that.from.lon = res1.data.location.x;
that.zuobiaoShow = true;
this.$notify({
title: '获取成功!',
......
......@@ -477,8 +477,8 @@ export default {
}else{
httpGet(carRealTimeLocationQuery2,{name:res.data.content[0].equipmentName}).then((res1) => {
if(res1.data){
let lat = res1.data.lat;
let lon = res1.data.lon;
let lat = res1.data.location.y;
let lon = res1.data.location.x;
httpPostForJson(failureDeclarationAdd,{fault:'路障申报',lat:lat,lon:lon,carcode:that.carnumber}).then((res2) => {
if(res2.code == 200){
this.$notify({
......
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