From 82bc6daa3c0ed5facd4634a4dbcb72aa46ab80e2 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Fri, 9 Sep 2022 05:21:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20=E4=BA=A4=E6=8E=A5=E7=82=B9?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=9C=B0=E5=9B=BE=E6=95=B0=E6=8D=AE=E4=B9=9F?= =?UTF-8?q?=E8=83=BD=E5=B1=95=E7=A4=BA=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AMap/src/AMapDesigner/index.vue | 1 + src/components/AMap/src/components/MapTaskModal.vue | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/AMap/src/AMapDesigner/index.vue b/src/components/AMap/src/AMapDesigner/index.vue index 82aaf25..1b6b0ec 100644 --- a/src/components/AMap/src/AMapDesigner/index.vue +++ b/src/components/AMap/src/AMapDesigner/index.vue @@ -744,6 +744,7 @@ /** 绘制地图导航路线 */ function drawMapNavigate(points: MapLogisticPoint[] = []) { + debugger points = points.filter(item => item.lng && item.lat); if (points.length > 0 && mapState.mapData.courierLng && mapState.mapData.courierLat) { const lngLats = points.map(item => new AMap.LngLat(item.lng, item.lat)); diff --git a/src/components/AMap/src/components/MapTaskModal.vue b/src/components/AMap/src/components/MapTaskModal.vue index 85bc156..098af85 100644 --- a/src/components/AMap/src/components/MapTaskModal.vue +++ b/src/components/AMap/src/components/MapTaskModal.vue @@ -123,7 +123,7 @@ options: state.options.hospitalList, disabled: !~~state.mapData.sendOrderTaskType && record.sort == 1 }), - editValueMap: value => state.options.hospitalList?.find(item => item.value == value)?.label || value + editValueMap: value => value ? state.options.hospitalList?.find(item => item.value == value)?.label || value : t('component.aMapDesigner.taskPositionTip') }, { title: '医检', @@ -134,7 +134,7 @@ style: { width:'100%' }, options: state.options.orgList }, - editValueMap: value => state.options.orgList?.find(item => item.value == value)?.label || value + editValueMap: value => value ? state.options.orgList?.find(item => item.value == value)?.label || value : t('component.aMapDesigner.taskPositionTip') }, ], taskPresetUpdateColumns: BasicColumn[] = [ @@ -158,7 +158,7 @@ options: state.options.hospitalList, disabled: ~~state.mapData.sendOrderTaskType && record.sort == 1 }), - editValueMap: value => state.options.hospitalList?.find(item => item.value == value)?.label || value + editValueMap: value => value ? state.options.hospitalList?.find(item => item.value == value)?.label || value : t('component.aMapDesigner.taskPositionTip') }, ]; const mapTask = cloneDeep(state.mapData?.mapTask || []);