|
|
|
@ -747,8 +747,9 @@
@@ -747,8 +747,9 @@
|
|
|
|
|
/** 绘制地图导航路线 */ |
|
|
|
|
function drawMapNavigate(points: MapLogisticPoint[] = []) { |
|
|
|
|
if (isEmpty(points) && mapState.mapData.courierUserId && mapState.mapData.courierLng && mapState.mapData.courierLat) return notification.warn({ |
|
|
|
|
message: '检查到当前起点数据为空或标记点集合为空,请选择起点!', |
|
|
|
|
duration: 2 |
|
|
|
|
message: '检查到当前起点数据为空或标记点集合为空,请先选择起点跟发单!', |
|
|
|
|
duration: 2, |
|
|
|
|
placement: 'topLeft' |
|
|
|
|
}); |
|
|
|
|
points = points.filter(item => item.lng && item.lat); |
|
|
|
|
const lngLats = points.map(item => new AMap.LngLat(item.lng, item.lat)); |
|
|
|
|