hy-dispatch-ui-v3 0.2.62 → 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 +4 -5
- package/es/api/device.mjs +1 -0
- package/es/api/index.mjs +1 -0
- package/es/api/sypct.mjs +1 -0
- package/es/api/task.mjs +1 -0
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +6 -3
- package/es/bussiness/hyAddDepartmentType/index.mjs +1 -0
- package/es/bussiness/hyMapAearchPlace/index.mjs +1 -0
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +39 -42
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +24 -5
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +2 -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 +1 -0
- 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 +9 -2
- package/es/components/hyConfigProvider/configProvider.vue.mjs +2 -1
- package/es/components/hyConfigProvider/index.mjs +1 -0
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +4 -0
- 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 +92 -28
- 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 +3 -0
- 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 +1 -0
- 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 +3 -1
- 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 +3 -0
- package/es/components/hyTableActionButton/index.mjs +1 -0
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +5 -2
- package/es/components/hyTableForm/batchTableForm.vue.mjs +5 -2
- package/es/components/hyTableForm/index.mjs +1 -0
- package/es/components/hyTableForm/js/index.mjs +36 -0
- package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -0
- package/es/components/hyTableForm/tableForm.vue.mjs +4 -2
- 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/useGlobalConfig.mjs +1 -1
- package/es/hooks/useLocale.mjs +4 -2
- package/es/hooks/useResizeHandler.mjs +1 -0
- package/es/hooks/useResizeObserver.mjs +1 -1
- package/es/index.mjs +6 -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/utils/file.mjs +1 -0
- package/es/utils/form.mjs +2 -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 +4 -1
- package/es/utils/sharedContent.mjs +12 -0
- package/es/version.mjs +1 -1
- package/lib/api/device.js +1 -0
- package/lib/api/index.js +1 -0
- package/lib/api/sypct.js +1 -0
- package/lib/api/task.js +1 -0
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +15 -12
- package/lib/bussiness/hyAddDepartmentType/index.js +1 -0
- package/lib/bussiness/hyMapAearchPlace/index.js +1 -0
- package/lib/bussiness/hyMapAearchPlace/js/index.js +37 -40
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +23 -4
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.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 +1 -0
- 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 +9 -2
- package/lib/components/hyConfigProvider/configProvider.vue.js +1 -0
- package/lib/components/hyConfigProvider/index.js +1 -0
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +4 -0
- 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 +90 -26
- 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 +3 -0
- 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 +1 -0
- 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 +2 -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 +3 -0
- package/lib/components/hyTableActionButton/index.js +1 -0
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -1
- package/lib/components/hyTableForm/batchTableForm.vue.js +15 -12
- package/lib/components/hyTableForm/index.js +1 -0
- package/lib/components/hyTableForm/js/index.js +36 -0
- package/lib/components/hyTableForm/js/useAppTableForm.js +2 -0
- package/lib/components/hyTableForm/tableForm.vue.js +12 -10
- 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/useLocale.js +3 -1
- package/lib/hooks/useResizeHandler.js +1 -0
- package/lib/index.js +70 -61
- package/lib/locale/en.js +1 -2
- package/lib/locale/zh_CN.js +1 -2
- package/lib/make-installer.js +1 -0
- package/lib/utils/file.js +1 -0
- package/lib/utils/form.js +1 -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 +4 -1
- package/lib/utils/sharedContent.js +14 -0
- package/lib/version.js +1 -1
- package/package.json +2 -1
package/es/index.mjs
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import installer from './make-installer.mjs';
|
|
2
|
+
import './utils/index.mjs';
|
|
3
|
+
import './components/index.mjs';
|
|
4
|
+
import './bussiness/index.mjs';
|
|
5
|
+
import './hooks/index.mjs';
|
|
2
6
|
export { ElDatePicker, HyDatePicker } from './components/hyDatePicker/index.mjs';
|
|
3
7
|
export { ElInput, HyInput, HyInputSearch } from './components/hyInput/index.mjs';
|
|
8
|
+
export { ElLoading, ElLoading as HyLoading } from './components/hyLoading/index.mjs';
|
|
4
9
|
export { ElTimePicker, HyTimePicker } from './components/hyTimePicker/index.mjs';
|
|
5
10
|
export { ElTooltip, HyTooltip } from './components/hyTooltip/index.mjs';
|
|
6
11
|
export { HyAddDepartmentType } from './bussiness/hyAddDepartmentType/index.mjs';
|
|
@@ -41,6 +46,7 @@ export { defaultAxios, localApiKey, useApi } from './hooks/useApi.mjs';
|
|
|
41
46
|
export { enterNumbersRrLetters, enterTheMumber, filterSpaces, formatNumber, formatTimeFn, getPublicFileSize, inputForbidden, keepTwoDecimalPlaces, onlyNumber } from './utils/input.mjs';
|
|
42
47
|
export { formatDuration, getDefaultValueFormatByType } from './utils/date.mjs';
|
|
43
48
|
export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isObject, isOverflowing, isPermission, isString, isSupportH265, isSymbol, isUndefined, isVueProxy } from './utils/is.mjs';
|
|
49
|
+
export { loadingSvg } from './utils/sharedContent.mjs';
|
|
44
50
|
export { localAudioPlayerConfigKey, useAudioPlayerConfig } from './hooks/useAudioPlayerConfig.mjs';
|
|
45
51
|
export { localEnsureHyIconMapKey, useEnsureHyIcon } from './hooks/useEnsureHyIcon.mjs';
|
|
46
52
|
export { localMapConfigKey, useMapConfig } from './hooks/useMapConfig.mjs';
|
package/es/locale/en.mjs
CHANGED
package/es/locale/zh_CN.mjs
CHANGED
|
@@ -27,8 +27,7 @@ var zh_CN = {
|
|
|
27
27
|
wednesday: "\u661F\u671F\u4E09",
|
|
28
28
|
thursday: "\u661F\u671F\u56DB",
|
|
29
29
|
friday: "\u661F\u671F\u4E94",
|
|
30
|
-
saturday: "\u661F\u671F\u516D"
|
|
31
|
-
help: "\u5E2E\u52A9"
|
|
30
|
+
saturday: "\u661F\u671F\u516D"
|
|
32
31
|
},
|
|
33
32
|
form: {
|
|
34
33
|
department: "\u6240\u5C5E\u90E8\u95E8",
|
package/es/make-installer.mjs
CHANGED
package/es/utils/file.mjs
CHANGED
package/es/utils/form.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { unref } from 'vue';
|
|
2
|
-
import
|
|
2
|
+
import '../hooks/index.mjs';
|
|
3
|
+
import { isString, isArray, isBoolean, isFunction, isObject, isEmpty } from './is.mjs';
|
|
3
4
|
import { useLocale } from '../hooks/useLocale.mjs';
|
|
4
5
|
|
|
5
6
|
function getValueByProp(model, prop) {
|
package/es/utils/handler.mjs
CHANGED
package/es/utils/index.mjs
CHANGED
|
@@ -8,4 +8,6 @@ export { clearSpace, columnLabelHandler, columnPlaceholderHandler, columnRuleHan
|
|
|
8
8
|
export { enterNumbersRrLetters, enterTheMumber, filterSpaces, formatNumber, formatTimeFn, getPublicFileSize, inputForbidden, keepTwoDecimalPlaces, onlyNumber } from './input.mjs';
|
|
9
9
|
export { PERMISSION } from './permission.mjs';
|
|
10
10
|
export { InitMap, setMapServer, setPoiServer } from './map/index.mjs';
|
|
11
|
+
import './tree.mjs';
|
|
12
|
+
export { loadingSvg } from './sharedContent.mjs';
|
|
11
13
|
export { setGlobalTreeConfig } from 'hy-virtual-tree';
|
package/es/utils/input.mjs
CHANGED
package/es/utils/is.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { createMapProxy, createWrappedHandlerStore } from '../js/mapProxy.mjs';
|
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
8
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9
9
|
const CIRCLE_SEGMENTS = 36;
|
|
10
10
|
function remToPx(rem) {
|
|
11
11
|
const rootFontSize = parseFloat(
|
|
@@ -712,6 +712,7 @@ class bigMap extends EventEmitter {
|
|
|
712
712
|
// 电子围栏
|
|
713
713
|
CreateFence(pmType = "rectangle", options = {}, map) {
|
|
714
714
|
let polygon = null;
|
|
715
|
+
const _this = this;
|
|
715
716
|
const clearPolygon = () => {
|
|
716
717
|
if (polygon) {
|
|
717
718
|
polygon.remove();
|
|
@@ -822,7 +823,7 @@ class bigMap extends EventEmitter {
|
|
|
822
823
|
}
|
|
823
824
|
function setPointIcon(index, distance, showDeleteAll) {
|
|
824
825
|
const markerItem = rangingMarker[index];
|
|
825
|
-
const isLast = !rangingMarker[index + 1]?.options?.extData?.distance;
|
|
826
|
+
const isLast = showDeleteAll ?? !rangingMarker[index + 1]?.options?.extData?.distance;
|
|
826
827
|
markerItem.setIcon({
|
|
827
828
|
divIcon: _this.DivIcon(
|
|
828
829
|
rangingPointIconOption(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import {
|
|
2
|
+
import { createWrappedHandlerStore, createMapProxy } from '../js/mapProxy.mjs';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
6
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
7
|
const createClickHandler = (fn, context, target) => {
|
|
8
8
|
return (e) => {
|
|
9
9
|
const newEvent = { ...e };
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
2
|
import L from 'leaflet';
|
|
3
|
+
import 'leaflet.pm';
|
|
4
|
+
import 'leaflet.chinatmsproviders';
|
|
5
|
+
import 'proj4leaflet';
|
|
6
|
+
import 'leaflet.motion/dist/leaflet.motion.min';
|
|
7
|
+
import 'leaflet.markercluster/dist/leaflet.markercluster-src.js';
|
|
8
|
+
import 'leaflet-polylinedecorator/dist/leaflet.polylineDecorator';
|
|
3
9
|
import { importCoordinate, exportCoordinate } from '../js/webgis.mjs';
|
|
4
10
|
import { createMapProxy, createWrappedHandlerStore } from '../js/mapProxy.mjs';
|
|
5
11
|
import * as esriNS from 'esri-leaflet';
|
|
@@ -8,7 +14,7 @@ import related from 'esri-leaflet-related/dist/esri-leaflet-related';
|
|
|
8
14
|
|
|
9
15
|
var __defProp = Object.defineProperty;
|
|
10
16
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
17
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
12
18
|
import "leaflet/dist/leaflet.css";
|
|
13
19
|
|
|
14
20
|
import "leaflet.pm/dist/leaflet.pm.css";
|
package/es/utils/map/index.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import Leafletjs from './hook/leafletjs.mjs';
|
|
|
3
3
|
import bigMap from './hook/bigMap.mjs';
|
|
4
4
|
import { EventEmitter } from 'events';
|
|
5
5
|
import hyCommon, { Common } from 'hy-common';
|
|
6
|
+
import '../../hooks/index.mjs';
|
|
6
7
|
import { useApi } from '../../hooks/useApi.mjs';
|
|
7
8
|
|
|
8
9
|
const scriptPromises = new globalThis.Map();
|
|
@@ -146,6 +147,7 @@ function loadScript(url) {
|
|
|
146
147
|
return promise;
|
|
147
148
|
}
|
|
148
149
|
function bmInit() {
|
|
150
|
+
;
|
|
149
151
|
(function() {
|
|
150
152
|
var originalInitTile = window.BM.GridLayer.prototype._initTile;
|
|
151
153
|
window.BM.GridLayer.include({
|
|
@@ -259,6 +261,8 @@ class InitMap extends EventEmitter {
|
|
|
259
261
|
// 自定义 Circle
|
|
260
262
|
Circle(latLngList, option) {
|
|
261
263
|
option = {
|
|
264
|
+
opacity: 1,
|
|
265
|
+
weight: 1,
|
|
262
266
|
...option,
|
|
263
267
|
radius: option.radius,
|
|
264
268
|
color: option.color,
|
|
@@ -272,6 +276,8 @@ class InitMap extends EventEmitter {
|
|
|
272
276
|
// 自定义 Polygon
|
|
273
277
|
Polygon(pathList = [], option) {
|
|
274
278
|
option = {
|
|
279
|
+
opacity: 1,
|
|
280
|
+
weight: 1,
|
|
275
281
|
...option,
|
|
276
282
|
color: option.color,
|
|
277
283
|
opacity: option.opacity,
|
|
@@ -296,6 +302,8 @@ class InitMap extends EventEmitter {
|
|
|
296
302
|
// 自定义 Polyline
|
|
297
303
|
Polyline(latLngList, option) {
|
|
298
304
|
option = {
|
|
305
|
+
opacity: 1,
|
|
306
|
+
weight: 1,
|
|
299
307
|
closeOnClick: false,
|
|
300
308
|
...option,
|
|
301
309
|
color: option.color,
|
|
@@ -320,6 +328,10 @@ class InitMap extends EventEmitter {
|
|
|
320
328
|
RangingTool(options = {}, map) {
|
|
321
329
|
return this.map.RangingTool(options, map);
|
|
322
330
|
}
|
|
331
|
+
// 地图图层
|
|
332
|
+
layerGroup(map, markers = []) {
|
|
333
|
+
return this.map.layerGroup(map, markers);
|
|
334
|
+
}
|
|
323
335
|
}
|
|
324
336
|
|
|
325
337
|
export { InitMap, setMapServer, setPoiServer };
|
package/es/version.mjs
CHANGED
package/lib/api/device.js
CHANGED
package/lib/api/index.js
CHANGED
package/lib/api/sypct.js
CHANGED
package/lib/api/task.js
CHANGED
|
@@ -3,16 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
+
require('../../hooks/index.js');
|
|
6
7
|
var elementPlus = require('element-plus');
|
|
7
|
-
var index
|
|
8
|
+
var index = require('../../api/index.js');
|
|
9
|
+
require('../../utils/index.js');
|
|
10
|
+
require('../../components/index.js');
|
|
8
11
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
|
9
12
|
var useLocale = require('../../hooks/useLocale.js');
|
|
10
|
-
var useMixins = require('../../hooks/useMixins.js');
|
|
11
|
-
var index = require('../../components/hyDialog/index.js');
|
|
12
|
-
var index$1 = require('../../components/hyIcon/index.js');
|
|
13
|
-
var index$2 = require('../../components/hyButton/index.js');
|
|
14
|
-
var index$3 = require('../../components/hyCutter/index.js');
|
|
15
13
|
var file = require('../../utils/file.js');
|
|
14
|
+
var useMixins = require('../../hooks/useMixins.js');
|
|
15
|
+
var index$1 = require('../../components/hyDialog/index.js');
|
|
16
|
+
var index$2 = require('../../components/hyIcon/index.js');
|
|
17
|
+
var index$3 = require('../../components/hyButton/index.js');
|
|
18
|
+
var index$4 = require('../../components/hyCutter/index.js');
|
|
16
19
|
|
|
17
20
|
const __default__ = vue.defineComponent({
|
|
18
21
|
name: "HyAddDepartmentType"
|
|
@@ -92,7 +95,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
92
95
|
if (!hy.form.value.icon) {
|
|
93
96
|
hy.form.value.iconKey = null;
|
|
94
97
|
}
|
|
95
|
-
index
|
|
98
|
+
index.saveApi("organization/orgType", {
|
|
96
99
|
...hy.form.value,
|
|
97
100
|
icon: null
|
|
98
101
|
}).then((res) => {
|
|
@@ -169,7 +172,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
169
172
|
});
|
|
170
173
|
return (_ctx, _cache) => {
|
|
171
174
|
const _component_el_input = vue.resolveComponent("el-input");
|
|
172
|
-
return vue.openBlock(), vue.createBlock(vue.unref(index.HyDialog), {
|
|
175
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$1.HyDialog), {
|
|
173
176
|
ref_key: "HyDialogRef",
|
|
174
177
|
ref: HyDialogRef,
|
|
175
178
|
modelValue: vue.unref(visible),
|
|
@@ -238,7 +241,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
238
241
|
fit: "contain",
|
|
239
242
|
class: "w-[44px] h-[44px]",
|
|
240
243
|
src: vue.unref(form).icon
|
|
241
|
-
}, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
244
|
+
}, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyIcon), {
|
|
242
245
|
key: 1,
|
|
243
246
|
"svg-name": "ops-file-empty-head",
|
|
244
247
|
class: "text-auxiliary !w-[42px] !h-[42px]"
|
|
@@ -310,7 +313,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
310
313
|
}, 8, ["model", "rules"])
|
|
311
314
|
]),
|
|
312
315
|
vue.createElementVNode("div", { class: "flex items-center justify-center mt-5" }, [
|
|
313
|
-
vue.createVNode(vue.unref(index$
|
|
316
|
+
vue.createVNode(vue.unref(index$3.HyButton), {
|
|
314
317
|
class: "!min-w-[120px]",
|
|
315
318
|
onClick: vue.unref(onClose)
|
|
316
319
|
}, {
|
|
@@ -324,7 +327,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
324
327
|
_: 1
|
|
325
328
|
/* STABLE */
|
|
326
329
|
}, 8, ["onClick"]),
|
|
327
|
-
vue.createVNode(vue.unref(index$
|
|
330
|
+
vue.createVNode(vue.unref(index$3.HyButton), {
|
|
328
331
|
type: "primary",
|
|
329
332
|
class: "!min-w-[120px]",
|
|
330
333
|
onClick: vue.unref(submit)
|
|
@@ -343,7 +346,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
343
346
|
])
|
|
344
347
|
]),
|
|
345
348
|
vue.unref(visible) ? (vue.openBlock(), vue.createBlock(
|
|
346
|
-
vue.unref(index$
|
|
349
|
+
vue.unref(index$4.HyCutter),
|
|
347
350
|
{
|
|
348
351
|
key: 0,
|
|
349
352
|
ref_key: "HyCutterRef",
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var addDepartmentType = require('./addDepartmentType.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyAddDepartmentType = handler.withInstall(addDepartmentType.default);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var mapAearchPlace = require('./mapAearchPlace.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyMapAearchPlace = handler.withInstall(mapAearchPlace.default);
|
|
@@ -6,10 +6,11 @@ var index$1 = require('../../../api/index.js');
|
|
|
6
6
|
var task = require('../../../api/task.js');
|
|
7
7
|
var device = require('../../../api/device.js');
|
|
8
8
|
var sypct = require('../../../api/sypct.js');
|
|
9
|
+
require('../../../utils/index.js');
|
|
9
10
|
var webgis = require('../../../utils/map/js/webgis.js');
|
|
10
11
|
var index = require('../../../utils/map/index.js');
|
|
11
|
-
var input = require('../../../utils/input.js');
|
|
12
12
|
var is = require('../../../utils/is.js');
|
|
13
|
+
var input = require('../../../utils/input.js');
|
|
13
14
|
|
|
14
15
|
const CoordinateDict = {
|
|
15
16
|
0: "WGS84",
|
|
@@ -24,32 +25,6 @@ const CoordinateMap = {
|
|
|
24
25
|
const useMapAearchPlace = (hy) => {
|
|
25
26
|
const { props, emits, t } = hy;
|
|
26
27
|
const poiServer = index.setPoiServer(props.mapConfig);
|
|
27
|
-
const searchAddressTypeList = vue.ref([
|
|
28
|
-
{ label: "\u5730\u7406\u5730\u5740", value: 1 },
|
|
29
|
-
// 水源点: 2
|
|
30
|
-
// 防火单位: 3
|
|
31
|
-
{
|
|
32
|
-
label: "\u90E8\u95E8\u540D\u79F0",
|
|
33
|
-
value: 4,
|
|
34
|
-
permission: "operator_departmentManage"
|
|
35
|
-
},
|
|
36
|
-
{ label: "\u67E5\u7ECF\u7EAC\u5EA6", value: 5 },
|
|
37
|
-
{
|
|
38
|
-
label: "\u67E5\u5DE1\u67E5\u70B9",
|
|
39
|
-
value: 6,
|
|
40
|
-
permission: "mission_patrolInspectionTask"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: "\u4EFB\u52A1\u540D\u79F0",
|
|
44
|
-
value: 7,
|
|
45
|
-
permission: "mission_commonTasks"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
label: "\u67E5\u8BE2\u8F66\u8F86",
|
|
49
|
-
value: 8,
|
|
50
|
-
permission: "commands_dutyStatus"
|
|
51
|
-
}
|
|
52
|
-
]);
|
|
53
28
|
const nextPageParams = vue.ref(null);
|
|
54
29
|
const lnglat = vue.ref({
|
|
55
30
|
lng: null,
|
|
@@ -93,20 +68,43 @@ const useMapAearchPlace = (hy) => {
|
|
|
93
68
|
const mapCoordinateName = vue.computed(() => {
|
|
94
69
|
return CoordinateDict[hy.mapCoordinate.value];
|
|
95
70
|
});
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
71
|
+
const searchAddressTypeList = vue.computed(() => {
|
|
72
|
+
const selectIdSet = props.selectIdList.reduce((value, id) => {
|
|
73
|
+
value.add(id);
|
|
74
|
+
return value;
|
|
75
|
+
}, /* @__PURE__ */ new Set());
|
|
76
|
+
return [
|
|
77
|
+
{ label: "\u5730\u7406\u5730\u5740", value: 1 },
|
|
78
|
+
// 水源点: 2
|
|
79
|
+
// 防火单位: 3
|
|
80
|
+
{
|
|
81
|
+
label: "\u90E8\u95E8\u540D\u79F0",
|
|
82
|
+
value: 4,
|
|
83
|
+
permission: "operator_departmentManage"
|
|
84
|
+
},
|
|
85
|
+
{ label: "\u67E5\u7ECF\u7EAC\u5EA6", value: 5 },
|
|
86
|
+
{
|
|
87
|
+
label: "\u67E5\u5DE1\u67E5\u70B9",
|
|
88
|
+
value: 6,
|
|
89
|
+
permission: "mission_patrolInspectionTask"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: "\u4EFB\u52A1\u540D\u79F0",
|
|
93
|
+
value: 7,
|
|
94
|
+
permission: "mission_commonTasks"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: "\u67E5\u8BE2\u8F66\u8F86",
|
|
98
|
+
value: 8,
|
|
99
|
+
permission: "commands_dutyStatus"
|
|
104
100
|
}
|
|
101
|
+
].filter((item) => {
|
|
102
|
+
if (!item.permission && !is.isPermission(item.permission)) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
return selectIdSet.has(item.value);
|
|
105
106
|
});
|
|
106
|
-
|
|
107
|
-
hy.searchAddressType.value = selectList[0].value;
|
|
108
|
-
hy.selectList = selectList;
|
|
109
|
-
}
|
|
107
|
+
});
|
|
110
108
|
async function lnglatCheckFn(content) {
|
|
111
109
|
input.onlyNumber(hy.lnglat.value, content);
|
|
112
110
|
await vue.nextTick();
|
|
@@ -627,7 +625,6 @@ const useMapAearchPlace = (hy) => {
|
|
|
627
625
|
commonOptions,
|
|
628
626
|
mapCoordinate,
|
|
629
627
|
mapCoordinateName,
|
|
630
|
-
setSelectList,
|
|
631
628
|
lnglatCheckFn,
|
|
632
629
|
onFocus,
|
|
633
630
|
onBlur,
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var VirtualList = require('vue3-virtual-scroll-list');
|
|
7
7
|
var elementPlus = require('element-plus');
|
|
8
|
+
require('../../hooks/index.js');
|
|
9
|
+
require('../../components/index.js');
|
|
8
10
|
var index = require('./js/index.js');
|
|
9
11
|
var mapAearchPlaceItem = require('./mapAearchPlaceItem.vue.js');
|
|
10
12
|
var useLocale = require('../../hooks/useLocale.js');
|
|
@@ -80,7 +82,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
80
82
|
commonOptions,
|
|
81
83
|
mapCoordinate,
|
|
82
84
|
mapCoordinateName,
|
|
83
|
-
setSelectList,
|
|
84
85
|
lnglatCheckFn,
|
|
85
86
|
onFocus,
|
|
86
87
|
onBlur,
|
|
@@ -103,6 +104,24 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
103
104
|
titleFn,
|
|
104
105
|
placeholderFn
|
|
105
106
|
} = useMixins.useMixins({ props, emits, t }, [index.useMapAearchPlace]);
|
|
107
|
+
vue.watch(
|
|
108
|
+
() => searchAddressTypeList.value,
|
|
109
|
+
() => {
|
|
110
|
+
if (!searchAddressType.value) {
|
|
111
|
+
searchAddressType.value = searchAddressType.value[0];
|
|
112
|
+
searchAddressTypeFn();
|
|
113
|
+
} else {
|
|
114
|
+
const index = searchAddressTypeList.value.findIndex((item) => {
|
|
115
|
+
return searchAddressType.value === item.value;
|
|
116
|
+
});
|
|
117
|
+
if (index === -1) {
|
|
118
|
+
searchAddressType.value = searchAddressType.value[0];
|
|
119
|
+
searchAddressTypeFn();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{ immediate: true, deep: true }
|
|
124
|
+
);
|
|
106
125
|
__expose({});
|
|
107
126
|
return (_ctx, _cache) => {
|
|
108
127
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -127,7 +146,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
127
146
|
onBlur: vue.unref(onBlur)
|
|
128
147
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onChange", "onFocus", "onBlur"]),
|
|
129
148
|
vue.createVNode(vue.unref(index$1.HyTooltip), {
|
|
130
|
-
"
|
|
149
|
+
"show-after": 500,
|
|
131
150
|
content: vue.unref(placeholder),
|
|
132
151
|
placement: "bottom-start"
|
|
133
152
|
}, {
|
|
@@ -152,7 +171,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
152
171
|
}, 8, ["content"]),
|
|
153
172
|
vue.createCommentVNode(" \u7ECF\u7EAC\u5EA6 "),
|
|
154
173
|
vue.createVNode(vue.unref(index$1.HyTooltip), {
|
|
155
|
-
"
|
|
174
|
+
"show-after": 500,
|
|
156
175
|
content: "\u7EAC\u5EA6",
|
|
157
176
|
placement: "bottom-start"
|
|
158
177
|
}, {
|
|
@@ -177,7 +196,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
177
196
|
/* STABLE */
|
|
178
197
|
}),
|
|
179
198
|
vue.createVNode(vue.unref(index$1.HyTooltip), {
|
|
180
|
-
"
|
|
199
|
+
"show-after": 500,
|
|
181
200
|
content: "\u7ECF\u5EA6",
|
|
182
201
|
placement: "bottom-start"
|
|
183
202
|
}, {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
+
require('../../components/index.js');
|
|
6
7
|
var index = require('../../components/hyIcon/index.js');
|
|
7
8
|
|
|
8
9
|
const _sfc_main = {
|
|
@@ -31,6 +32,7 @@ const _sfc_main = {
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
setup(__props) {
|
|
35
|
+
const props = __props;
|
|
34
36
|
return (_ctx, _cache) => {
|
|
35
37
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
36
38
|
class: "flex items-center css-text-no-select py-2 pl-2.5 border-b border-background-3 clickBox hover:bg-background-3",
|
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
|
+
require('../../hooks/index.js');
|
|
8
|
+
require('../../utils/index.js');
|
|
9
|
+
require('../index.js');
|
|
7
10
|
var mediaLoading = require('../hyVideoPlayer/cpns/mediaLoading.vue.js');
|
|
8
11
|
var index = require('./js/index.js');
|
|
9
12
|
var useLocale = require('../../hooks/useLocale.js');
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var audioPlayer = require('./audioPlayer.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyAudioPlayer = handler.withInstall(audioPlayer.default);
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var elementPlus = require('element-plus');
|
|
5
|
+
require('dayjs');
|
|
6
|
+
require('../../../hooks/index.js');
|
|
7
|
+
require('../../../utils/index.js');
|
|
5
8
|
var useLocale = require('../../../hooks/useLocale.js');
|
|
6
9
|
var useAudioPlayerConfig = require('../../../hooks/useAudioPlayerConfig.js');
|
|
7
10
|
var date = require('../../../utils/date.js');
|
|
@@ -243,7 +246,8 @@ const useAudioPlayer = (hy) => {
|
|
|
243
246
|
document.removeEventListener("fullscreenchange", fullscreenchangeHandler);
|
|
244
247
|
}
|
|
245
248
|
function fullscreenchangeHandler(e) {
|
|
246
|
-
if (document.fullscreenElement)
|
|
249
|
+
if (document.fullscreenElement) {
|
|
250
|
+
} else {
|
|
247
251
|
isFullScreen.value = false;
|
|
248
252
|
}
|
|
249
253
|
}
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
require('../index.js');
|
|
8
9
|
var index = require('../hyDialog/index.js');
|
|
9
10
|
var index$1 = require('../hyTableForm/index.js');
|
|
10
11
|
var index$2 = require('../hyButton/index.js');
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var batchUploadDialog = require('./batchUploadDialog.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyBatchUploadDialog = handler.withInstall(batchUploadDialog.default);
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
require('../index.js');
|
|
8
9
|
var index = require('../hyTooltip/index.js');
|
|
9
10
|
var index$1 = require('../hyIcon/index.js');
|
|
10
11
|
|
|
@@ -123,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
123
124
|
}, {
|
|
124
125
|
default: vue.withCtx(() => [
|
|
125
126
|
vue.renderSlot(_ctx.$slots, "content", {}, () => [
|
|
126
|
-
vue.createElementVNode("div", { class: "flex items-center text-main px-3" }, [
|
|
127
|
+
vue.createElementVNode("div", { class: "h-full flex items-center text-main px-3" }, [
|
|
127
128
|
!__props.loading ? vue.renderSlot(_ctx.$slots, "svg", {}, () => [
|
|
128
129
|
__props.svgName ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
|
|
129
130
|
key: 0,
|