hy-dispatch-ui-v3 0.2.65 → 0.2.67
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 +51 -13
- package/es/api/organization.mjs +43 -0
- package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.mjs +245 -0
- package/es/bussiness/hyAcquisitionStationTree/index.mjs +7 -0
- package/es/bussiness/hyAcquisitionStationTree/js/index.mjs +124 -0
- package/es/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
- package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +249 -0
- package/es/bussiness/hyDeviceTree/index.mjs +7 -0
- package/es/bussiness/hyDeviceTree/js/index.mjs +126 -0
- package/es/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
- package/es/bussiness/hyOrgGroupTree/index.mjs +7 -0
- package/es/bussiness/hyOrgGroupTree/js/index.mjs +124 -0
- package/es/bussiness/hyOrgGroupTree/orgGroupTree.vue.mjs +245 -0
- package/es/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
- package/es/bussiness/hyPlanGroupDeviceTree/index.mjs +7 -0
- package/es/bussiness/hyPlanGroupDeviceTree/js/index.mjs +124 -0
- package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.mjs +245 -0
- package/es/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
- package/es/bussiness/hyUserTree/index.mjs +7 -0
- package/es/bussiness/hyUserTree/js/index.mjs +126 -0
- package/es/bussiness/hyUserTree/style/userTree.scss +0 -0
- package/es/bussiness/hyUserTree/userTree.vue.mjs +239 -0
- package/es/bussiness/index.mjs +5 -0
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +183 -149
- package/es/components/hyButton/button.vue.mjs +19 -5
- package/es/components/hyButton/style/button.scss +72 -0
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -2
- package/es/components/hyForm/cpns/formItem.vue.mjs +254 -32
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +8 -1
- package/es/components/hyForm/form.vue.mjs +88 -19
- package/es/components/hyForm/js/index.mjs +2 -1
- package/es/components/hyForm/js/useAppForm.mjs +3 -3
- package/es/components/hyIcon/style/icon.scss +1 -0
- package/es/components/hyMap/js/index.mjs +6 -6
- package/es/components/hyMap/map.vue.mjs +14 -4
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +75 -15
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +5 -4
- package/es/components/hySearch/cpns/searchItem.vue.mjs +434 -206
- package/es/components/hySearch/js/index.mjs +2 -1
- package/es/components/hySearch/search.vue.mjs +71 -10
- package/es/components/hySearch/style/search.scss +7 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +21 -22
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +35 -21
- package/es/components/hyTable/js/index.mjs +16 -17
- package/es/components/hyTable/js/search.mjs +28 -2
- package/es/components/hyTable/style/table.scss +13 -0
- package/es/components/hyTable/table.vue.mjs +55 -22
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +17 -12
- package/es/components/hyTableForm/batchTableForm.vue.mjs +36 -5
- package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
- package/es/components/hyTableForm/tableForm.vue.mjs +84 -32
- package/es/components/hyTour/index.mjs +7 -0
- package/es/components/hyTour/style/tour.scss +0 -0
- package/es/components/hyTour/tour.vue.mjs +23 -0
- package/es/components/hyTree/config/tree-config.mjs +5 -2
- package/es/components/hyTree/js/index.mjs +128 -56
- package/es/components/hyTree/tree.vue.mjs +22 -37
- package/es/components/index.mjs +1 -0
- package/es/index.mjs +6 -0
- package/es/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
- package/es/style/element/hy-element.scss +24 -3
- package/es/style/index.scss +0 -1
- package/es/style/tailwind.scss +0 -1
- package/es/style/theme.scss +1 -0
- package/es/utils/is.mjs +3 -1
- package/es/utils/map/hook/bigMap.mjs +11 -1
- package/es/utils/map/hook/gaode.mjs +60 -17
- package/es/utils/map/hook/leafletjs.mjs +25 -4
- package/es/utils/map/index.mjs +1 -1
- package/es/version.mjs +1 -1
- package/lib/api/organization.js +47 -0
- package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.js +249 -0
- package/lib/bussiness/hyAcquisitionStationTree/index.js +12 -0
- package/lib/bussiness/hyAcquisitionStationTree/js/index.js +126 -0
- package/lib/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
- package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +253 -0
- package/lib/bussiness/hyDeviceTree/index.js +12 -0
- package/lib/bussiness/hyDeviceTree/js/index.js +128 -0
- package/lib/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
- package/lib/bussiness/hyOrgGroupTree/index.js +12 -0
- package/lib/bussiness/hyOrgGroupTree/js/index.js +126 -0
- package/lib/bussiness/hyOrgGroupTree/orgGroupTree.vue.js +249 -0
- package/lib/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/index.js +12 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/js/index.js +126 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.js +249 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
- package/lib/bussiness/hyUserTree/index.js +12 -0
- package/lib/bussiness/hyUserTree/js/index.js +128 -0
- package/lib/bussiness/hyUserTree/style/userTree.scss +0 -0
- package/lib/bussiness/hyUserTree/userTree.vue.js +243 -0
- package/lib/bussiness/index.js +14 -4
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +182 -148
- package/lib/components/hyButton/button.vue.js +18 -4
- package/lib/components/hyButton/style/button.scss +72 -0
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +0 -1
- package/lib/components/hyForm/cpns/formItem.vue.js +250 -28
- package/lib/components/hyForm/cpns/locationSelect.vue.js +8 -1
- package/lib/components/hyForm/form.vue.js +86 -17
- package/lib/components/hyForm/js/index.js +2 -0
- package/lib/components/hyForm/js/useAppForm.js +3 -3
- package/lib/components/hyIcon/style/icon.scss +1 -0
- package/lib/components/hyMap/js/index.js +5 -5
- package/lib/components/hyMap/map.vue.js +13 -3
- package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
- package/lib/components/hyOrgCascader/orgCascader.vue.js +73 -13
- package/lib/components/hyRadioGroup/radioGroup.vue.js +5 -4
- package/lib/components/hySearch/cpns/searchItem.vue.js +431 -203
- package/lib/components/hySearch/js/index.js +2 -0
- package/lib/components/hySearch/search.vue.js +69 -8
- package/lib/components/hySearch/style/search.scss +7 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +20 -21
- package/lib/components/hyTable/cpns/virtualTable.vue.js +51 -37
- package/lib/components/hyTable/js/index.js +16 -16
- package/lib/components/hyTable/js/search.js +28 -2
- package/lib/components/hyTable/style/table.scss +13 -0
- package/lib/components/hyTable/table.vue.js +53 -20
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +16 -11
- package/lib/components/hyTableForm/batchTableForm.vue.js +36 -5
- package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
- package/lib/components/hyTableForm/tableForm.vue.js +85 -33
- package/lib/components/hyTour/index.js +12 -0
- package/lib/components/hyTour/style/tour.scss +0 -0
- package/lib/components/hyTour/tour.vue.js +27 -0
- package/lib/components/hyTree/config/tree-config.js +5 -2
- package/lib/components/hyTree/js/index.js +128 -56
- package/lib/components/hyTree/tree.vue.js +22 -37
- package/lib/components/index.js +8 -6
- package/lib/index.js +67 -55
- package/lib/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
- package/lib/style/element/hy-element.scss +24 -3
- package/lib/style/index.scss +0 -1
- package/lib/style/tailwind.scss +0 -1
- package/lib/style/theme.scss +1 -0
- package/lib/utils/is.js +5 -3
- package/lib/utils/map/hook/bigMap.js +11 -1
- package/lib/utils/map/hook/gaode.js +60 -17
- package/lib/utils/map/hook/leafletjs.js +25 -4
- package/lib/utils/map/index.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -12,32 +12,38 @@ var index$1 = require('./components/hyInput/index.js');
|
|
|
12
12
|
var index$2 = require('./components/hyLoading/index.js');
|
|
13
13
|
var index$3 = require('./components/hyTimePicker/index.js');
|
|
14
14
|
var index$4 = require('./components/hyTooltip/index.js');
|
|
15
|
-
var index$5 = require('./bussiness/
|
|
16
|
-
var index$6 = require('./
|
|
17
|
-
var index$7 = require('./components/
|
|
18
|
-
var index$8 = require('./components/
|
|
19
|
-
var index$9 = require('./components/
|
|
20
|
-
var index$a = require('./components/
|
|
21
|
-
var index$b = require('./components/
|
|
22
|
-
var index$c = require('./components/
|
|
23
|
-
var index$d = require('./components/
|
|
24
|
-
var index$e = require('./
|
|
25
|
-
var index$f = require('./components/
|
|
26
|
-
var index$g = require('./components/
|
|
27
|
-
var index$h = require('./components/
|
|
28
|
-
var index$i = require('./
|
|
29
|
-
var index$j = require('./components/
|
|
30
|
-
var index$k = require('./
|
|
31
|
-
var index$l = require('./components/
|
|
32
|
-
var index$m = require('./components/
|
|
33
|
-
var index$n = require('./components/
|
|
34
|
-
var index$o = require('./components/
|
|
35
|
-
var index$p = require('./
|
|
36
|
-
var index$q = require('./
|
|
37
|
-
var index$r = require('./components/
|
|
38
|
-
var index$s = require('./components/
|
|
39
|
-
var index$t = require('./components/
|
|
40
|
-
var index$u = require('./
|
|
15
|
+
var index$5 = require('./bussiness/hyAcquisitionStationTree/index.js');
|
|
16
|
+
var index$6 = require('./bussiness/hyAddDepartmentType/index.js');
|
|
17
|
+
var index$7 = require('./components/hyAudioPlayer/index.js');
|
|
18
|
+
var index$8 = require('./components/hyTableForm/index.js');
|
|
19
|
+
var index$9 = require('./components/hyBatchUploadDialog/index.js');
|
|
20
|
+
var index$a = require('./components/hyButton/index.js');
|
|
21
|
+
var index$b = require('./components/hyConfigProvider/index.js');
|
|
22
|
+
var index$c = require('./components/hyConfirmDialog/index.js');
|
|
23
|
+
var index$d = require('./components/hyCutter/index.js');
|
|
24
|
+
var index$e = require('./bussiness/hyDeviceTree/index.js');
|
|
25
|
+
var index$f = require('./components/hyDialog/index.js');
|
|
26
|
+
var index$g = require('./components/hyForm/index.js');
|
|
27
|
+
var index$h = require('./components/hyIcon/index.js');
|
|
28
|
+
var index$i = require('./components/hyIconBox/index.js');
|
|
29
|
+
var index$j = require('./components/hyMap/index.js');
|
|
30
|
+
var index$k = require('./bussiness/hyMapAearchPlace/index.js');
|
|
31
|
+
var index$l = require('./components/hyMenu/index.js');
|
|
32
|
+
var index$m = require('./components/hyNoPermissions/index.js');
|
|
33
|
+
var index$n = require('./components/hyNoPermissionsMap/index.js');
|
|
34
|
+
var index$o = require('./components/hyOrgCascader/index.js');
|
|
35
|
+
var index$p = require('./bussiness/hyOrgGroupTree/index.js');
|
|
36
|
+
var index$q = require('./bussiness/hyPlanGroupDeviceTree/index.js');
|
|
37
|
+
var index$r = require('./components/hyRadioGroup/index.js');
|
|
38
|
+
var index$s = require('./components/hySearch/index.js');
|
|
39
|
+
var index$t = require('./components/hyTable/index.js');
|
|
40
|
+
var index$u = require('./components/hyTableActionButton/index.js');
|
|
41
|
+
var index$v = require('./components/hyTour/index.js');
|
|
42
|
+
var index$w = require('./components/hyTree/index.js');
|
|
43
|
+
var index$x = require('./components/hyUserAvatar/index.js');
|
|
44
|
+
var index$y = require('./bussiness/hyUserTree/index.js');
|
|
45
|
+
var index$z = require('./components/hyVideoPlayer/index.js');
|
|
46
|
+
var index$A = require('./utils/map/index.js');
|
|
41
47
|
var permission = require('./utils/permission.js');
|
|
42
48
|
var crypto = require('./utils/crypto.js');
|
|
43
49
|
var file = require('./utils/file.js');
|
|
@@ -83,35 +89,41 @@ exports.ElTimePicker = index$3.ElTimePicker;
|
|
|
83
89
|
exports.HyTimePicker = index$3.HyTimePicker;
|
|
84
90
|
exports.ElTooltip = index$4.ElTooltip;
|
|
85
91
|
exports.HyTooltip = index$4.HyTooltip;
|
|
86
|
-
exports.
|
|
87
|
-
exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
90
|
-
exports.
|
|
91
|
-
exports.
|
|
92
|
-
exports.
|
|
93
|
-
exports.
|
|
94
|
-
exports.
|
|
95
|
-
exports.
|
|
96
|
-
exports.
|
|
97
|
-
exports.
|
|
98
|
-
exports.
|
|
99
|
-
exports.
|
|
100
|
-
exports.
|
|
101
|
-
exports.
|
|
102
|
-
exports.
|
|
103
|
-
exports.
|
|
104
|
-
exports.
|
|
105
|
-
exports.
|
|
106
|
-
exports.
|
|
107
|
-
exports.
|
|
108
|
-
exports.
|
|
109
|
-
exports.
|
|
110
|
-
exports.
|
|
111
|
-
exports.
|
|
112
|
-
exports.
|
|
113
|
-
exports.
|
|
114
|
-
exports.
|
|
92
|
+
exports.HyAcquisitionStationTree = index$5.HyAcquisitionStationTree;
|
|
93
|
+
exports.HyAddDepartmentType = index$6.HyAddDepartmentType;
|
|
94
|
+
exports.HyAudioPlayer = index$7.HyAudioPlayer;
|
|
95
|
+
exports.HyBatchTableForm = index$8.HyBatchTableForm;
|
|
96
|
+
exports.HyTableForm = index$8.HyTableForm;
|
|
97
|
+
exports.HyBatchUploadDialog = index$9.HyBatchUploadDialog;
|
|
98
|
+
exports.HyButton = index$a.HyButton;
|
|
99
|
+
exports.HyConfigProvider = index$b.HyConfigProvider;
|
|
100
|
+
exports.HyConfirmDialog = index$c.HyConfirmDialog;
|
|
101
|
+
exports.HyCutter = index$d.HyCutter;
|
|
102
|
+
exports.HyDeviceTree = index$e.HyDeviceTree;
|
|
103
|
+
exports.HyDialog = index$f.HyDialog;
|
|
104
|
+
exports.HyForm = index$g.HyForm;
|
|
105
|
+
exports.HyIcon = index$h.HyIcon;
|
|
106
|
+
exports.HyIconBox = index$i.HyIconBox;
|
|
107
|
+
exports.HyMap = index$j.HyMap;
|
|
108
|
+
exports.HyMapAearchPlace = index$k.HyMapAearchPlace;
|
|
109
|
+
exports.HyMenu = index$l.HyMenu;
|
|
110
|
+
exports.HyNoPermissions = index$m.HyNoPermissions;
|
|
111
|
+
exports.HyNoPermissionsMap = index$n.HyNoPermissionsMap;
|
|
112
|
+
exports.HyOrgCascader = index$o.HyOrgCascader;
|
|
113
|
+
exports.HyOrgGroupTree = index$p.HyOrgGroupTree;
|
|
114
|
+
exports.HyPlanGroupDeviceTree = index$q.HyPlanGroupDeviceTree;
|
|
115
|
+
exports.HyRadioGroup = index$r.HyRadioGroup;
|
|
116
|
+
exports.HySearch = index$s.HySearch;
|
|
117
|
+
exports.HyTable = index$t.HyTable;
|
|
118
|
+
exports.HyTableActionButton = index$u.HyTableActionButton;
|
|
119
|
+
exports.HyTour = index$v.HyTour;
|
|
120
|
+
exports.HyTree = index$w.HyTree;
|
|
121
|
+
exports.HyUserAvatar = index$x.HyUserAvatar;
|
|
122
|
+
exports.HyUserTree = index$y.HyUserTree;
|
|
123
|
+
exports.HyVideoPlayer = index$z.HyVideoPlayer;
|
|
124
|
+
exports.InitMap = index$A.InitMap;
|
|
125
|
+
exports.setMapServer = index$A.setMapServer;
|
|
126
|
+
exports.setPoiServer = index$A.setPoiServer;
|
|
115
127
|
exports.PERMISSION = permission.PERMISSION;
|
|
116
128
|
exports.base64Decrypt = crypto.base64Decrypt;
|
|
117
129
|
exports.encryptToBase64 = crypto.encryptToBase64;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
id: 'hy-icon-ops-linear-arrow',
|
|
3
|
+
symbol: `<symbol id="hy-icon-ops-linear-arrow" viewBox="0 0 6 6">
|
|
4
|
+
<g id="hy-icon-ops-linear-arrow-部门管理" stroke="none" stroke-width="1" fill-rule="evenodd">
|
|
5
|
+
<g id="hy-icon-ops-linear-arrow-缩小化-组件说明-清除" transform="translate(-524, -155)" fill-rule="nonzero">
|
|
6
|
+
<path d="M527.5474,155.206715 C527.421954,155.075391 527.249559,155.000932 527.069246,155.000193 C526.890413,154.995823 526.717619,155.065901 526.591092,155.19411 L524.200321,157.582204 C523.936243,157.845664 523.932818,158.276291 524.19267,158.544035 C524.452522,158.811779 524.877251,158.815252 525.141328,158.551792 L526.384529,157.302963 L526.384529,160.321289 C526.384529,160.696131 526.684237,161 527.053945,161 C527.423653,161 527.723361,160.696131 527.723361,160.321289 L527.723361,157.358229 L528.848936,158.539187 C529.015151,158.7136 529.260514,158.784857 529.492599,158.726117 C529.724684,158.667378 529.908231,158.487565 529.974101,158.254413 C530.03997,158.021261 529.978154,157.770191 529.811938,157.595778 L527.5474,155.206715 Z" id="hy-icon-ops-linear-arrow-Arrow"></path>
|
|
7
|
+
</g>
|
|
8
|
+
</g>
|
|
9
|
+
</symbol>`,
|
|
10
|
+
};
|
|
@@ -1002,11 +1002,32 @@
|
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
|
+
.hy-el-notification {
|
|
1006
|
+
--hy-el-notification-title-color: rgba(var(--hy-main), 1);
|
|
1007
|
+
--hy-el-notification-content-color: rgba(var(--hy-main), 1);
|
|
1008
|
+
--hy-el-notification-close-color: rgba(var(--hy-main), 1);
|
|
1009
|
+
background: rgba(var(--hy-background-2), 1);
|
|
1010
|
+
}
|
|
1005
1011
|
|
|
1006
|
-
|
|
1007
|
-
.hy-el-
|
|
1008
|
-
|
|
1012
|
+
.hy-el-tour {
|
|
1013
|
+
.hy-el-tour__hollow {
|
|
1014
|
+
fill: rgba(0, 0, 0, 0.9) !important;
|
|
1015
|
+
}
|
|
1016
|
+
.hy-el-tour__content {
|
|
1017
|
+
border: 1px solid rgba(var(--hy-theme), 1);
|
|
1018
|
+
}
|
|
1019
|
+
.hy-el-tour__arrow {
|
|
1020
|
+
border: 1px solid rgba(var(--hy-theme), 1);
|
|
1021
|
+
}
|
|
1022
|
+
.hy-el-tour__title {
|
|
1023
|
+
color: rgba(var(--hy-main), 1);
|
|
1024
|
+
font-weight: bold;
|
|
1025
|
+
}
|
|
1026
|
+
.hy-el-tour__body {
|
|
1009
1027
|
color: rgba(var(--hy-main), 1);
|
|
1010
1028
|
}
|
|
1029
|
+
.hy-el-tour__footer {
|
|
1030
|
+
display: none;
|
|
1031
|
+
}
|
|
1011
1032
|
}
|
|
1012
1033
|
|
package/lib/style/index.scss
CHANGED
package/lib/style/tailwind.scss
CHANGED
package/lib/style/theme.scss
CHANGED
package/lib/utils/is.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
require('../hooks/index.js');
|
|
5
|
+
require('./index.js');
|
|
5
6
|
var usePermissionMap = require('../hooks/usePermissionMap.js');
|
|
7
|
+
var permission = require('./permission.js');
|
|
6
8
|
|
|
7
9
|
const isString = (e) => typeof e === "string";
|
|
8
10
|
const isNumber = (e) => typeof e === "number";
|
|
@@ -42,12 +44,12 @@ function isSupportH265() {
|
|
|
42
44
|
}
|
|
43
45
|
return { isSupport, isVersionLow };
|
|
44
46
|
}
|
|
45
|
-
function isPermission(permission) {
|
|
47
|
+
function isPermission(permission$1) {
|
|
46
48
|
const { permissionMap } = usePermissionMap.usePermissionMap();
|
|
47
|
-
if (!permission) {
|
|
49
|
+
if (!permission$1) {
|
|
48
50
|
return true;
|
|
49
51
|
}
|
|
50
|
-
return permissionMap.value.has(permission);
|
|
52
|
+
return permissionMap.value.has(permission.PERMISSION[`${permission$1}`]);
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
exports.isArray = isArray;
|
|
@@ -347,6 +347,8 @@ class bigMap extends events.EventEmitter {
|
|
|
347
347
|
off: function(target, types, fn, context) {
|
|
348
348
|
const wrappedFn = wrappedHandlers.take(types, fn);
|
|
349
349
|
return target.off(types, wrappedFn || fn, context);
|
|
350
|
+
},
|
|
351
|
+
satelliteMapFn: function() {
|
|
350
352
|
}
|
|
351
353
|
};
|
|
352
354
|
return mapProxy.createMapProxy(newMap, handlers);
|
|
@@ -355,7 +357,15 @@ class bigMap extends events.EventEmitter {
|
|
|
355
357
|
layerGroup(map, markers = []) {
|
|
356
358
|
const layerGroup = this.BM.layerGroup(markers);
|
|
357
359
|
layerGroup.addTo(map);
|
|
358
|
-
|
|
360
|
+
const handlers = {
|
|
361
|
+
addLayer: function(target, addItem) {
|
|
362
|
+
return target.addLayer(addItem);
|
|
363
|
+
},
|
|
364
|
+
clearLayers: function(target) {
|
|
365
|
+
return target.clearLayers();
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
return mapProxy.createMapProxy(layerGroup, handlers);
|
|
359
369
|
}
|
|
360
370
|
// 自定义图标
|
|
361
371
|
DivIcon(option) {
|
|
@@ -98,6 +98,7 @@ class Google extends events.EventEmitter {
|
|
|
98
98
|
return mapProxy.createMapProxy(polygon, handlers);
|
|
99
99
|
});
|
|
100
100
|
this.initParams = request;
|
|
101
|
+
this.layerSateGroup = null;
|
|
101
102
|
}
|
|
102
103
|
InitMap(domId, option) {
|
|
103
104
|
const { center } = option;
|
|
@@ -114,24 +115,33 @@ class Google extends events.EventEmitter {
|
|
|
114
115
|
resizeEnable: true
|
|
115
116
|
});
|
|
116
117
|
newMap.on("complete", (e) => {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
newMap.plugin(
|
|
119
|
+
[
|
|
120
|
+
"AMap.MarkerClusterer",
|
|
121
|
+
"AMap.Scale",
|
|
122
|
+
"AMap.LayerGroup",
|
|
123
|
+
"AMap.Circle",
|
|
124
|
+
"AMap.TileLayer",
|
|
125
|
+
"AMap.GeometryUtil",
|
|
126
|
+
"AMap.MouseTool"
|
|
127
|
+
],
|
|
128
|
+
() => {
|
|
129
|
+
this.layerSateGroup = new window.AMap.LayerGroup([
|
|
130
|
+
new window.AMap.TileLayer.Satellite()
|
|
131
|
+
]);
|
|
132
|
+
this.layerSateGroup.setMap(newMap);
|
|
133
|
+
this.layerSateGroup.hide();
|
|
134
|
+
setTimeout(() => {
|
|
135
|
+
this.satelliteMapFn(newMap, option.satelliteMap);
|
|
136
|
+
if (option.completeCallbacks) {
|
|
137
|
+
option.completeCallbacks(e);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
);
|
|
120
142
|
});
|
|
121
|
-
newMap.plugin(
|
|
122
|
-
[
|
|
123
|
-
"AMap.MarkerClusterer",
|
|
124
|
-
"AMap.Scale",
|
|
125
|
-
"AMap.LayerGroup",
|
|
126
|
-
"AMap.Circle",
|
|
127
|
-
"AMap.TileLayer",
|
|
128
|
-
"AMap.GeometryUtil",
|
|
129
|
-
"AMap.MouseTool"
|
|
130
|
-
],
|
|
131
|
-
() => {
|
|
132
|
-
}
|
|
133
|
-
);
|
|
134
143
|
const wrappedHandlers = mapProxy.createWrappedHandlerStore();
|
|
144
|
+
const _this = this;
|
|
135
145
|
const handlers = {
|
|
136
146
|
// return 单位:m
|
|
137
147
|
distance: function(target, latAndlng1, latAndlng2) {
|
|
@@ -182,15 +192,48 @@ class Google extends events.EventEmitter {
|
|
|
182
192
|
// // 四个角
|
|
183
193
|
getBounds: function(target) {
|
|
184
194
|
return wrapBounds(target);
|
|
195
|
+
},
|
|
196
|
+
/* 判断地图颜色 */
|
|
197
|
+
satelliteMapFn: function(target, satelliteMap) {
|
|
198
|
+
if (satelliteMap === 3) {
|
|
199
|
+
_this.layerSateGroup.show();
|
|
200
|
+
} else {
|
|
201
|
+
if (satelliteMap === 1) {
|
|
202
|
+
target.setMapStyle(_this.initParams.defaultMapStyle);
|
|
203
|
+
} else {
|
|
204
|
+
target.setMapStyle(_this.initParams.currencyMapStyle);
|
|
205
|
+
}
|
|
206
|
+
_this.layerSateGroup.hide();
|
|
207
|
+
}
|
|
185
208
|
}
|
|
186
209
|
};
|
|
187
210
|
return mapProxy.createMapProxy(newMap, handlers);
|
|
188
211
|
}
|
|
212
|
+
satelliteMapFn(map, satelliteMap) {
|
|
213
|
+
if (satelliteMap === 3) {
|
|
214
|
+
this.layerSateGroup.show();
|
|
215
|
+
} else {
|
|
216
|
+
if (satelliteMap === 1) {
|
|
217
|
+
map.setMapStyle(this.initParams.defaultMapStyle);
|
|
218
|
+
} else {
|
|
219
|
+
map.setMapStyle(this.initParams.currencyMapStyle);
|
|
220
|
+
}
|
|
221
|
+
this.layerSateGroup.hide();
|
|
222
|
+
}
|
|
223
|
+
}
|
|
189
224
|
// 地图图层
|
|
190
225
|
layerGroup(map, markers = []) {
|
|
191
226
|
const layerGroup = new window.AMap.LayerGroup(markers);
|
|
192
227
|
layerGroup.setMap(map);
|
|
193
|
-
|
|
228
|
+
const handlers = {
|
|
229
|
+
addLayer: function(target, addItem) {
|
|
230
|
+
return target.addLayer(addItem);
|
|
231
|
+
},
|
|
232
|
+
clearLayers: function(target) {
|
|
233
|
+
return target.clearLayers();
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
return mapProxy.createMapProxy(layerGroup, handlers);
|
|
194
237
|
}
|
|
195
238
|
// 自定义图标
|
|
196
239
|
DivIcon(option) {
|
|
@@ -330,6 +330,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
330
330
|
return mapProxy.createMapProxy(polygon, handlers);
|
|
331
331
|
});
|
|
332
332
|
this.initParams = request;
|
|
333
|
+
this.tileLayerList = [];
|
|
333
334
|
}
|
|
334
335
|
// 初始化地图
|
|
335
336
|
InitMap(domId, option) {
|
|
@@ -349,6 +350,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
349
350
|
const newMap = L.map(domId, option);
|
|
350
351
|
newMap.getInitMap = () => newMap;
|
|
351
352
|
const wrappedHandlers = mapProxy.createWrappedHandlerStore();
|
|
353
|
+
const _this = this;
|
|
352
354
|
const handlers = {
|
|
353
355
|
// 删除地图
|
|
354
356
|
removeMap: function(target, params) {
|
|
@@ -424,6 +426,10 @@ class Leafletjs extends events.EventEmitter {
|
|
|
424
426
|
off: function(target, types, fn, context) {
|
|
425
427
|
const wrappedFn = wrappedHandlers.take(types, fn);
|
|
426
428
|
return target.off(types, wrappedFn || fn, context);
|
|
429
|
+
},
|
|
430
|
+
/* 判断地图颜色 */
|
|
431
|
+
satelliteMapFn: function(target, satelliteMap) {
|
|
432
|
+
_this.setLayersUrl(target, satelliteMap !== 2);
|
|
427
433
|
}
|
|
428
434
|
};
|
|
429
435
|
const map = mapProxy.createMapProxy(newMap, handlers);
|
|
@@ -433,7 +439,7 @@ class Leafletjs extends events.EventEmitter {
|
|
|
433
439
|
option.completeCallbacks();
|
|
434
440
|
}
|
|
435
441
|
});
|
|
436
|
-
this.setLayersUrl(map);
|
|
442
|
+
this.setLayersUrl(map, option.satelliteMap !== 2);
|
|
437
443
|
return map;
|
|
438
444
|
}
|
|
439
445
|
// 设置地图瓦片地址
|
|
@@ -448,12 +454,18 @@ class Leafletjs extends events.EventEmitter {
|
|
|
448
454
|
if (mapServerType === "WMTS" || mapServerType === "Dynamic") {
|
|
449
455
|
return this.createLayers(map, layersUrls);
|
|
450
456
|
}
|
|
457
|
+
this.tileLayerList.forEach((tileLayer) => {
|
|
458
|
+
tileLayer?.remove();
|
|
459
|
+
});
|
|
460
|
+
this.tileLayerList = [];
|
|
451
461
|
layersUrls.split(",").forEach((layersUrl) => {
|
|
462
|
+
let tileLayer = null;
|
|
452
463
|
if (changeColorType) {
|
|
453
|
-
this.createCustomLayers(map, layersUrl);
|
|
464
|
+
tileLayer = this.createCustomLayers(map, layersUrl);
|
|
454
465
|
} else {
|
|
455
|
-
this.createLayers(map, layersUrl);
|
|
466
|
+
tileLayer = this.createLayers(map, layersUrl);
|
|
456
467
|
}
|
|
468
|
+
this.tileLayerList.push(tileLayer);
|
|
457
469
|
});
|
|
458
470
|
}
|
|
459
471
|
// 超图 WMTS 图层(不适用所有的WMTS图层,目前仅支持超图WMTS,因不同的WMTS服务规范不一样,主要体现在路由访问参数)
|
|
@@ -574,7 +586,16 @@ class Leafletjs extends events.EventEmitter {
|
|
|
574
586
|
}
|
|
575
587
|
// 地图图层
|
|
576
588
|
layerGroup(map, markers = []) {
|
|
577
|
-
|
|
589
|
+
const layerGroup = L.layerGroup(markers).addTo(getInitMap(map));
|
|
590
|
+
const handlers = {
|
|
591
|
+
addLayer: function(target, addItem) {
|
|
592
|
+
return target.addLayer(addItem);
|
|
593
|
+
},
|
|
594
|
+
clearLayers: function(target) {
|
|
595
|
+
return target.clearLayers();
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
return mapProxy.createMapProxy(layerGroup, handlers);
|
|
578
599
|
}
|
|
579
600
|
// 自定义图标
|
|
580
601
|
DivIcon(option) {
|
package/lib/utils/map/index.js
CHANGED
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hy-dispatch-ui-v3",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.67",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "es/index.mjs",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"events": "^3.3.0",
|
|
31
31
|
"express": "^5.2.1",
|
|
32
32
|
"hy-common": "^0.0.39",
|
|
33
|
-
"hy-virtual-tree": "^2.4.
|
|
33
|
+
"hy-virtual-tree": "^2.4.10",
|
|
34
34
|
"leaflet": "^1.5.1",
|
|
35
35
|
"leaflet-pip": "^1.1.0",
|
|
36
36
|
"leaflet-polylinedecorator": "^1.6.0",
|