|
|
@@ -180,7 +180,6 @@ |
|
|
|
me.addBound2(); |
|
|
|
me.map.setFitView(this.polygonList) |
|
|
|
me.getDriver() |
|
|
|
me.loading = false |
|
|
|
}); |
|
|
|
}, |
|
|
|
computed: { |
|
|
@@ -419,10 +418,14 @@ |
|
|
|
let me = this |
|
|
|
setTimeout(function () { |
|
|
|
let marker = me.markerList.find(item => item.childData.id == child.id) |
|
|
|
me.questionId=child.id |
|
|
|
if (marker) { |
|
|
|
me.questionId=child.id |
|
|
|
me.InfoWindow.open(me.map, marker.getPosition()); |
|
|
|
} |
|
|
|
let findDriver = me.driverDataList.find(item => item.id == child.driverId) |
|
|
|
if (findDriver&&findDriver.pointList&&findDriver.pointList.length>0) { |
|
|
|
me.InfoWindow.open(me.map, new AMap.LngLat(findDriver.pointList[0].x, findDriver.pointList[0].y)); |
|
|
|
} |
|
|
|
me.checkDriver(child.driverId) |
|
|
|
}, 500) |
|
|
|
}, |
|
|
@@ -443,6 +446,7 @@ |
|
|
|
this.driverList.push(polygons) |
|
|
|
} |
|
|
|
}) |
|
|
|
this.loading = false |
|
|
|
}).catch(e => { |
|
|
|
}); |
|
|
|
}, |