hy-dispatch-ui-v3 0.2.86 → 0.2.88
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 +196 -4
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.mjs +1 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +1 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +1 -0
- package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +1 -0
- package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.mjs +1 -0
- package/es/bussiness/hyDisplayQueryAddress/locale/en_US.mjs +3 -3
- package/es/bussiness/hyDisplayQueryAddress/locale/zh_CN.mjs +3 -3
- package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +1 -0
- package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.mjs +7 -1
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +1 -0
- package/es/bussiness/hyElectronicFence/electronicFence.vue.mjs +7 -1
- package/es/bussiness/hyFilePlayback/locale/en_US.mjs +17 -17
- package/es/bussiness/hyFilePlayback/locale/zh_CN.mjs +17 -17
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +1 -0
- package/es/bussiness/hyOrgGroupTree/orgGroupTree.vue.mjs +1 -0
- package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.mjs +1 -0
- package/es/bussiness/hyRuleSetting/ruleSetting.vue.mjs +1 -0
- package/es/bussiness/hySelectDeviceTree/cpns/deviceItem.vue.mjs +3 -3
- package/es/bussiness/hySelectDeviceTree/selectDeviceTree.vue.mjs +2 -8
- package/es/bussiness/hyUserTree/userTree.vue.mjs +1 -0
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +9 -1
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +1 -0
- package/es/components/hyButton/button.vue.mjs +1 -0
- package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +1 -0
- package/es/components/hyConfigProvider/configProvider.vue.mjs +36 -35
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -0
- package/es/components/hyCutter/cutter.vue.mjs +10 -1
- package/es/components/hyDatePicker/datePicker.vue.mjs +1 -0
- package/es/components/hyDialog/dialog.vue.mjs +1 -0
- package/es/components/hyDrawer/drawer.vue.mjs +1 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +15 -11
- package/es/components/hyForm/form.vue.mjs +2 -3
- package/es/components/hyIcon/icon.vue.mjs +1 -0
- package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
- package/es/components/hyInput/input.vue.mjs +1 -0
- package/es/components/hyInput/inputSearch.vue.mjs +1 -0
- package/es/components/hyKindEditor/kindEditor.vue.mjs +17 -4
- package/es/components/hyMenu/menu.vue.mjs +1 -0
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -0
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -0
- package/es/components/hyOrgCascader/js/index.mjs +0 -1
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +4 -1
- package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -1
- package/es/components/hySearch/search.vue.mjs +5 -1
- package/es/components/hyStatus/status.vue.mjs +1 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +5 -1
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +1 -1
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +11 -2
- package/es/components/hyTable/js/index.mjs +7 -2
- package/es/components/hyTable/table.vue.mjs +5 -1
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +1 -0
- package/es/components/hyTableForm/batchTableForm.vue.mjs +6 -3
- package/es/components/hyTableForm/tableForm.vue.mjs +1 -0
- package/es/components/hyTimePicker/timePicker.vue.mjs +1 -0
- package/es/components/hyTooltip/tooltip.vue.mjs +1 -0
- package/es/components/hyTour/tour.vue.mjs +1 -0
- package/es/components/hyTree/js/index.mjs +8 -2
- package/es/components/hyTree/tree.vue.mjs +1 -0
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +1 -0
- package/es/components/hyVideoPlayer/{js → hyVideoPlayer/js}/index.mjs +9 -9
- package/es/components/hyVideoPlayer/hyVideoPlayer/videoPlayer.vue.mjs +656 -0
- package/es/components/hyVideoPlayer/index.mjs +2 -2
- package/es/components/hyVideoPlayer/locale/en_US.mjs +31 -0
- package/es/components/hyVideoPlayer/locale/index.mjs +2 -0
- package/es/components/hyVideoPlayer/locale/zh_CN.mjs +31 -0
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +5 -645
- package/es/components/hyVideoPlayer/videoPlayer1.vue.mjs +8 -0
- package/es/components/hyVideoPlayer/videoPlayer12.vue.mjs +947 -0
- package/es/components/hyVideoPlayer/videoPlayer2.vue.mjs +951 -0
- package/es/hooks/useLocale.mjs +7 -2
- package/es/static/hy-svg-icons/hy-icon-ops-Empty-audio.js +22 -0
- package/es/static/hy-svg-icons/hy-icon-ops-Empty-document.js +23 -0
- package/es/static/hy-svg-icons/hy-icon-ops-Empty-fall.js +29 -0
- package/es/static/hy-svg-icons/hy-icon-ops-Empty-up.js +29 -0
- package/es/static/hy-svg-icons/hy-icon-ops-Empty-wait.js +29 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-cycle.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-edit.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-fullscreen.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-next.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-previous.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-reduce.js +10 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-semanticretrieval.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-sequentialplay.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-stopplayback.js +8 -0
- package/es/static/map/bm.geometryutil.js +3 -3
- package/es/static/map/bmDraw.js +6 -6
- package/es/static/map/markercluster.js +22 -22
- package/es/static/map/moveMarker.js +1 -1
- package/es/static/vite-plugin-hy-svg-icons.js +2 -2
- package/es/utils/file.mjs +7 -3
- package/es/utils/form.mjs +3 -1
- package/es/utils/map/hook/bigMap.mjs +18 -5
- package/es/utils/map/hook/gaode.mjs +4 -1
- package/es/utils/map/hook/leafletjs.mjs +29 -8
- package/es/utils/map/index.mjs +0 -1
- package/es/utils/useUiComponent.mjs +3 -1
- package/es/version.mjs +1 -1
- package/lib/_virtual/_plugin-vue_export-helper.js +13 -0
- package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.js +1 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +1 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +1 -0
- package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +1 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.js +1 -0
- package/lib/bussiness/hyDisplayQueryAddress/locale/en_US.js +3 -3
- package/lib/bussiness/hyDisplayQueryAddress/locale/zh_CN.js +3 -3
- package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +1 -0
- package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +7 -1
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +1 -0
- package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +7 -1
- package/lib/bussiness/hyFilePlayback/locale/en_US.js +17 -17
- package/lib/bussiness/hyFilePlayback/locale/zh_CN.js +17 -17
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +1 -0
- package/lib/bussiness/hyOrgGroupTree/orgGroupTree.vue.js +1 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.js +1 -0
- package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +1 -0
- package/lib/bussiness/hySelectDeviceTree/cpns/deviceItem.vue.js +3 -3
- package/lib/bussiness/hySelectDeviceTree/selectDeviceTree.vue.js +2 -8
- package/lib/bussiness/hyUserTree/userTree.vue.js +1 -0
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +9 -1
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +1 -0
- package/lib/components/hyButton/button.vue.js +1 -0
- package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +1 -0
- package/lib/components/hyConfigProvider/configProvider.vue.js +36 -35
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -0
- package/lib/components/hyCutter/cutter.vue.js +10 -1
- package/lib/components/hyDatePicker/datePicker.vue.js +1 -0
- package/lib/components/hyDialog/dialog.vue.js +1 -0
- package/lib/components/hyDrawer/drawer.vue.js +1 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +15 -11
- package/lib/components/hyForm/form.vue.js +2 -3
- package/lib/components/hyIcon/icon.vue.js +1 -0
- package/lib/components/hyIconBox/iconBox.vue.js +1 -0
- package/lib/components/hyInput/input.vue.js +1 -0
- package/lib/components/hyInput/inputSearch.vue.js +1 -0
- package/lib/components/hyKindEditor/kindEditor.vue.js +17 -4
- package/lib/components/hyMenu/menu.vue.js +1 -0
- package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -0
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -0
- package/lib/components/hyOrgCascader/js/index.js +0 -1
- package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +4 -1
- package/lib/components/hySearch/cpns/searchItem.vue.js +3 -1
- package/lib/components/hySearch/search.vue.js +5 -1
- package/lib/components/hyStatus/status.vue.js +1 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +5 -1
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +1 -1
- package/lib/components/hyTable/cpns/virtualTable.vue.js +11 -2
- package/lib/components/hyTable/js/index.js +7 -2
- package/lib/components/hyTable/table.vue.js +5 -1
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +1 -0
- package/lib/components/hyTableForm/batchTableForm.vue.js +6 -3
- package/lib/components/hyTableForm/tableForm.vue.js +1 -0
- package/lib/components/hyTimePicker/timePicker.vue.js +1 -0
- package/lib/components/hyTooltip/tooltip.vue.js +1 -0
- package/lib/components/hyTour/tour.vue.js +1 -0
- package/lib/components/hyTree/js/index.js +8 -2
- package/lib/components/hyTree/tree.vue.js +1 -0
- package/lib/components/hyUserAvatar/userAvatar.vue.js +1 -0
- package/lib/components/hyVideoPlayer/{js → hyVideoPlayer/js}/index.js +9 -9
- package/lib/components/hyVideoPlayer/hyVideoPlayer/videoPlayer.vue.js +660 -0
- package/lib/components/hyVideoPlayer/locale/en_US.js +35 -0
- package/lib/components/hyVideoPlayer/locale/index.js +9 -0
- package/lib/components/hyVideoPlayer/locale/zh_CN.js +35 -0
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +5 -645
- package/lib/components/hyVideoPlayer/videoPlayer1.vue.js +12 -0
- package/lib/components/hyVideoPlayer/videoPlayer12.vue.js +951 -0
- package/lib/components/hyVideoPlayer/videoPlayer2.vue.js +955 -0
- package/lib/hooks/useLocale.js +7 -2
- package/lib/static/hy-svg-icons/hy-icon-ops-Empty-audio.js +22 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-Empty-document.js +23 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-Empty-fall.js +29 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-Empty-up.js +29 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-Empty-wait.js +29 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-cycle.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-edit.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-fullscreen.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-next.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-previous.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-reduce.js +10 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-semanticretrieval.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-sequentialplay.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-stopplayback.js +8 -0
- package/lib/static/map/bm.geometryutil.js +3 -3
- package/lib/static/map/bmDraw.js +6 -6
- package/lib/static/map/markercluster.js +22 -22
- package/lib/static/map/moveMarker.js +1 -1
- package/lib/static/vite-plugin-hy-svg-icons.js +2 -2
- package/lib/utils/file.js +7 -3
- package/lib/utils/form.js +3 -1
- package/lib/utils/map/hook/bigMap.js +18 -5
- package/lib/utils/map/hook/gaode.js +4 -1
- package/lib/utils/map/hook/leafletjs.js +29 -8
- package/lib/utils/map/index.js +0 -1
- package/lib/utils/useUiComponent.js +3 -1
- package/lib/version.js +1 -1
- package/package.json +8 -8
- /package/es/components/hyVideoPlayer/{style → hyVideoPlayer/style}/videoPlayer.scss +0 -0
- /package/lib/components/hyVideoPlayer/{style → hyVideoPlayer/style}/videoPlayer.scss +0 -0
|
@@ -86,7 +86,7 @@ export function hySvgIconsPlugin(options = {}) {
|
|
|
86
86
|
const m = idRe.exec(content);
|
|
87
87
|
if (m) map.set(m[1], file);
|
|
88
88
|
} catch {}
|
|
89
|
-
})
|
|
89
|
+
})
|
|
90
90
|
);
|
|
91
91
|
available = map;
|
|
92
92
|
}
|
|
@@ -130,7 +130,7 @@ export function hySvgIconsPlugin(options = {}) {
|
|
|
130
130
|
while ((m = nameRe.exec(content))) {
|
|
131
131
|
if (available.has(m[0])) found.add(m[0]);
|
|
132
132
|
}
|
|
133
|
-
})
|
|
133
|
+
})
|
|
134
134
|
);
|
|
135
135
|
return found;
|
|
136
136
|
}
|
package/es/utils/file.mjs
CHANGED
|
@@ -35,9 +35,13 @@ async function fileJsonUplaod(file) {
|
|
|
35
35
|
}
|
|
36
36
|
async function preSignedUrlGetApi(keyList) {
|
|
37
37
|
const { api } = useApi();
|
|
38
|
-
return await unref(api).post(
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
return await unref(api).post(
|
|
39
|
+
"file/preSignedUrlGet",
|
|
40
|
+
{ keyList },
|
|
41
|
+
{
|
|
42
|
+
isJSON: true
|
|
43
|
+
}
|
|
44
|
+
);
|
|
41
45
|
}
|
|
42
46
|
async function fileFormUpload(file) {
|
|
43
47
|
const { api } = useApi();
|
package/es/utils/form.mjs
CHANGED
|
@@ -102,7 +102,9 @@ const columnRuleHandler = (column, model, config) => {
|
|
|
102
102
|
value = `${value}`;
|
|
103
103
|
}
|
|
104
104
|
if (isString(value) && value.length > 255) {
|
|
105
|
-
callback(
|
|
105
|
+
callback(
|
|
106
|
+
new Error($t("form.characterLimit", [columnLabelHandler(column, model), 255]))
|
|
107
|
+
);
|
|
106
108
|
return;
|
|
107
109
|
}
|
|
108
110
|
callback();
|
|
@@ -51,7 +51,10 @@ const generalMapMethods = {
|
|
|
51
51
|
// 导入到地图里面
|
|
52
52
|
getBounds: function(target, BM2) {
|
|
53
53
|
const bounds = target.getBounds ? target.getBounds() : target;
|
|
54
|
-
return BM2.latLngBounds(
|
|
54
|
+
return BM2.latLngBounds(
|
|
55
|
+
latAndLngCheck(bounds.getSouthWest()),
|
|
56
|
+
latAndLngCheck(bounds.getNorthEast())
|
|
57
|
+
);
|
|
55
58
|
},
|
|
56
59
|
getMap: function(map) {
|
|
57
60
|
return map.getRawMap ? map.getRawMap() : map;
|
|
@@ -59,7 +62,10 @@ const generalMapMethods = {
|
|
|
59
62
|
// 导出到外面
|
|
60
63
|
getBoundsExport: function(target, BM2) {
|
|
61
64
|
const bounds = target.getBounds();
|
|
62
|
-
return BM2.latLngBounds(
|
|
65
|
+
return BM2.latLngBounds(
|
|
66
|
+
latAndLngCheckExport(bounds.getSouthWest()),
|
|
67
|
+
latAndLngCheckExport(bounds.getNorthEast())
|
|
68
|
+
);
|
|
63
69
|
}
|
|
64
70
|
};
|
|
65
71
|
function latAndLngCheck(item) {
|
|
@@ -795,7 +801,9 @@ class bigMap extends EventEmitter {
|
|
|
795
801
|
const markerItem = rangingMarker[index];
|
|
796
802
|
const isLast = showDeleteAll ?? !rangingMarker[index + 1]?.options?.extData?.distance;
|
|
797
803
|
markerItem.setIcon({
|
|
798
|
-
divIcon: _this.DivIcon(
|
|
804
|
+
divIcon: _this.DivIcon(
|
|
805
|
+
rangingPointIconOption(options, distance, markerItem.options.extData.dicId, isLast)
|
|
806
|
+
)
|
|
799
807
|
});
|
|
800
808
|
markerItem.options.extData.distance = distance;
|
|
801
809
|
}
|
|
@@ -823,7 +831,10 @@ class bigMap extends EventEmitter {
|
|
|
823
831
|
rangingPointsIng.push({ lat, lng });
|
|
824
832
|
} else {
|
|
825
833
|
const latlngs = [
|
|
826
|
-
[
|
|
834
|
+
[
|
|
835
|
+
rangingPointsIng[rangingPointsIng.length - 1].lat,
|
|
836
|
+
rangingPointsIng[rangingPointsIng.length - 1].lng
|
|
837
|
+
],
|
|
827
838
|
[lat, lng]
|
|
828
839
|
];
|
|
829
840
|
const polyline = _this.Polyline(latlngs, {
|
|
@@ -841,7 +852,9 @@ class bigMap extends EventEmitter {
|
|
|
841
852
|
{ lat: latlngs[1][0], lng: latlngs[1][1] }
|
|
842
853
|
);
|
|
843
854
|
distance = parseFloat((distance / 1e3).toFixed(2));
|
|
844
|
-
const total = parseFloat(
|
|
855
|
+
const total = parseFloat(
|
|
856
|
+
rangingMarker[rangingMarker.length - 1].options.extData.distance || 0
|
|
857
|
+
);
|
|
845
858
|
distance = (distance + total).toFixed(2);
|
|
846
859
|
const customIcon = _this.DivIcon(rangingPointIconOption(options, distance, dicId));
|
|
847
860
|
const markerItem = _this.Marker({
|
|
@@ -139,7 +139,10 @@ class Google extends EventEmitter {
|
|
|
139
139
|
const handlers = {
|
|
140
140
|
// return 单位:m
|
|
141
141
|
distance: function(target, latAndlng1, latAndlng2) {
|
|
142
|
-
return AMap.GeometryUtil.distance(
|
|
142
|
+
return AMap.GeometryUtil.distance(
|
|
143
|
+
[latAndlng1.lng, latAndlng1.lat],
|
|
144
|
+
[latAndlng2.lng, latAndlng2.lat]
|
|
145
|
+
);
|
|
143
146
|
},
|
|
144
147
|
// 删除地图
|
|
145
148
|
removeMap: function(target) {
|
|
@@ -63,7 +63,10 @@ const generalMapMethods = {
|
|
|
63
63
|
*/
|
|
64
64
|
getBounds(target) {
|
|
65
65
|
const bounds = target.getBounds();
|
|
66
|
-
return L.latLngBounds(
|
|
66
|
+
return L.latLngBounds(
|
|
67
|
+
latAndLngCheck(bounds.getSouthWest()),
|
|
68
|
+
latAndLngCheck(bounds.getNorthEast())
|
|
69
|
+
);
|
|
67
70
|
},
|
|
68
71
|
/**
|
|
69
72
|
* 包装Map实例
|
|
@@ -80,7 +83,10 @@ const generalMapMethods = {
|
|
|
80
83
|
*/
|
|
81
84
|
getBoundsExport(target) {
|
|
82
85
|
const bounds = target.getBounds();
|
|
83
|
-
return L.latLngBounds(
|
|
86
|
+
return L.latLngBounds(
|
|
87
|
+
latAndLngCheckExport(bounds.getSouthWest()),
|
|
88
|
+
latAndLngCheckExport(bounds.getNorthEast())
|
|
89
|
+
);
|
|
84
90
|
}
|
|
85
91
|
};
|
|
86
92
|
function latAndLngCheck(item) {
|
|
@@ -108,7 +114,8 @@ function latLngListCheck(dataList = []) {
|
|
|
108
114
|
function latLngListCheckExport(dataList = []) {
|
|
109
115
|
return dataList.map((item) => {
|
|
110
116
|
const isArray = Array.isArray(item);
|
|
111
|
-
if (isArray && (item.length === 0 || typeof item[0] === "object"))
|
|
117
|
+
if (isArray && (item.length === 0 || typeof item[0] === "object"))
|
|
118
|
+
return latLngListCheckExport(item);
|
|
112
119
|
const { lat, lng } = latAndLngCheckExport(item);
|
|
113
120
|
return isArray ? [lat, lng] : { ...item, lat, lng };
|
|
114
121
|
});
|
|
@@ -386,7 +393,12 @@ class Leafletjs extends EventEmitter {
|
|
|
386
393
|
}
|
|
387
394
|
// 超图 WMTS 图层(不适用所有的WMTS图层,目前仅支持超图WMTS,因不同的WMTS服务规范不一样,主要体现在路由访问参数)
|
|
388
395
|
createWMTSLayer(map, option = {}) {
|
|
389
|
-
const {
|
|
396
|
+
const {
|
|
397
|
+
url,
|
|
398
|
+
layer,
|
|
399
|
+
tilematrixSet,
|
|
400
|
+
format = "image/png"
|
|
401
|
+
} = typeof option === "string" ? { url: option } : option;
|
|
390
402
|
const crs = getCrs(this.initParams.crs);
|
|
391
403
|
if (!L.WMTSLayer) {
|
|
392
404
|
L.WMTSLayer = L.TileLayer.extend({
|
|
@@ -495,7 +507,9 @@ class Leafletjs extends EventEmitter {
|
|
|
495
507
|
}
|
|
496
508
|
// 地图图层
|
|
497
509
|
layerGroup(map, markers = []) {
|
|
498
|
-
const layerGroup = L.layerGroup(markers.map((item) => item.getInitLayer?.() || item)).addTo(
|
|
510
|
+
const layerGroup = L.layerGroup(markers.map((item) => item.getInitLayer?.() || item)).addTo(
|
|
511
|
+
getInitMap(map)
|
|
512
|
+
);
|
|
499
513
|
const handlers = {
|
|
500
514
|
addLayer: function(target, addItem) {
|
|
501
515
|
return target.addLayer(addItem.getInitLayer?.() || addItem);
|
|
@@ -1017,7 +1031,9 @@ class Leafletjs extends EventEmitter {
|
|
|
1017
1031
|
const markerItem = rangingMarker[index];
|
|
1018
1032
|
const isLast = showDeleteAll ?? !rangingMarker[index + 1]?.options?.extData?.distance;
|
|
1019
1033
|
markerItem.setIcon({
|
|
1020
|
-
divIcon: _this.DivIcon(
|
|
1034
|
+
divIcon: _this.DivIcon(
|
|
1035
|
+
rangingPointIconOption(options, distance, markerItem.options.extData.dicId, isLast)
|
|
1036
|
+
)
|
|
1021
1037
|
});
|
|
1022
1038
|
markerItem.options.extData.distance = distance;
|
|
1023
1039
|
}
|
|
@@ -1045,7 +1061,10 @@ class Leafletjs extends EventEmitter {
|
|
|
1045
1061
|
rangingPointsIng.push({ lat, lng });
|
|
1046
1062
|
} else {
|
|
1047
1063
|
const latlngs = [
|
|
1048
|
-
[
|
|
1064
|
+
[
|
|
1065
|
+
rangingPointsIng[rangingPointsIng.length - 1].lat,
|
|
1066
|
+
rangingPointsIng[rangingPointsIng.length - 1].lng
|
|
1067
|
+
],
|
|
1049
1068
|
[lat, lng]
|
|
1050
1069
|
];
|
|
1051
1070
|
const polyline = _this.Polyline(latlngs, {
|
|
@@ -1063,7 +1082,9 @@ class Leafletjs extends EventEmitter {
|
|
|
1063
1082
|
{ lat: latlngs[1][0], lng: latlngs[1][1] }
|
|
1064
1083
|
);
|
|
1065
1084
|
distance = parseFloat((distance / 1e3).toFixed(2));
|
|
1066
|
-
const total = parseFloat(
|
|
1085
|
+
const total = parseFloat(
|
|
1086
|
+
rangingMarker[rangingMarker.length - 1].options.extData.distance || 0
|
|
1087
|
+
);
|
|
1067
1088
|
distance = (distance + total).toFixed(2);
|
|
1068
1089
|
const customIcon = _this.DivIcon(rangingPointIconOption(options, distance, dicId));
|
|
1069
1090
|
const markerItem = _this.Marker({
|
package/es/utils/map/index.mjs
CHANGED
|
@@ -20,7 +20,9 @@ function useUiComponent(componentName) {
|
|
|
20
20
|
throw new Error(`[useUiComponent] \u7EC4\u4EF6 ${componentName} \u5728 componentsMap \u4E2D\u4E0D\u5B58\u5728`);
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
throw new Error(
|
|
23
|
+
throw new Error(
|
|
24
|
+
`[useUiComponent] useUiComponent('${componentName}') \u9700\u8981\u901A\u8FC7 HyConfigProvider \u63D0\u4F9B componentsMap \u548C versionStore`
|
|
25
|
+
);
|
|
24
26
|
return {
|
|
25
27
|
currentComponentsMap,
|
|
26
28
|
currentVersionStore
|
package/es/version.mjs
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _export_sfc = (sfc, props) => {
|
|
6
|
+
const target = sfc.__vccOpts || sfc;
|
|
7
|
+
for (const [key, val] of props) {
|
|
8
|
+
target[key] = val;
|
|
9
|
+
}
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
exports.default = _export_sfc;
|
|
@@ -32,6 +32,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
32
32
|
useLocale.unregisterComponentLocale("HyDepartmentTypeOperation");
|
|
33
33
|
});
|
|
34
34
|
const $t = (key, option) => useLocale.$t(`HyDepartmentTypeOperation.${key}`, option);
|
|
35
|
+
;
|
|
35
36
|
const emit = __emit;
|
|
36
37
|
function useDepartmentTypeOperation(hy) {
|
|
37
38
|
const { currentBus } = useCurrentBus.useCurrentBus();
|
|
@@ -27,6 +27,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27
27
|
...__default__,
|
|
28
28
|
emits: ["on-submit"],
|
|
29
29
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
30
|
+
;
|
|
30
31
|
useLocale.registerComponentLocale("HyDepartmentTypeOperationTiantonmg", index);
|
|
31
32
|
vue.onUnmounted(() => {
|
|
32
33
|
useLocale.unregisterComponentLocale("HyDepartmentTypeOperationTiantonmg");
|
|
@@ -72,6 +72,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
72
72
|
useLocale.unregisterComponentLocale("HyDisplayQueryAddress");
|
|
73
73
|
});
|
|
74
74
|
const $t = (key, option) => useLocale.$t(`HyDisplayQueryAddress.${key}`, option);
|
|
75
|
+
;
|
|
75
76
|
const props = __props;
|
|
76
77
|
function useDisplayQueryAddress(hy) {
|
|
77
78
|
vue.onMounted(() => {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var en_US = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
failedToGetAddress: "Failed To Get Address",
|
|
7
|
+
querying: "...Querying...",
|
|
8
|
+
queryAddress: "Query Address"
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.default = en_US;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var zh_CN = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
failedToGetAddress: "\u83B7\u53D6\u5730\u5740\u5931\u8D25",
|
|
7
|
+
querying: "...\u67E5\u8BE2\u4E2D...",
|
|
8
|
+
queryAddress: "\u67E5\u8BE2\u5730\u5740"
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.default = zh_CN;
|
|
@@ -39,6 +39,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
39
39
|
},
|
|
40
40
|
setup(__props, { expose: __expose }) {
|
|
41
41
|
const HyMapAearchPlace = useUiComponent.useUiComponent("HyMapAearchPlace");
|
|
42
|
+
;
|
|
42
43
|
const props = __props;
|
|
43
44
|
const { currentBus } = useCurrentBus.useCurrentBus();
|
|
44
45
|
const useAddElectronicFenceDialog = (hy) => {
|
|
@@ -28,6 +28,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
setup(__props, { expose: __expose }) {
|
|
31
|
+
;
|
|
31
32
|
const props = __props;
|
|
32
33
|
const { currentBus } = useCurrentBus.useCurrentBus();
|
|
33
34
|
function useBatchSetElectronicFenceUserDialog(hy) {
|
|
@@ -142,7 +143,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
142
143
|
show,
|
|
143
144
|
submitHandler,
|
|
144
145
|
onSubmit
|
|
145
|
-
} = useMixins.useMixins({ currentBus }, [
|
|
146
|
+
} = useMixins.useMixins({ currentBus }, [
|
|
147
|
+
useDialog.useDialog,
|
|
148
|
+
useDialog.useDialogIsEdit,
|
|
149
|
+
useDialog.useBatchDialog,
|
|
150
|
+
useBatchSetElectronicFenceUserDialog
|
|
151
|
+
]);
|
|
146
152
|
__expose({
|
|
147
153
|
show,
|
|
148
154
|
setIsEdit,
|
|
@@ -37,6 +37,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
37
37
|
},
|
|
38
38
|
emits: ["onSubmit"],
|
|
39
39
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
40
|
+
;
|
|
40
41
|
const props = __props;
|
|
41
42
|
const emits = __emit;
|
|
42
43
|
const useElectronicFenceAssociatedUsersDialog = (hy) => {
|
|
@@ -24,8 +24,14 @@ const __default__ = vue.defineComponent({
|
|
|
24
24
|
});
|
|
25
25
|
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
26
26
|
props: {},
|
|
27
|
-
emits: [
|
|
27
|
+
emits: [
|
|
28
|
+
"on-add",
|
|
29
|
+
"on-edit",
|
|
30
|
+
"on-associated-users",
|
|
31
|
+
"on-batch-associated-users"
|
|
32
|
+
],
|
|
28
33
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
34
|
+
;
|
|
29
35
|
const props = __props;
|
|
30
36
|
const emits = __emit;
|
|
31
37
|
const { currentBus } = useCurrentBus.useCurrentBus();
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var en_US = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
fileNumber: "File Number",
|
|
7
|
+
videoDuration: "Video Duration",
|
|
8
|
+
fileName: "File Name",
|
|
9
|
+
resolution: "Resolution",
|
|
10
|
+
creationTime: "Creation Time",
|
|
11
|
+
fileSize: "File Size",
|
|
12
|
+
collectionTime: "Collection Time",
|
|
13
|
+
deviceNumber: "Device Number",
|
|
14
|
+
deviceName: "Device Name",
|
|
15
|
+
workNumber: "Work Number",
|
|
16
|
+
collectionStationIP: "Collection Station IP",
|
|
17
17
|
"userName-0": "User Name",
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
deviceCode: "Device Code",
|
|
19
|
+
detectionIsCorrect: "Detection Is Correct",
|
|
20
|
+
audioDuration: "Audio Duration",
|
|
21
|
+
equipmentNumber: "Device Number:",
|
|
22
|
+
shootingTime: "Shooting Time",
|
|
23
|
+
clickTheImageToDisplayInFullScreen: "Click The Image To Display In Full Screen"
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
exports.default = en_US;
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var zh_CN = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
fileNumber: "\u6587\u4EF6\u7F16\u53F7",
|
|
7
|
+
videoDuration: "\u89C6\u9891\u65F6\u957F",
|
|
8
|
+
fileName: "\u6587\u4EF6\u540D\u79F0",
|
|
9
|
+
resolution: "\u5206\u8FA8\u7387",
|
|
10
|
+
creationTime: "\u521B\u5EFA\u65F6\u95F4",
|
|
11
|
+
fileSize: "\u6587\u4EF6\u5927\u5C0F",
|
|
12
|
+
collectionTime: "\u91C7\u96C6\u65F6\u95F4",
|
|
13
|
+
deviceNumber: "\u8BBE\u5907\u7F16\u53F7",
|
|
14
|
+
deviceName: "\u8BBE\u5907\u540D\u79F0",
|
|
15
|
+
workNumber: "\u5DE5\u53F7",
|
|
16
|
+
collectionStationIP: "\u91C7\u96C6\u7AD9IP",
|
|
17
17
|
"userName-0": "\u7528\u6237\u540D\u79F0",
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
deviceCode: "\u8BBE\u5907\u7F16\u7801",
|
|
19
|
+
detectionIsCorrect: "\u68C0\u6D4B\u6B63\u786E",
|
|
20
|
+
audioDuration: "\u97F3\u9891\u65F6\u957F",
|
|
21
|
+
equipmentNumber: "\u8BBE\u5907\u7F16\u53F7\uFF1A",
|
|
22
|
+
shootingTime: "\u62CD\u6444\u65F6\u95F4",
|
|
23
|
+
clickTheImageToDisplayInFullScreen: "\u70B9\u51FB\u56FE\u7247\uFF0C\u5373\u53EF\u5168\u5C4F\u5C55\u793A"
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
exports.default = zh_CN;
|
|
@@ -26,6 +26,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
26
26
|
props: {},
|
|
27
27
|
emits: ["on-add", "on-edit", "on-rule-assign", "on-set-aggregation-alarm"],
|
|
28
28
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
29
|
+
;
|
|
29
30
|
const props = __props;
|
|
30
31
|
const emits = __emit;
|
|
31
32
|
const tabList = vue.ref([]);
|
|
@@ -41,7 +41,7 @@ const _sfc_main = {
|
|
|
41
41
|
vue.createElementVNode("div", {
|
|
42
42
|
class: "w-20 flex-shrink-0 text-auxiliary",
|
|
43
43
|
style: { "text-align-last": "justify" }
|
|
44
|
-
}, "\u8BBE\u5907\u540D\u79F0"),
|
|
44
|
+
}, " \u8BBE\u5907\u540D\u79F0 "),
|
|
45
45
|
vue.createElementVNode("span", { class: "text-auxiliary" }, ":"),
|
|
46
46
|
vue.createElementVNode(
|
|
47
47
|
"span",
|
|
@@ -58,7 +58,7 @@ const _sfc_main = {
|
|
|
58
58
|
vue.createElementVNode("div", {
|
|
59
59
|
class: "w-20 flex-shrink-0 text-auxiliary",
|
|
60
60
|
style: { "text-align-last": "justify" }
|
|
61
|
-
}, "\uFF29\uFF2D\uFF25\uFF29"),
|
|
61
|
+
}, " \uFF29\uFF2D\uFF25\uFF29 "),
|
|
62
62
|
vue.createElementVNode("span", { class: "text-auxiliary" }, ":"),
|
|
63
63
|
vue.createElementVNode(
|
|
64
64
|
"span",
|
|
@@ -75,7 +75,7 @@ const _sfc_main = {
|
|
|
75
75
|
vue.createElementVNode("div", {
|
|
76
76
|
class: "w-20 flex-shrink-0 text-auxiliary",
|
|
77
77
|
style: { "text-align-last": "justify" }
|
|
78
|
-
}, "\u5F53\u524D\u7528\u6237"),
|
|
78
|
+
}, " \u5F53\u524D\u7528\u6237 "),
|
|
79
79
|
vue.createElementVNode("span", { class: "text-auxiliary" }, ":"),
|
|
80
80
|
vue.createElementVNode(
|
|
81
81
|
"span",
|
|
@@ -84,16 +84,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
84
84
|
},
|
|
85
85
|
emits: [],
|
|
86
86
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
87
|
+
;
|
|
87
88
|
const props = __props;
|
|
88
89
|
const emits = __emit;
|
|
89
|
-
const {
|
|
90
|
-
selDeviceList,
|
|
91
|
-
hyDeviceTreeRef,
|
|
92
|
-
deleteFn,
|
|
93
|
-
onCheckTreeFn,
|
|
94
|
-
clearAllFn,
|
|
95
|
-
getData
|
|
96
|
-
} = useMixins.useMixins({ props, emits }, [index.useHySelectDeviceTree]);
|
|
90
|
+
const { selDeviceList, hyDeviceTreeRef, deleteFn, onCheckTreeFn, clearAllFn, getData } = useMixins.useMixins({ props, emits }, [index.useHySelectDeviceTree]);
|
|
97
91
|
__expose({
|
|
98
92
|
getData
|
|
99
93
|
});
|
|
@@ -91,8 +91,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
91
91
|
type: Function
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
emits: [
|
|
94
|
+
emits: [
|
|
95
|
+
"canplay",
|
|
96
|
+
"timeupdate",
|
|
97
|
+
"play-start",
|
|
98
|
+
"play-ended",
|
|
99
|
+
"play-previous",
|
|
100
|
+
"play-next"
|
|
101
|
+
],
|
|
95
102
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
103
|
+
;
|
|
96
104
|
const props = __props;
|
|
97
105
|
const emits = __emit;
|
|
98
106
|
const audioWrapperRef = vue.useTemplateRef("audioWrapperRef");
|
|
@@ -118,6 +118,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
118
118
|
"onDialogMousedown"
|
|
119
119
|
], ["update:modelValue"]),
|
|
120
120
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
121
|
+
;
|
|
121
122
|
const props = __props;
|
|
122
123
|
const emits = __emit;
|
|
123
124
|
const batchTableFormRef = vue.useTemplateRef("batchTableFormRef");
|
|
@@ -39,6 +39,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
39
39
|
}),
|
|
40
40
|
emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:modelValue"]),
|
|
41
41
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
42
|
+
;
|
|
42
43
|
const props = __props;
|
|
43
44
|
const emits = __emit;
|
|
44
45
|
const modelValue = vue.useModel(__props, "modelValue");
|