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.
Files changed (144) hide show
  1. package/dist/tailwind.css +51 -13
  2. package/es/api/organization.mjs +43 -0
  3. package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.mjs +245 -0
  4. package/es/bussiness/hyAcquisitionStationTree/index.mjs +7 -0
  5. package/es/bussiness/hyAcquisitionStationTree/js/index.mjs +124 -0
  6. package/es/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
  7. package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +249 -0
  8. package/es/bussiness/hyDeviceTree/index.mjs +7 -0
  9. package/es/bussiness/hyDeviceTree/js/index.mjs +126 -0
  10. package/es/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
  11. package/es/bussiness/hyOrgGroupTree/index.mjs +7 -0
  12. package/es/bussiness/hyOrgGroupTree/js/index.mjs +124 -0
  13. package/es/bussiness/hyOrgGroupTree/orgGroupTree.vue.mjs +245 -0
  14. package/es/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
  15. package/es/bussiness/hyPlanGroupDeviceTree/index.mjs +7 -0
  16. package/es/bussiness/hyPlanGroupDeviceTree/js/index.mjs +124 -0
  17. package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.mjs +245 -0
  18. package/es/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
  19. package/es/bussiness/hyUserTree/index.mjs +7 -0
  20. package/es/bussiness/hyUserTree/js/index.mjs +126 -0
  21. package/es/bussiness/hyUserTree/style/userTree.scss +0 -0
  22. package/es/bussiness/hyUserTree/userTree.vue.mjs +239 -0
  23. package/es/bussiness/index.mjs +5 -0
  24. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +183 -149
  25. package/es/components/hyButton/button.vue.mjs +19 -5
  26. package/es/components/hyButton/style/button.scss +72 -0
  27. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -2
  28. package/es/components/hyForm/cpns/formItem.vue.mjs +254 -32
  29. package/es/components/hyForm/cpns/locationSelect.vue.mjs +8 -1
  30. package/es/components/hyForm/form.vue.mjs +88 -19
  31. package/es/components/hyForm/js/index.mjs +2 -1
  32. package/es/components/hyForm/js/useAppForm.mjs +3 -3
  33. package/es/components/hyIcon/style/icon.scss +1 -0
  34. package/es/components/hyMap/js/index.mjs +6 -6
  35. package/es/components/hyMap/map.vue.mjs +14 -4
  36. package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
  37. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
  38. package/es/components/hyOrgCascader/orgCascader.vue.mjs +75 -15
  39. package/es/components/hyRadioGroup/radioGroup.vue.mjs +5 -4
  40. package/es/components/hySearch/cpns/searchItem.vue.mjs +434 -206
  41. package/es/components/hySearch/js/index.mjs +2 -1
  42. package/es/components/hySearch/search.vue.mjs +71 -10
  43. package/es/components/hySearch/style/search.scss +7 -0
  44. package/es/components/hyTable/cpns/columnSelect.vue.mjs +21 -22
  45. package/es/components/hyTable/cpns/virtualTable.vue.mjs +35 -21
  46. package/es/components/hyTable/js/index.mjs +16 -17
  47. package/es/components/hyTable/js/search.mjs +28 -2
  48. package/es/components/hyTable/style/table.scss +13 -0
  49. package/es/components/hyTable/table.vue.mjs +55 -22
  50. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +17 -12
  51. package/es/components/hyTableForm/batchTableForm.vue.mjs +36 -5
  52. package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
  53. package/es/components/hyTableForm/tableForm.vue.mjs +84 -32
  54. package/es/components/hyTour/index.mjs +7 -0
  55. package/es/components/hyTour/style/tour.scss +0 -0
  56. package/es/components/hyTour/tour.vue.mjs +23 -0
  57. package/es/components/hyTree/config/tree-config.mjs +5 -2
  58. package/es/components/hyTree/js/index.mjs +128 -56
  59. package/es/components/hyTree/tree.vue.mjs +22 -37
  60. package/es/components/index.mjs +1 -0
  61. package/es/index.mjs +6 -0
  62. package/es/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
  63. package/es/style/element/hy-element.scss +24 -3
  64. package/es/style/index.scss +0 -1
  65. package/es/style/tailwind.scss +0 -1
  66. package/es/style/theme.scss +1 -0
  67. package/es/utils/is.mjs +3 -1
  68. package/es/utils/map/hook/bigMap.mjs +11 -1
  69. package/es/utils/map/hook/gaode.mjs +60 -17
  70. package/es/utils/map/hook/leafletjs.mjs +25 -4
  71. package/es/utils/map/index.mjs +1 -1
  72. package/es/version.mjs +1 -1
  73. package/lib/api/organization.js +47 -0
  74. package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.js +249 -0
  75. package/lib/bussiness/hyAcquisitionStationTree/index.js +12 -0
  76. package/lib/bussiness/hyAcquisitionStationTree/js/index.js +126 -0
  77. package/lib/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
  78. package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +253 -0
  79. package/lib/bussiness/hyDeviceTree/index.js +12 -0
  80. package/lib/bussiness/hyDeviceTree/js/index.js +128 -0
  81. package/lib/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
  82. package/lib/bussiness/hyOrgGroupTree/index.js +12 -0
  83. package/lib/bussiness/hyOrgGroupTree/js/index.js +126 -0
  84. package/lib/bussiness/hyOrgGroupTree/orgGroupTree.vue.js +249 -0
  85. package/lib/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
  86. package/lib/bussiness/hyPlanGroupDeviceTree/index.js +12 -0
  87. package/lib/bussiness/hyPlanGroupDeviceTree/js/index.js +126 -0
  88. package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.js +249 -0
  89. package/lib/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
  90. package/lib/bussiness/hyUserTree/index.js +12 -0
  91. package/lib/bussiness/hyUserTree/js/index.js +128 -0
  92. package/lib/bussiness/hyUserTree/style/userTree.scss +0 -0
  93. package/lib/bussiness/hyUserTree/userTree.vue.js +243 -0
  94. package/lib/bussiness/index.js +14 -4
  95. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +182 -148
  96. package/lib/components/hyButton/button.vue.js +18 -4
  97. package/lib/components/hyButton/style/button.scss +72 -0
  98. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +0 -1
  99. package/lib/components/hyForm/cpns/formItem.vue.js +250 -28
  100. package/lib/components/hyForm/cpns/locationSelect.vue.js +8 -1
  101. package/lib/components/hyForm/form.vue.js +86 -17
  102. package/lib/components/hyForm/js/index.js +2 -0
  103. package/lib/components/hyForm/js/useAppForm.js +3 -3
  104. package/lib/components/hyIcon/style/icon.scss +1 -0
  105. package/lib/components/hyMap/js/index.js +5 -5
  106. package/lib/components/hyMap/map.vue.js +13 -3
  107. package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
  108. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
  109. package/lib/components/hyOrgCascader/orgCascader.vue.js +73 -13
  110. package/lib/components/hyRadioGroup/radioGroup.vue.js +5 -4
  111. package/lib/components/hySearch/cpns/searchItem.vue.js +431 -203
  112. package/lib/components/hySearch/js/index.js +2 -0
  113. package/lib/components/hySearch/search.vue.js +69 -8
  114. package/lib/components/hySearch/style/search.scss +7 -0
  115. package/lib/components/hyTable/cpns/columnSelect.vue.js +20 -21
  116. package/lib/components/hyTable/cpns/virtualTable.vue.js +51 -37
  117. package/lib/components/hyTable/js/index.js +16 -16
  118. package/lib/components/hyTable/js/search.js +28 -2
  119. package/lib/components/hyTable/style/table.scss +13 -0
  120. package/lib/components/hyTable/table.vue.js +53 -20
  121. package/lib/components/hyTableActionButton/tableActionButton.vue.js +16 -11
  122. package/lib/components/hyTableForm/batchTableForm.vue.js +36 -5
  123. package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
  124. package/lib/components/hyTableForm/tableForm.vue.js +85 -33
  125. package/lib/components/hyTour/index.js +12 -0
  126. package/lib/components/hyTour/style/tour.scss +0 -0
  127. package/lib/components/hyTour/tour.vue.js +27 -0
  128. package/lib/components/hyTree/config/tree-config.js +5 -2
  129. package/lib/components/hyTree/js/index.js +128 -56
  130. package/lib/components/hyTree/tree.vue.js +22 -37
  131. package/lib/components/index.js +8 -6
  132. package/lib/index.js +67 -55
  133. package/lib/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
  134. package/lib/style/element/hy-element.scss +24 -3
  135. package/lib/style/index.scss +0 -1
  136. package/lib/style/tailwind.scss +0 -1
  137. package/lib/style/theme.scss +1 -0
  138. package/lib/utils/is.js +5 -3
  139. package/lib/utils/map/hook/bigMap.js +11 -1
  140. package/lib/utils/map/hook/gaode.js +60 -17
  141. package/lib/utils/map/hook/leafletjs.js +25 -4
  142. package/lib/utils/map/index.js +1 -1
  143. package/lib/version.js +1 -1
  144. 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/hyAddDepartmentType/index.js');
16
- var index$6 = require('./components/hyAudioPlayer/index.js');
17
- var index$7 = require('./components/hyTableForm/index.js');
18
- var index$8 = require('./components/hyBatchUploadDialog/index.js');
19
- var index$9 = require('./components/hyButton/index.js');
20
- var index$a = require('./components/hyConfigProvider/index.js');
21
- var index$b = require('./components/hyConfirmDialog/index.js');
22
- var index$c = require('./components/hyCutter/index.js');
23
- var index$d = require('./components/hyDialog/index.js');
24
- var index$e = require('./components/hyForm/index.js');
25
- var index$f = require('./components/hyIcon/index.js');
26
- var index$g = require('./components/hyIconBox/index.js');
27
- var index$h = require('./components/hyMap/index.js');
28
- var index$i = require('./bussiness/hyMapAearchPlace/index.js');
29
- var index$j = require('./components/hyMenu/index.js');
30
- var index$k = require('./components/hyNoPermissions/index.js');
31
- var index$l = require('./components/hyNoPermissionsMap/index.js');
32
- var index$m = require('./components/hyOrgCascader/index.js');
33
- var index$n = require('./components/hyRadioGroup/index.js');
34
- var index$o = require('./components/hySearch/index.js');
35
- var index$p = require('./components/hyTable/index.js');
36
- var index$q = require('./components/hyTableActionButton/index.js');
37
- var index$r = require('./components/hyTree/index.js');
38
- var index$s = require('./components/hyUserAvatar/index.js');
39
- var index$t = require('./components/hyVideoPlayer/index.js');
40
- var index$u = require('./utils/map/index.js');
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.HyAddDepartmentType = index$5.HyAddDepartmentType;
87
- exports.HyAudioPlayer = index$6.HyAudioPlayer;
88
- exports.HyBatchTableForm = index$7.HyBatchTableForm;
89
- exports.HyTableForm = index$7.HyTableForm;
90
- exports.HyBatchUploadDialog = index$8.HyBatchUploadDialog;
91
- exports.HyButton = index$9.HyButton;
92
- exports.HyConfigProvider = index$a.HyConfigProvider;
93
- exports.HyConfirmDialog = index$b.HyConfirmDialog;
94
- exports.HyCutter = index$c.HyCutter;
95
- exports.HyDialog = index$d.HyDialog;
96
- exports.HyForm = index$e.HyForm;
97
- exports.HyIcon = index$f.HyIcon;
98
- exports.HyIconBox = index$g.HyIconBox;
99
- exports.HyMap = index$h.HyMap;
100
- exports.HyMapAearchPlace = index$i.HyMapAearchPlace;
101
- exports.HyMenu = index$j.HyMenu;
102
- exports.HyNoPermissions = index$k.HyNoPermissions;
103
- exports.HyNoPermissionsMap = index$l.HyNoPermissionsMap;
104
- exports.HyOrgCascader = index$m.HyOrgCascader;
105
- exports.HyRadioGroup = index$n.HyRadioGroup;
106
- exports.HySearch = index$o.HySearch;
107
- exports.HyTable = index$p.HyTable;
108
- exports.HyTableActionButton = index$q.HyTableActionButton;
109
- exports.HyTree = index$r.HyTree;
110
- exports.HyUserAvatar = index$s.HyUserAvatar;
111
- exports.HyVideoPlayer = index$t.HyVideoPlayer;
112
- exports.InitMap = index$u.InitMap;
113
- exports.setMapServer = index$u.setMapServer;
114
- exports.setPoiServer = index$u.setPoiServer;
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-tour__content{
1008
- .hy-el-tour__body{
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
 
@@ -3,7 +3,6 @@
3
3
  * {
4
4
  margin: 0;
5
5
  padding: 0;
6
- box-sizing: border-box;
7
6
  }
8
7
  html,
9
8
  body,
@@ -54,7 +54,6 @@
54
54
  *,
55
55
  ::before,
56
56
  ::after {
57
- box-sizing: border-box;
58
57
  /* 1 */
59
58
  border-width: 0;
60
59
  /* 2 */
@@ -3,6 +3,7 @@
3
3
  --hy-add: 44, 232, 152; // 新增
4
4
  --hy-success: 44, 232, 152; // 成功
5
5
  --hy-success-2: 44, 232, 152; // 成功
6
+ --hy-success-3: 45, 255, 211; // 成功
6
7
  --hy-info: 144, 147, 153; // 灰色
7
8
  --hy-warning: 248, 166, 45; // 警告
8
9
  --hy-danger: 201, 37, 37; // 删除
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
- return layerGroup;
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
- if (option.completeCallbacks) {
118
- option.completeCallbacks(e);
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
- return layerGroup;
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
- return L.layerGroup(markers).addTo(getInitMap(map));
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) {
@@ -233,7 +233,7 @@ class InitMap extends events.EventEmitter {
233
233
  /* === leafletjs === */
234
234
  ...option
235
235
  };
236
- return this.map.InitMap(domId, option);
236
+ return this.map?.InitMap(domId, option);
237
237
  }
238
238
  // 自定义 h5 图标
239
239
  DivIcon(option) {
package/lib/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const version = "0.2.64";
3
+ const version = "0.2.66";
4
4
 
5
5
  exports.version = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hy-dispatch-ui-v3",
3
- "version": "0.2.65",
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.5",
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",