hy-dispatch-ui-v3 0.2.61 → 0.2.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tailwind.css +70 -5
- package/es/api/device.mjs +19 -0
- package/es/api/index.mjs +2 -1
- package/es/api/sypct.mjs +19 -0
- package/es/api/task.mjs +19 -0
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +6 -3
- package/es/bussiness/hyAddDepartmentType/index.mjs +1 -0
- package/es/bussiness/hyMapAearchPlace/index.mjs +7 -0
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +650 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +366 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +101 -0
- package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
- package/es/bussiness/index.mjs +1 -0
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +3 -0
- package/es/components/hyAudioPlayer/index.mjs +1 -0
- package/es/components/hyAudioPlayer/js/index.mjs +5 -1
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +23 -3
- package/es/components/hyBatchUploadDialog/index.mjs +1 -0
- package/es/components/hyButton/button.vue.mjs +3 -2
- package/es/components/hyButton/index.mjs +1 -0
- package/es/components/hyButton/style/button.scss +10 -3
- package/es/components/hyConfigProvider/configProvider.vue.mjs +6 -1
- package/es/components/hyConfigProvider/index.mjs +1 -0
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +6 -2
- package/es/components/hyConfirmDialog/confirmMethod.mjs +5 -3
- package/es/components/hyConfirmDialog/index.mjs +1 -0
- package/es/components/hyCutter/cutter.vue.mjs +5 -2
- package/es/components/hyCutter/index.mjs +1 -0
- package/es/components/hyDatePicker/datePicker.vue.mjs +2 -0
- package/es/components/hyDatePicker/index.mjs +1 -0
- package/es/components/hyDialog/dialog.vue.mjs +98 -14
- package/es/components/hyDialog/index.mjs +1 -0
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +16 -3
- package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +4 -1
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +6 -1
- package/es/components/hyForm/form.vue.mjs +3 -0
- package/es/components/hyForm/index.mjs +1 -0
- package/es/components/hyForm/js/index.mjs +3 -1
- package/es/components/hyForm/js/useAppForm.mjs +4 -2
- package/es/components/hyIcon/icon.vue.mjs +2 -1
- package/es/components/hyIcon/index.mjs +1 -0
- package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
- package/es/components/hyIconBox/index.mjs +1 -0
- package/es/components/hyInput/index.mjs +1 -0
- package/es/components/hyInput/input.vue.mjs +3 -1
- package/es/components/hyInput/inputSearch.vue.mjs +2 -1
- package/es/components/hyLoading/index.mjs +41 -0
- package/es/components/hyMap/index.mjs +1 -0
- package/es/components/hyMap/js/index.mjs +82 -0
- package/es/components/hyMap/map.vue.mjs +11 -3
- package/es/components/hyMenu/index.mjs +1 -0
- package/es/components/hyMenu/menu.vue.mjs +4 -0
- package/es/components/hyNoPermissions/index.mjs +1 -0
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +4 -0
- package/es/components/hyNoPermissionsMap/index.mjs +1 -0
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +4 -0
- package/es/components/hyOrgCascader/index.mjs +1 -0
- package/es/components/hyOrgCascader/js/index.mjs +2 -0
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +2 -1
- package/es/components/hyRadioGroup/index.mjs +1 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +2 -2
- package/es/components/hySearch/cpns/searchItem.vue.mjs +20 -2
- package/es/components/hySearch/index.mjs +1 -0
- package/es/components/hySearch/js/index.mjs +4 -2
- package/es/components/hySearch/js/useAppSearch.mjs +4 -2
- package/es/components/hySearch/search.vue.mjs +3 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +6 -3
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +3 -0
- package/es/components/hyTable/cpns/headerItem.vue.mjs +3 -0
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +7 -2
- package/es/components/hyTable/index.mjs +1 -0
- package/es/components/hyTable/js/index.mjs +10 -10
- package/es/components/hyTable/js/search.mjs +2 -0
- package/es/components/hyTable/js/useAppTable.mjs +5 -2
- package/es/components/hyTable/table.vue.mjs +11 -1
- package/es/components/hyTableActionButton/index.mjs +1 -0
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +5 -2
- package/es/components/hyTableForm/batchTableForm.vue.mjs +41 -61
- package/es/components/hyTableForm/index.mjs +1 -0
- package/es/components/hyTableForm/js/index.mjs +13 -27
- package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -0
- package/es/components/hyTableForm/tableForm.vue.mjs +12 -4
- package/es/components/hyTimePicker/index.mjs +1 -0
- package/es/components/hyTimePicker/timePicker.vue.mjs +3 -1
- package/es/components/hyTooltip/index.mjs +1 -0
- package/es/components/hyTooltip/tooltip.vue.mjs +4 -2
- package/es/components/hyTree/index.mjs +1 -0
- package/es/components/hyTree/js/index.mjs +15 -2
- package/es/components/hyTree/tree.vue.mjs +9 -4
- package/es/components/hyUserAvatar/index.mjs +1 -0
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +5 -1
- package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -0
- package/es/components/hyVideoPlayer/index.mjs +1 -0
- package/es/components/hyVideoPlayer/js/index.mjs +7 -2
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -0
- package/es/components/index.mjs +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useGlobalConfig.mjs +6 -1
- package/es/hooks/useLocale.mjs +4 -2
- package/es/hooks/useMapConfig.mjs +18 -0
- package/es/hooks/useResizeHandler.mjs +1 -0
- package/es/hooks/useResizeObserver.mjs +1 -1
- package/es/index.mjs +8 -0
- package/es/locale/en.mjs +1 -2
- package/es/locale/zh_CN.mjs +1 -2
- package/es/make-installer.mjs +1 -0
- package/es/static/hy-svg-icons/hy-icon-ops-list-editorialdownsizing.js +14 -0
- package/es/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
- package/es/style/element/hy-element.scss +10 -1
- package/es/utils/file.mjs +1 -0
- package/es/utils/form.mjs +6 -1
- package/es/utils/handler.mjs +2 -0
- package/es/utils/index.mjs +2 -0
- package/es/utils/input.mjs +1 -0
- package/es/utils/is.mjs +1 -0
- package/es/utils/map/hook/bigMap.mjs +3 -2
- package/es/utils/map/hook/gaode.mjs +2 -2
- package/es/utils/map/hook/leafletjs.mjs +7 -1
- package/es/utils/map/index.mjs +12 -0
- package/es/utils/map/js/webgis.mjs +5 -2
- package/es/utils/sharedContent.mjs +12 -0
- package/es/version.mjs +1 -1
- package/lib/api/device.js +21 -0
- package/lib/api/index.js +2 -1
- package/lib/api/sypct.js +21 -0
- package/lib/api/task.js +21 -0
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +15 -12
- package/lib/bussiness/hyAddDepartmentType/index.js +1 -0
- package/lib/bussiness/hyMapAearchPlace/index.js +12 -0
- package/lib/bussiness/hyMapAearchPlace/js/index.js +652 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +370 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +105 -0
- package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
- package/lib/bussiness/index.js +2 -0
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +3 -0
- package/lib/components/hyAudioPlayer/index.js +1 -0
- package/lib/components/hyAudioPlayer/js/index.js +5 -1
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +23 -3
- package/lib/components/hyBatchUploadDialog/index.js +1 -0
- package/lib/components/hyButton/button.vue.js +2 -1
- package/lib/components/hyButton/index.js +1 -0
- package/lib/components/hyButton/style/button.scss +10 -3
- package/lib/components/hyConfigProvider/configProvider.vue.js +5 -0
- package/lib/components/hyConfigProvider/index.js +1 -0
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +6 -2
- package/lib/components/hyConfirmDialog/confirmMethod.js +5 -3
- package/lib/components/hyConfirmDialog/index.js +1 -0
- package/lib/components/hyCutter/cutter.vue.js +3 -0
- package/lib/components/hyCutter/index.js +1 -0
- package/lib/components/hyDatePicker/datePicker.vue.js +2 -0
- package/lib/components/hyDatePicker/index.js +1 -0
- package/lib/components/hyDialog/dialog.vue.js +96 -12
- package/lib/components/hyDialog/index.js +1 -0
- package/lib/components/hyForm/cpns/arrayItem.vue.js +16 -3
- package/lib/components/hyForm/cpns/extraItem.vue.js +2 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -0
- package/lib/components/hyForm/cpns/locationSelect.vue.js +6 -1
- package/lib/components/hyForm/form.vue.js +3 -0
- package/lib/components/hyForm/index.js +1 -0
- package/lib/components/hyForm/js/index.js +3 -1
- package/lib/components/hyForm/js/useAppForm.js +3 -1
- package/lib/components/hyIcon/icon.vue.js +1 -0
- package/lib/components/hyIcon/index.js +1 -0
- package/lib/components/hyIconBox/iconBox.vue.js +1 -0
- package/lib/components/hyIconBox/index.js +1 -0
- package/lib/components/hyInput/index.js +1 -0
- package/lib/components/hyInput/input.vue.js +2 -0
- package/lib/components/hyInput/inputSearch.vue.js +1 -0
- package/lib/components/hyLoading/index.js +47 -0
- package/lib/components/hyMap/index.js +1 -0
- package/lib/components/hyMap/js/index.js +82 -0
- package/lib/components/hyMap/map.vue.js +11 -3
- package/lib/components/hyMenu/index.js +1 -0
- package/lib/components/hyMenu/menu.vue.js +4 -0
- package/lib/components/hyNoPermissions/index.js +1 -0
- package/lib/components/hyNoPermissions/noPermissions.vue.js +4 -0
- package/lib/components/hyNoPermissionsMap/index.js +1 -0
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +4 -0
- package/lib/components/hyOrgCascader/index.js +1 -0
- package/lib/components/hyOrgCascader/js/index.js +2 -0
- package/lib/components/hyOrgCascader/orgCascader.vue.js +2 -1
- package/lib/components/hyRadioGroup/index.js +1 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +1 -1
- package/lib/components/hySearch/cpns/searchItem.vue.js +18 -0
- package/lib/components/hySearch/index.js +1 -0
- package/lib/components/hySearch/js/index.js +3 -1
- package/lib/components/hySearch/js/useAppSearch.js +4 -2
- package/lib/components/hySearch/search.vue.js +3 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +4 -1
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +3 -0
- package/lib/components/hyTable/cpns/headerItem.vue.js +3 -0
- package/lib/components/hyTable/cpns/virtualTable.vue.js +6 -1
- package/lib/components/hyTable/index.js +1 -0
- package/lib/components/hyTable/js/index.js +9 -9
- package/lib/components/hyTable/js/search.js +2 -0
- package/lib/components/hyTable/js/useAppTable.js +4 -1
- package/lib/components/hyTable/table.vue.js +11 -1
- package/lib/components/hyTableActionButton/index.js +1 -0
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -1
- package/lib/components/hyTableForm/batchTableForm.vue.js +42 -62
- package/lib/components/hyTableForm/index.js +1 -0
- package/lib/components/hyTableForm/js/index.js +12 -27
- package/lib/components/hyTableForm/js/useAppTableForm.js +2 -0
- package/lib/components/hyTableForm/tableForm.vue.js +19 -11
- package/lib/components/hyTimePicker/index.js +1 -0
- package/lib/components/hyTimePicker/timePicker.vue.js +2 -0
- package/lib/components/hyTooltip/index.js +1 -0
- package/lib/components/hyTooltip/tooltip.vue.js +2 -0
- package/lib/components/hyTree/index.js +1 -0
- package/lib/components/hyTree/js/index.js +14 -1
- package/lib/components/hyTree/tree.vue.js +9 -4
- package/lib/components/hyUserAvatar/index.js +1 -0
- package/lib/components/hyUserAvatar/userAvatar.vue.js +5 -1
- package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -0
- package/lib/components/hyVideoPlayer/index.js +1 -0
- package/lib/components/hyVideoPlayer/js/index.js +7 -2
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -0
- package/lib/components/index.js +56 -53
- package/lib/hooks/index.js +3 -0
- package/lib/hooks/useGlobalConfig.js +5 -0
- package/lib/hooks/useLocale.js +3 -1
- package/lib/hooks/useMapConfig.js +21 -0
- package/lib/hooks/useResizeHandler.js +1 -0
- package/lib/index.js +73 -59
- package/lib/locale/en.js +1 -2
- package/lib/locale/zh_CN.js +1 -2
- package/lib/make-installer.js +1 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-list-editorialdownsizing.js +14 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
- package/lib/style/element/hy-element.scss +10 -1
- package/lib/utils/file.js +1 -0
- package/lib/utils/form.js +5 -0
- package/lib/utils/handler.js +2 -0
- package/lib/utils/index.js +3 -0
- package/lib/utils/input.js +1 -0
- package/lib/utils/is.js +1 -0
- package/lib/utils/map/hook/bigMap.js +3 -2
- package/lib/utils/map/hook/gaode.js +1 -1
- package/lib/utils/map/hook/leafletjs.js +7 -1
- package/lib/utils/map/index.js +12 -0
- package/lib/utils/map/js/webgis.js +5 -1
- package/lib/utils/sharedContent.js +14 -0
- package/lib/version.js +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,650 @@
|
|
|
1
|
+
import { ref, computed, nextTick } from 'vue';
|
|
2
|
+
import { ElMessage } from 'element-plus';
|
|
3
|
+
import { findAllApi, pageApi } from '../../../api/index.mjs';
|
|
4
|
+
import { childTaskFindAllApi } from '../../../api/task.mjs';
|
|
5
|
+
import { detailApi } from '../../../api/device.mjs';
|
|
6
|
+
import { unbindCphmTaskApi } from '../../../api/sypct.mjs';
|
|
7
|
+
import '../../../utils/index.mjs';
|
|
8
|
+
import { WGS84ToGCJ02, WGS84ToBD09, GCJ02ToWGS84, GCJ02ToBD09, BD09ToGCJ02, BD09ToWGS84, getCoordinate } from '../../../utils/map/js/webgis.mjs';
|
|
9
|
+
import { setPoiServer } from '../../../utils/map/index.mjs';
|
|
10
|
+
import { isPermission } from '../../../utils/is.mjs';
|
|
11
|
+
import { onlyNumber } from '../../../utils/input.mjs';
|
|
12
|
+
|
|
13
|
+
const CoordinateDict = {
|
|
14
|
+
0: "WGS84",
|
|
15
|
+
1: "GCJ02",
|
|
16
|
+
2: "BD09"
|
|
17
|
+
};
|
|
18
|
+
const CoordinateMap = {
|
|
19
|
+
WGS84: 0,
|
|
20
|
+
GCJ02: 1,
|
|
21
|
+
BD09: 2
|
|
22
|
+
};
|
|
23
|
+
const useMapAearchPlace = (hy) => {
|
|
24
|
+
const { props, emits, t } = hy;
|
|
25
|
+
const poiServer = setPoiServer(props.mapConfig);
|
|
26
|
+
const nextPageParams = ref(null);
|
|
27
|
+
const lnglat = ref({
|
|
28
|
+
lng: null,
|
|
29
|
+
lngType: null,
|
|
30
|
+
lat: null,
|
|
31
|
+
latType: null
|
|
32
|
+
});
|
|
33
|
+
const lnglatList = ref([
|
|
34
|
+
{
|
|
35
|
+
titleName: "\u586B\u5199\u7ECF\u7EAC\u5EA6",
|
|
36
|
+
lng: null,
|
|
37
|
+
lat: null
|
|
38
|
+
}
|
|
39
|
+
]);
|
|
40
|
+
const customCoordinate = ref(null);
|
|
41
|
+
const searchResultList = ref([]);
|
|
42
|
+
const searchAddressType = ref(1);
|
|
43
|
+
const placeholder = ref("\u8F93\u5165\u5730\u5740\u8FDB\u884C\u641C\u7D22");
|
|
44
|
+
const searchAddress = ref(null);
|
|
45
|
+
const valid = ref(true);
|
|
46
|
+
const size = ref(10);
|
|
47
|
+
const page = ref(0);
|
|
48
|
+
const noMore = ref(false);
|
|
49
|
+
const loading = ref(false);
|
|
50
|
+
const colorObject = ref({});
|
|
51
|
+
const timeOut = ref(null);
|
|
52
|
+
const showItem = ref(null);
|
|
53
|
+
const isFocus = ref(false);
|
|
54
|
+
let queryMarkerPoint = null;
|
|
55
|
+
const disabled = computed(() => {
|
|
56
|
+
return hy.loading.value || hy.noMore.value;
|
|
57
|
+
});
|
|
58
|
+
const commonOptions = computed(() => {
|
|
59
|
+
return {
|
|
60
|
+
bmCorrect: 1
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
const mapCoordinate = computed(() => {
|
|
64
|
+
return parseInt(hy.commonOptions.value.bmCorrect);
|
|
65
|
+
});
|
|
66
|
+
const mapCoordinateName = computed(() => {
|
|
67
|
+
return CoordinateDict[hy.mapCoordinate.value];
|
|
68
|
+
});
|
|
69
|
+
const searchAddressTypeList = computed(() => {
|
|
70
|
+
const selectIdSet = props.selectIdList.reduce((value, id) => {
|
|
71
|
+
value.add(id);
|
|
72
|
+
return value;
|
|
73
|
+
}, /* @__PURE__ */ new Set());
|
|
74
|
+
return [
|
|
75
|
+
{ label: "\u5730\u7406\u5730\u5740", value: 1 },
|
|
76
|
+
// 水源点: 2
|
|
77
|
+
// 防火单位: 3
|
|
78
|
+
{
|
|
79
|
+
label: "\u90E8\u95E8\u540D\u79F0",
|
|
80
|
+
value: 4,
|
|
81
|
+
permission: "operator_departmentManage"
|
|
82
|
+
},
|
|
83
|
+
{ label: "\u67E5\u7ECF\u7EAC\u5EA6", value: 5 },
|
|
84
|
+
{
|
|
85
|
+
label: "\u67E5\u5DE1\u67E5\u70B9",
|
|
86
|
+
value: 6,
|
|
87
|
+
permission: "mission_patrolInspectionTask"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
label: "\u4EFB\u52A1\u540D\u79F0",
|
|
91
|
+
value: 7,
|
|
92
|
+
permission: "mission_commonTasks"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: "\u67E5\u8BE2\u8F66\u8F86",
|
|
96
|
+
value: 8,
|
|
97
|
+
permission: "commands_dutyStatus"
|
|
98
|
+
}
|
|
99
|
+
].filter((item) => {
|
|
100
|
+
if (!item.permission && !isPermission(item.permission)) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
return selectIdSet.has(item.value);
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
async function lnglatCheckFn(content) {
|
|
107
|
+
onlyNumber(hy.lnglat.value, content);
|
|
108
|
+
await nextTick();
|
|
109
|
+
if (hy.lnglat.value[`${content}`]) {
|
|
110
|
+
let reg = null;
|
|
111
|
+
if (content === "lng") {
|
|
112
|
+
reg = /^(-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,15})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,15}|180)$/;
|
|
113
|
+
} else {
|
|
114
|
+
reg = /^(-|\+)?([0-8]?\d{1}\.\d{0,15}|90\.0{0,15}|[0-8]?\d{1}|90)$/;
|
|
115
|
+
}
|
|
116
|
+
if (reg.test(hy.lnglat.value[`${content}`])) {
|
|
117
|
+
hy.lnglat.value[`${content}Type`] = true;
|
|
118
|
+
} else {
|
|
119
|
+
hy.lnglat.value[`${content}Type`] = false;
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
hy.lnglat.value[`${content}Type`] = false;
|
|
123
|
+
}
|
|
124
|
+
const lng = hy.lnglat.value.lng;
|
|
125
|
+
const lat = hy.lnglat.value.lat;
|
|
126
|
+
let lnglatList2 = [];
|
|
127
|
+
if (hy.lnglat.value.latType && hy.lnglat.value.lngType) {
|
|
128
|
+
let wgs84 = {};
|
|
129
|
+
let gcj02 = {};
|
|
130
|
+
let bd09 = {};
|
|
131
|
+
if (hy.mapCoordinate.value === CoordinateMap.WGS84) {
|
|
132
|
+
wgs84 = {
|
|
133
|
+
titleName: "(WGS84-\u56FD\u9645\u901A\u7528\u5750\u6807\u7CFB)",
|
|
134
|
+
lng,
|
|
135
|
+
lat,
|
|
136
|
+
coordinate: CoordinateMap.WGS84
|
|
137
|
+
};
|
|
138
|
+
const gcj20Res = WGS84ToGCJ02(lat, lng);
|
|
139
|
+
gcj02 = {
|
|
140
|
+
titleName: "\uFF08GCJ02-\u706B\u661F\u5750\u6807\u7CFB\uFF09",
|
|
141
|
+
lng: gcj20Res.lng,
|
|
142
|
+
lat: gcj20Res.lat,
|
|
143
|
+
coordinate: CoordinateMap.GCJ02
|
|
144
|
+
};
|
|
145
|
+
const bd09Res = WGS84ToBD09(lat, lng);
|
|
146
|
+
bd09 = {
|
|
147
|
+
titleName: "\uFF08BD09-\u706B\u661F\u5750\u6807\u7CFB\uFF09",
|
|
148
|
+
lng: bd09Res.lng,
|
|
149
|
+
lat: bd09Res.lat,
|
|
150
|
+
coordinate: CoordinateMap.BD09
|
|
151
|
+
};
|
|
152
|
+
} else if (hy.mapCoordinate.value === CoordinateMap.GCJ02) {
|
|
153
|
+
gcj02 = {
|
|
154
|
+
titleName: "\uFF08GCJ02-\u706B\u661F\u5750\u6807\u7CFB\uFF09",
|
|
155
|
+
lng,
|
|
156
|
+
lat,
|
|
157
|
+
coordinate: CoordinateMap.GCJ02
|
|
158
|
+
};
|
|
159
|
+
const wgs84Res = GCJ02ToWGS84(lat, lng);
|
|
160
|
+
wgs84 = {
|
|
161
|
+
titleName: "(WGS84-\u56FD\u9645\u901A\u7528\u5750\u6807\u7CFB)",
|
|
162
|
+
lng: wgs84Res.lng,
|
|
163
|
+
lat: wgs84Res.lat,
|
|
164
|
+
coordinate: CoordinateMap.WGS84
|
|
165
|
+
};
|
|
166
|
+
const bd09Res = GCJ02ToBD09(lat, lng);
|
|
167
|
+
bd09 = {
|
|
168
|
+
titleName: "\uFF08BD09-\u706B\u661F\u5750\u6807\u7CFB\uFF09",
|
|
169
|
+
lng: bd09Res.lng,
|
|
170
|
+
lat: bd09Res.lat,
|
|
171
|
+
coordinate: CoordinateMap.BD09
|
|
172
|
+
};
|
|
173
|
+
} else if (hy.mapCoordinate.value === CoordinateMap.BD09) {
|
|
174
|
+
bd09 = {
|
|
175
|
+
titleName: "\uFF08BD09-\u706B\u661F\u5750\u6807\u7CFB\uFF09",
|
|
176
|
+
lng,
|
|
177
|
+
lat,
|
|
178
|
+
coordinate: CoordinateMap.BD09
|
|
179
|
+
};
|
|
180
|
+
const gcj20Res = BD09ToGCJ02(lat, lng);
|
|
181
|
+
gcj02 = {
|
|
182
|
+
titleName: "\uFF08GCJ02-\u706B\u661F\u5750\u6807\u7CFB\uFF09",
|
|
183
|
+
lng: gcj20Res.lng,
|
|
184
|
+
lat: gcj20Res.lat,
|
|
185
|
+
coordinate: CoordinateMap.GCJ02
|
|
186
|
+
};
|
|
187
|
+
const wgs84Res = BD09ToWGS84(lat, lng);
|
|
188
|
+
wgs84 = {
|
|
189
|
+
titleName: "(WGS84-\u56FD\u9645\u901A\u7528\u5750\u6807\u7CFB)",
|
|
190
|
+
lng: wgs84Res.lng,
|
|
191
|
+
lat: wgs84Res.lat,
|
|
192
|
+
coordinate: CoordinateMap.WGS84
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
lnglatList2 = [wgs84, gcj02, bd09];
|
|
196
|
+
} else {
|
|
197
|
+
lnglatList2 = [
|
|
198
|
+
{
|
|
199
|
+
titleName: "\u586B\u5199\u7ECF\u7EAC\u5EA6",
|
|
200
|
+
lng,
|
|
201
|
+
lat
|
|
202
|
+
}
|
|
203
|
+
];
|
|
204
|
+
}
|
|
205
|
+
await nextTick();
|
|
206
|
+
hy.lnglatList.value = [...lnglatList2];
|
|
207
|
+
}
|
|
208
|
+
function onFocus() {
|
|
209
|
+
hy.isFocus.value = true;
|
|
210
|
+
}
|
|
211
|
+
function onBlur() {
|
|
212
|
+
hy.isFocus.value = false;
|
|
213
|
+
}
|
|
214
|
+
function lnglatClick(item) {
|
|
215
|
+
if (hy.lnglat.value.lngType && hy.lnglat.value.latType) {
|
|
216
|
+
let lng = item.lng;
|
|
217
|
+
let lat = item.lat;
|
|
218
|
+
const data = getCoordinate(
|
|
219
|
+
{ lat, lng },
|
|
220
|
+
{
|
|
221
|
+
importCoordinate: item.coordinate,
|
|
222
|
+
leaveCoordinate: hy.mapCoordinate.value
|
|
223
|
+
}
|
|
224
|
+
);
|
|
225
|
+
lng = data.lng;
|
|
226
|
+
lat = data.lat;
|
|
227
|
+
hy.mapJumpLocationFn({
|
|
228
|
+
lng,
|
|
229
|
+
lat
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
function queryMarkerPointDelete() {
|
|
234
|
+
if (hy.timeOut.value) {
|
|
235
|
+
clearTimeout(hy.timeOut.value);
|
|
236
|
+
hy.timeOut.value = null;
|
|
237
|
+
}
|
|
238
|
+
if (hy.queryMarkerPoint) {
|
|
239
|
+
hy.queryMarkerPoint.remove(props.map);
|
|
240
|
+
hy.queryMarkerPoint = null;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function setQueryMarkerPoint(row) {
|
|
244
|
+
hy.queryMarkerPointDelete();
|
|
245
|
+
if (!props.map) return;
|
|
246
|
+
const { lat, lng } = row;
|
|
247
|
+
hy.queryMarkerPoint = props.hyMap.Marker({
|
|
248
|
+
icon: props.hyMap.DivIcon({
|
|
249
|
+
html: `<div class="hy-map-aearch-place-twinkle-marker w-[40px] h-[60px]" style="position: absolute; transform: translate(-50%, -54px)">
|
|
250
|
+
<svg class= "svg-icon" style="width: inherit;height: inherit;">
|
|
251
|
+
<use xlink:href = "#hy-icon-map-marker-trajectory-personnel"></use>
|
|
252
|
+
</svg>
|
|
253
|
+
</div>`,
|
|
254
|
+
iconSize: [0, 0],
|
|
255
|
+
iconAnchor: [0, 0]
|
|
256
|
+
}),
|
|
257
|
+
position: { lng, lat },
|
|
258
|
+
zIndexOffset: 1
|
|
259
|
+
});
|
|
260
|
+
hy.queryMarkerPoint.addTo(props.map);
|
|
261
|
+
hy.timeOut.value = setTimeout(() => {
|
|
262
|
+
hy.queryMarkerPointDelete();
|
|
263
|
+
}, 4e3);
|
|
264
|
+
}
|
|
265
|
+
function mapJumpLocationFn(row) {
|
|
266
|
+
if (hy.searchAddressType.value === 8) {
|
|
267
|
+
if (row.deviceId) {
|
|
268
|
+
detailApi({ deviceId: row.deviceId }).then((res) => {
|
|
269
|
+
if (res.code === 200) {
|
|
270
|
+
const data = res.data;
|
|
271
|
+
if (hy.showItem.value) {
|
|
272
|
+
props.setMarkerToMap();
|
|
273
|
+
}
|
|
274
|
+
nextTick(() => {
|
|
275
|
+
if (data.lat && data.lng) {
|
|
276
|
+
props.map.panTo([row.lng, row.lat]);
|
|
277
|
+
props.map.setZoom(18);
|
|
278
|
+
}
|
|
279
|
+
if (props.onSelectMarker) {
|
|
280
|
+
props.onSelectMarker(data);
|
|
281
|
+
}
|
|
282
|
+
if (props.setMarkerToMap) {
|
|
283
|
+
hy.showItem.value = data;
|
|
284
|
+
props.setMarkerToMap(1, data);
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
} else {
|
|
290
|
+
ElMessage.warning("\u5F53\u524D\u7528\u6237\u672A\u7ED1\u5B9A\u8BBE\u5907");
|
|
291
|
+
}
|
|
292
|
+
} else {
|
|
293
|
+
const { lat, lng } = row;
|
|
294
|
+
if (!lat || !lng) {
|
|
295
|
+
let msg = "\u6CA1\u6709\u5B9A\u4F4D\u4FE1\u606F";
|
|
296
|
+
if (hy.searchAddressType.value === 4) {
|
|
297
|
+
msg = "\u8BE5\u90E8\u95E8\u6CA1\u6709\u5B9A\u4F4D\u4FE1\u606F";
|
|
298
|
+
} else if (hy.searchAddressType.value === 6) {
|
|
299
|
+
msg = "\u8BE5\u5DE1\u67E5\u70B9\u6CA1\u6709\u5B9A\u4F4D\u4FE1\u606F";
|
|
300
|
+
} else if (hy.searchAddressType.value === 7) {
|
|
301
|
+
msg = "\u8BE5\u4EFB\u52A1\u6CA1\u6709\u5B9A\u4F4D\u4FE1\u606F";
|
|
302
|
+
}
|
|
303
|
+
ElMessage.warning(msg);
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
props.map.setView(row, 18);
|
|
307
|
+
hy.setQueryMarkerPoint(row);
|
|
308
|
+
hy.resetFn(1);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
function unbindVehicleFn(row) {
|
|
312
|
+
hy.$deleteConfirmationBox(
|
|
313
|
+
{
|
|
314
|
+
deleteTitleImg: "tips",
|
|
315
|
+
deleteTitle: "\u63D0\u793A",
|
|
316
|
+
deleteContent: `
|
|
317
|
+
<div>
|
|
318
|
+
<p>\u786E\u8BA4\u5C06\u8F66\u8F86\u4E0E\u4EBA\u5458\u89E3\u7ED1\uFF1F</p>
|
|
319
|
+
</div>
|
|
320
|
+
`,
|
|
321
|
+
submitText: "\u786E\u8BA4\u89E3\u7ED1",
|
|
322
|
+
closeText: "\u53D6\u6D88",
|
|
323
|
+
closeShow: true
|
|
324
|
+
},
|
|
325
|
+
() => {
|
|
326
|
+
unbindCphmTaskApi({
|
|
327
|
+
zyId: row.zyId,
|
|
328
|
+
userId: row.userId
|
|
329
|
+
}).then((res) => {
|
|
330
|
+
if (res.code === 200) {
|
|
331
|
+
ElMessage.success("\u89E3\u7ED1\u6210\u529F");
|
|
332
|
+
hy.getVehicleList();
|
|
333
|
+
} else {
|
|
334
|
+
ElMessage.error(res.msg);
|
|
335
|
+
}
|
|
336
|
+
}).catch((err) => {
|
|
337
|
+
console.error(err);
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
);
|
|
341
|
+
}
|
|
342
|
+
function throttle(fn, delay) {
|
|
343
|
+
return (params) => {
|
|
344
|
+
if (!hy.valid.value) {
|
|
345
|
+
return false;
|
|
346
|
+
}
|
|
347
|
+
hy.valid.value = false;
|
|
348
|
+
setTimeout(() => {
|
|
349
|
+
fn(params);
|
|
350
|
+
hy.valid.value = true;
|
|
351
|
+
}, delay);
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
async function load() {
|
|
355
|
+
hy.loading.value = true;
|
|
356
|
+
hy.page.value++;
|
|
357
|
+
await nextTick();
|
|
358
|
+
hy.getData();
|
|
359
|
+
}
|
|
360
|
+
function searchAddressTypeFn() {
|
|
361
|
+
hy.searchAddress.value = null;
|
|
362
|
+
hy.lnglat.value = {
|
|
363
|
+
lng: null,
|
|
364
|
+
lngType: null,
|
|
365
|
+
lat: null,
|
|
366
|
+
latType: null
|
|
367
|
+
};
|
|
368
|
+
hy.lnglatList.value = [
|
|
369
|
+
{
|
|
370
|
+
titleName: "\u586B\u5199\u7ECF\u7EAC\u5EA6",
|
|
371
|
+
lng: null,
|
|
372
|
+
lat: null
|
|
373
|
+
}
|
|
374
|
+
];
|
|
375
|
+
hy.placeholderFn();
|
|
376
|
+
hy.resetFn();
|
|
377
|
+
}
|
|
378
|
+
function resetFn(type) {
|
|
379
|
+
hy.searchResultList.value = [];
|
|
380
|
+
hy.page.value = 1;
|
|
381
|
+
hy.noMore.value = false;
|
|
382
|
+
hy.loading.value = false;
|
|
383
|
+
nextTick(() => {
|
|
384
|
+
if (type !== 1) {
|
|
385
|
+
hy.getData();
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
function getData() {
|
|
390
|
+
if (hy.searchAddress.value && hy.searchAddress.value.length) {
|
|
391
|
+
if (hy.searchAddressType.value === 1) {
|
|
392
|
+
hy.addressRequestFn();
|
|
393
|
+
} else if (hy.searchAddressType.value === 4) {
|
|
394
|
+
hy.organizationPageFn();
|
|
395
|
+
} else if (hy.searchAddressType.value === 6) {
|
|
396
|
+
hy.patrolPointFn();
|
|
397
|
+
} else if (hy.searchAddressType.value === 7) {
|
|
398
|
+
hy.getTaskList();
|
|
399
|
+
} else if (hy.searchAddressType.value === 8) {
|
|
400
|
+
hy.getVehicleList();
|
|
401
|
+
}
|
|
402
|
+
} else {
|
|
403
|
+
hy.resetFn(1);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
function addressRequestFn() {
|
|
407
|
+
if (hy.page.value === 1) {
|
|
408
|
+
hy.nextPageParams.value = null;
|
|
409
|
+
}
|
|
410
|
+
poiServer.placeSearch({
|
|
411
|
+
pageSize: hy.size.value,
|
|
412
|
+
// 单页显示结果条数
|
|
413
|
+
pageIndex: hy.page.value,
|
|
414
|
+
query: hy.searchAddress.value,
|
|
415
|
+
convertIngAndLat: false,
|
|
416
|
+
// 谷歌地图下一页传入
|
|
417
|
+
nextPageParams: hy.nextPageParams.value
|
|
418
|
+
}).then(({ results, nextPageParams: nextPageParams2 }) => {
|
|
419
|
+
hy.nextPageParams.value = nextPageParams2;
|
|
420
|
+
if (results) {
|
|
421
|
+
const dataList = results;
|
|
422
|
+
const list = [];
|
|
423
|
+
for (let i = 0; i < dataList.length; i++) {
|
|
424
|
+
const item = dataList[i];
|
|
425
|
+
list.push({
|
|
426
|
+
lng: hy.keepDecimal(item.lng),
|
|
427
|
+
lat: hy.keepDecimal(item.lat),
|
|
428
|
+
id: hy.createUniqueId(1),
|
|
429
|
+
address: item.address || item.name,
|
|
430
|
+
title: hy.titleFn(item.name)
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
nextTick(() => {
|
|
434
|
+
hy.loading.value = false;
|
|
435
|
+
hy.searchResultList.value.push(...list);
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
}).catch(() => {
|
|
439
|
+
hy.loading.value = false;
|
|
440
|
+
hy.noMore.value = true;
|
|
441
|
+
ElMessage.error("\u672A\u641C\u7D22\u5230\u5185\u5BB9");
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
function keepDecimal(num, precision = 8) {
|
|
445
|
+
return Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision);
|
|
446
|
+
}
|
|
447
|
+
async function getVehicleList() {
|
|
448
|
+
const res = await findAllApi("sypct/task/cphmResUse", {
|
|
449
|
+
// page: hy.page.value - 1,
|
|
450
|
+
// size: 10,
|
|
451
|
+
query: hy.searchAddress.value
|
|
452
|
+
});
|
|
453
|
+
if (res.code === 200) {
|
|
454
|
+
const dataList = res.data || [];
|
|
455
|
+
const list = [];
|
|
456
|
+
hy.searchResultList.value = [];
|
|
457
|
+
for (let i = 0; i < dataList.length; i++) {
|
|
458
|
+
const item = dataList[i];
|
|
459
|
+
list.push({
|
|
460
|
+
id: `${i}-${item.zyId}`,
|
|
461
|
+
...item,
|
|
462
|
+
cphm: hy.titleFn(item.cphm || ""),
|
|
463
|
+
name: hy.titleFn(item.name || "")
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
nextTick(() => {
|
|
467
|
+
hy.loading.value = false;
|
|
468
|
+
hy.searchResultList.value.push(...list);
|
|
469
|
+
if (dataList.length === 0 && hy.searchResultList.value.length === 0) {
|
|
470
|
+
ElMessage.error("\u672A\u641C\u7D22\u5230\u5185\u5BB9");
|
|
471
|
+
}
|
|
472
|
+
hy.noMore.value = true;
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
async function getTaskList() {
|
|
477
|
+
const res = await childTaskFindAllApi({
|
|
478
|
+
taskStatus: "jxz",
|
|
479
|
+
query: hy.searchAddress.value
|
|
480
|
+
});
|
|
481
|
+
if (res && res.code === 200) {
|
|
482
|
+
const dataList = res.data || [];
|
|
483
|
+
const list = [];
|
|
484
|
+
for (let i = 0; i < dataList.length; i++) {
|
|
485
|
+
const item = dataList[i];
|
|
486
|
+
if (item.lat && item.lng) {
|
|
487
|
+
list.push({
|
|
488
|
+
id: `${item.taskId}_${item.orgId}`,
|
|
489
|
+
lat: item.lat,
|
|
490
|
+
lng: item.lng,
|
|
491
|
+
orgName: item.orgName,
|
|
492
|
+
title: hy.titleFn(item.rwmc)
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
nextTick(() => {
|
|
497
|
+
hy.loading.value = false;
|
|
498
|
+
hy.searchResultList.value.push(...list);
|
|
499
|
+
if (dataList.length === 0 && hy.searchResultList.value.length === 0) {
|
|
500
|
+
ElMessage.error("\u672A\u641C\u7D22\u5230\u5185\u5BB9");
|
|
501
|
+
}
|
|
502
|
+
hy.noMore.value = true;
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
function organizationPageFn() {
|
|
507
|
+
pageApi("organization", {
|
|
508
|
+
page: hy.page.value - 1,
|
|
509
|
+
size: 10,
|
|
510
|
+
query: hy.searchAddress.value
|
|
511
|
+
}).then((res) => {
|
|
512
|
+
if (res.code === 200) {
|
|
513
|
+
const dataList = res.data.content || [];
|
|
514
|
+
const list = [];
|
|
515
|
+
for (let i = 0; i < dataList.length; i++) {
|
|
516
|
+
const item = dataList[i];
|
|
517
|
+
list.push({
|
|
518
|
+
id: item.id,
|
|
519
|
+
address: item.address || item.companyName,
|
|
520
|
+
...item,
|
|
521
|
+
title: hy.titleFn(item.companyName)
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
nextTick(() => {
|
|
525
|
+
hy.loading.value = false;
|
|
526
|
+
hy.searchResultList.value.push(...list);
|
|
527
|
+
if (dataList.length === 0 && hy.searchResultList.value.length === 0) {
|
|
528
|
+
ElMessage.error("\u672A\u641C\u7D22\u5230\u5185\u5BB9");
|
|
529
|
+
}
|
|
530
|
+
if (hy.page.value === res.data.totalPages) {
|
|
531
|
+
hy.noMore.value = true;
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
function patrolPointFn() {
|
|
538
|
+
pageApi("scrollCheck/scp", {
|
|
539
|
+
page: hy.page.value - 1,
|
|
540
|
+
size: 10,
|
|
541
|
+
query: hy.searchAddress.value
|
|
542
|
+
}).then((res) => {
|
|
543
|
+
if (res.code === 200) {
|
|
544
|
+
const dataList = res.data.content || [];
|
|
545
|
+
const list = [];
|
|
546
|
+
for (let i = 0; i < dataList.length; i++) {
|
|
547
|
+
const item = dataList[i];
|
|
548
|
+
if (item.lng && item.lat) {
|
|
549
|
+
list.push({
|
|
550
|
+
id: item.id,
|
|
551
|
+
...item,
|
|
552
|
+
address: item.address || item.pointName,
|
|
553
|
+
title: hy.titleFn(item.pointName)
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
nextTick(() => {
|
|
558
|
+
hy.loading.value = false;
|
|
559
|
+
hy.searchResultList.value.push(...list);
|
|
560
|
+
if (dataList.length === 0 && hy.searchResultList.value.length === 0) {
|
|
561
|
+
ElMessage.error("\u672A\u641C\u7D22\u5230\u5185\u5BB9");
|
|
562
|
+
}
|
|
563
|
+
if (hy.page.value === res.data.totalPages) {
|
|
564
|
+
hy.noMore.value = true;
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
function titleFn(title = "") {
|
|
571
|
+
const arr = [];
|
|
572
|
+
for (let i = 0; i < title.length; i++) {
|
|
573
|
+
const item = title[i];
|
|
574
|
+
const index = hy.searchAddress.value.indexOf(item);
|
|
575
|
+
const json = {
|
|
576
|
+
content: title[i]
|
|
577
|
+
};
|
|
578
|
+
if (index === -1) {
|
|
579
|
+
json.type = 1;
|
|
580
|
+
} else {
|
|
581
|
+
json.type = 2;
|
|
582
|
+
}
|
|
583
|
+
arr.push(json);
|
|
584
|
+
}
|
|
585
|
+
return arr;
|
|
586
|
+
}
|
|
587
|
+
function placeholderFn() {
|
|
588
|
+
if (hy.searchAddressType.value === 1) {
|
|
589
|
+
hy.placeholder.value = "\u8F93\u5165\u5730\u5740\u8FDB\u884C\u641C\u7D22";
|
|
590
|
+
} else if (hy.searchAddressType.value === 4) {
|
|
591
|
+
hy.placeholder.value = "\u8F93\u5165\u90E8\u95E8\u8FDB\u884C\u641C\u7D22";
|
|
592
|
+
} else if (hy.searchAddressType.value === 6) {
|
|
593
|
+
hy.placeholder.value = "\u8F93\u5165\u5DE1\u67E5\u70B9\u8FDB\u884C\u641C\u7D22";
|
|
594
|
+
} else if (hy.searchAddressType.value === 7) {
|
|
595
|
+
hy.placeholder.value = "\u8F93\u5165\u4EFB\u52A1\u540D\u79F0\u8FDB\u884C\u641C\u7D22";
|
|
596
|
+
} else if (hy.searchAddressType.value === 8) {
|
|
597
|
+
hy.placeholder.value = "\u8F93\u5165\u8F66\u724C\u53F7\u7801/\u7528\u6237\u540D\u8FDB\u884C\u641C\u7D22";
|
|
598
|
+
} else {
|
|
599
|
+
hy.placeholder.value = null;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
return {
|
|
603
|
+
searchAddressTypeList,
|
|
604
|
+
nextPageParams,
|
|
605
|
+
lnglat,
|
|
606
|
+
lnglatList,
|
|
607
|
+
customCoordinate,
|
|
608
|
+
searchResultList,
|
|
609
|
+
searchAddressType,
|
|
610
|
+
placeholder,
|
|
611
|
+
searchAddress,
|
|
612
|
+
valid,
|
|
613
|
+
size,
|
|
614
|
+
page,
|
|
615
|
+
noMore,
|
|
616
|
+
loading,
|
|
617
|
+
colorObject,
|
|
618
|
+
timeOut,
|
|
619
|
+
isFocus,
|
|
620
|
+
queryMarkerPoint,
|
|
621
|
+
showItem,
|
|
622
|
+
disabled,
|
|
623
|
+
commonOptions,
|
|
624
|
+
mapCoordinate,
|
|
625
|
+
mapCoordinateName,
|
|
626
|
+
lnglatCheckFn,
|
|
627
|
+
onFocus,
|
|
628
|
+
onBlur,
|
|
629
|
+
lnglatClick,
|
|
630
|
+
queryMarkerPointDelete,
|
|
631
|
+
setQueryMarkerPoint,
|
|
632
|
+
mapJumpLocationFn,
|
|
633
|
+
unbindVehicleFn,
|
|
634
|
+
throttle,
|
|
635
|
+
load,
|
|
636
|
+
searchAddressTypeFn,
|
|
637
|
+
resetFn,
|
|
638
|
+
getData,
|
|
639
|
+
addressRequestFn,
|
|
640
|
+
keepDecimal,
|
|
641
|
+
getVehicleList,
|
|
642
|
+
getTaskList,
|
|
643
|
+
organizationPageFn,
|
|
644
|
+
patrolPointFn,
|
|
645
|
+
titleFn,
|
|
646
|
+
placeholderFn
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
export { useMapAearchPlace };
|