|
|
|
@ -121,7 +121,6 @@
@@ -121,7 +121,6 @@
|
|
|
|
|
import { MapLogisticPoint } from '/@/api/platform/common/entity/mapLogisticPoint'; |
|
|
|
|
import { isArray, isString } from '/@/utils/is'; |
|
|
|
|
import { useI18n } from '/@/hooks/web/useI18n'; |
|
|
|
|
import { watchDebounced } from '@vueuse/core'; |
|
|
|
|
|
|
|
|
|
/** 类型规范统一声明定义区域 */ |
|
|
|
|
interface MapState { |
|
|
|
@ -497,18 +496,18 @@
@@ -497,18 +496,18 @@
|
|
|
|
|
if (!mapProps.sidebarControl) mapState.toggleOperatePanelClass.siderWidth = 0; |
|
|
|
|
if (!mapProps.toolbarControl) mapState.toggleOperatePanelClass.toolbarHeight = 0; |
|
|
|
|
}); |
|
|
|
|
watchDebounced(toRefs(mapProps).options, (newValue) => { |
|
|
|
|
watch(toRefs(mapProps).options, (newValue) => { |
|
|
|
|
if (mapState.first) { |
|
|
|
|
setMapDataJson(newValue); |
|
|
|
|
handleSetCourierUserList(); |
|
|
|
|
} |
|
|
|
|
}, { debounce: 500, deep: true }); |
|
|
|
|
}, { deep: true }); |
|
|
|
|
watch(toRefs(mapProps).isEdit, () => { |
|
|
|
|
if (mapState.first) { |
|
|
|
|
handleSetCourierUserList(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
watchDebounced([() => mapState.mapData.sendOrderId, () => mapState.mapData.sendOrderTaskType], |
|
|
|
|
watch([() => mapState.mapData.sendOrderId, () => mapState.mapData.sendOrderTaskType], |
|
|
|
|
([sendOrderIdValue,sendOrderTaskTypeValue], [sendOrderIdOldValue, sendOrderTaskTypeOldValue]) => { |
|
|
|
|
if (!sendOrderIdValue || !sendOrderTaskTypeValue) return false; |
|
|
|
|
if (isEmpty(mapState.mapData.mapTask)) { |
|
|
|
@ -547,7 +546,7 @@
@@ -547,7 +546,7 @@
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
handleMapPointGenerate(); |
|
|
|
|
}, { debounce: 200 }); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
/** 处理切换操作面板 */ |
|
|
|
|
function toggleOperatePanel() { |
|
|
|
|