|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
showProblemDetail(child) { |
|
|
showProblemDetail(child) { |
|
|
console.log(child) |
|
|
|
|
|
this.questionId=0 |
|
|
this.questionId=0 |
|
|
this.closeInfoWin() |
|
|
this.closeInfoWin() |
|
|
this.map.setFitView(this.polygonList) |
|
|
this.map.setFitView(this.polygonList) |
|
|
|
|
|
|
|
|
let findDriver = me.driverDataList.find(item => item.id == child.driverId) |
|
|
let findDriver = me.driverDataList.find(item => item.id == child.driverId) |
|
|
if (findDriver&&findDriver.pointList&&findDriver.pointList.length>0) { |
|
|
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.InfoWindow.open(me.map, new AMap.LngLat(findDriver.pointList[0].x, findDriver.pointList[0].y)); |
|
|
|
|
|
}else{ |
|
|
|
|
|
me.InfoWindow.open(me.map, new AMap.LngLat(118.750078, 31.983115)); |
|
|
} |
|
|
} |
|
|
me.checkDriver(child.driverId) |
|
|
me.checkDriver(child.driverId) |
|
|
}, 500) |
|
|
}, 500) |