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.
Files changed (230) hide show
  1. package/dist/tailwind.css +4 -5
  2. package/es/api/device.mjs +1 -0
  3. package/es/api/index.mjs +1 -0
  4. package/es/api/sypct.mjs +1 -0
  5. package/es/api/task.mjs +1 -0
  6. package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +6 -3
  7. package/es/bussiness/hyAddDepartmentType/index.mjs +1 -0
  8. package/es/bussiness/hyMapAearchPlace/index.mjs +1 -0
  9. package/es/bussiness/hyMapAearchPlace/js/index.mjs +39 -42
  10. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +24 -5
  11. package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +2 -0
  12. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +3 -0
  13. package/es/components/hyAudioPlayer/index.mjs +1 -0
  14. package/es/components/hyAudioPlayer/js/index.mjs +5 -1
  15. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +1 -0
  16. package/es/components/hyBatchUploadDialog/index.mjs +1 -0
  17. package/es/components/hyButton/button.vue.mjs +3 -2
  18. package/es/components/hyButton/index.mjs +1 -0
  19. package/es/components/hyButton/style/button.scss +9 -2
  20. package/es/components/hyConfigProvider/configProvider.vue.mjs +2 -1
  21. package/es/components/hyConfigProvider/index.mjs +1 -0
  22. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +4 -0
  23. package/es/components/hyConfirmDialog/confirmMethod.mjs +5 -3
  24. package/es/components/hyConfirmDialog/index.mjs +1 -0
  25. package/es/components/hyCutter/cutter.vue.mjs +5 -2
  26. package/es/components/hyCutter/index.mjs +1 -0
  27. package/es/components/hyDatePicker/datePicker.vue.mjs +2 -0
  28. package/es/components/hyDatePicker/index.mjs +1 -0
  29. package/es/components/hyDialog/dialog.vue.mjs +92 -28
  30. package/es/components/hyDialog/index.mjs +1 -0
  31. package/es/components/hyForm/cpns/arrayItem.vue.mjs +16 -3
  32. package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -0
  33. package/es/components/hyForm/cpns/formItem.vue.mjs +4 -1
  34. package/es/components/hyForm/cpns/locationSelect.vue.mjs +3 -0
  35. package/es/components/hyForm/form.vue.mjs +3 -0
  36. package/es/components/hyForm/index.mjs +1 -0
  37. package/es/components/hyForm/js/index.mjs +3 -1
  38. package/es/components/hyForm/js/useAppForm.mjs +4 -2
  39. package/es/components/hyIcon/icon.vue.mjs +2 -1
  40. package/es/components/hyIcon/index.mjs +1 -0
  41. package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
  42. package/es/components/hyIconBox/index.mjs +1 -0
  43. package/es/components/hyInput/index.mjs +1 -0
  44. package/es/components/hyInput/input.vue.mjs +3 -1
  45. package/es/components/hyInput/inputSearch.vue.mjs +2 -1
  46. package/es/components/hyLoading/index.mjs +41 -0
  47. package/es/components/hyMap/index.mjs +1 -0
  48. package/es/components/hyMap/js/index.mjs +82 -0
  49. package/es/components/hyMap/map.vue.mjs +1 -0
  50. package/es/components/hyMenu/index.mjs +1 -0
  51. package/es/components/hyMenu/menu.vue.mjs +4 -0
  52. package/es/components/hyNoPermissions/index.mjs +1 -0
  53. package/es/components/hyNoPermissions/noPermissions.vue.mjs +4 -0
  54. package/es/components/hyNoPermissionsMap/index.mjs +1 -0
  55. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +4 -0
  56. package/es/components/hyOrgCascader/index.mjs +1 -0
  57. package/es/components/hyOrgCascader/js/index.mjs +2 -0
  58. package/es/components/hyOrgCascader/orgCascader.vue.mjs +2 -1
  59. package/es/components/hyRadioGroup/index.mjs +1 -0
  60. package/es/components/hyRadioGroup/radioGroup.vue.mjs +2 -2
  61. package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -1
  62. package/es/components/hySearch/index.mjs +1 -0
  63. package/es/components/hySearch/js/index.mjs +4 -2
  64. package/es/components/hySearch/js/useAppSearch.mjs +4 -2
  65. package/es/components/hySearch/search.vue.mjs +3 -0
  66. package/es/components/hyTable/cpns/columnSelect.vue.mjs +6 -3
  67. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +3 -0
  68. package/es/components/hyTable/cpns/headerItem.vue.mjs +3 -0
  69. package/es/components/hyTable/cpns/virtualTable.vue.mjs +7 -2
  70. package/es/components/hyTable/index.mjs +1 -0
  71. package/es/components/hyTable/js/index.mjs +10 -10
  72. package/es/components/hyTable/js/search.mjs +2 -0
  73. package/es/components/hyTable/js/useAppTable.mjs +5 -2
  74. package/es/components/hyTable/table.vue.mjs +3 -0
  75. package/es/components/hyTableActionButton/index.mjs +1 -0
  76. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +5 -2
  77. package/es/components/hyTableForm/batchTableForm.vue.mjs +5 -2
  78. package/es/components/hyTableForm/index.mjs +1 -0
  79. package/es/components/hyTableForm/js/index.mjs +36 -0
  80. package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -0
  81. package/es/components/hyTableForm/tableForm.vue.mjs +4 -2
  82. package/es/components/hyTimePicker/index.mjs +1 -0
  83. package/es/components/hyTimePicker/timePicker.vue.mjs +3 -1
  84. package/es/components/hyTooltip/index.mjs +1 -0
  85. package/es/components/hyTooltip/tooltip.vue.mjs +4 -2
  86. package/es/components/hyTree/index.mjs +1 -0
  87. package/es/components/hyTree/js/index.mjs +15 -2
  88. package/es/components/hyTree/tree.vue.mjs +9 -4
  89. package/es/components/hyUserAvatar/index.mjs +1 -0
  90. package/es/components/hyUserAvatar/userAvatar.vue.mjs +5 -1
  91. package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -0
  92. package/es/components/hyVideoPlayer/index.mjs +1 -0
  93. package/es/components/hyVideoPlayer/js/index.mjs +7 -2
  94. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -0
  95. package/es/components/index.mjs +1 -0
  96. package/es/hooks/useGlobalConfig.mjs +1 -1
  97. package/es/hooks/useLocale.mjs +4 -2
  98. package/es/hooks/useResizeHandler.mjs +1 -0
  99. package/es/hooks/useResizeObserver.mjs +1 -1
  100. package/es/index.mjs +6 -0
  101. package/es/locale/en.mjs +1 -2
  102. package/es/locale/zh_CN.mjs +1 -2
  103. package/es/make-installer.mjs +1 -0
  104. package/es/utils/file.mjs +1 -0
  105. package/es/utils/form.mjs +2 -1
  106. package/es/utils/handler.mjs +2 -0
  107. package/es/utils/index.mjs +2 -0
  108. package/es/utils/input.mjs +1 -0
  109. package/es/utils/is.mjs +1 -0
  110. package/es/utils/map/hook/bigMap.mjs +3 -2
  111. package/es/utils/map/hook/gaode.mjs +2 -2
  112. package/es/utils/map/hook/leafletjs.mjs +7 -1
  113. package/es/utils/map/index.mjs +12 -0
  114. package/es/utils/map/js/webgis.mjs +4 -1
  115. package/es/utils/sharedContent.mjs +12 -0
  116. package/es/version.mjs +1 -1
  117. package/lib/api/device.js +1 -0
  118. package/lib/api/index.js +1 -0
  119. package/lib/api/sypct.js +1 -0
  120. package/lib/api/task.js +1 -0
  121. package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +15 -12
  122. package/lib/bussiness/hyAddDepartmentType/index.js +1 -0
  123. package/lib/bussiness/hyMapAearchPlace/index.js +1 -0
  124. package/lib/bussiness/hyMapAearchPlace/js/index.js +37 -40
  125. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +23 -4
  126. package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +2 -0
  127. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +3 -0
  128. package/lib/components/hyAudioPlayer/index.js +1 -0
  129. package/lib/components/hyAudioPlayer/js/index.js +5 -1
  130. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +1 -0
  131. package/lib/components/hyBatchUploadDialog/index.js +1 -0
  132. package/lib/components/hyButton/button.vue.js +2 -1
  133. package/lib/components/hyButton/index.js +1 -0
  134. package/lib/components/hyButton/style/button.scss +9 -2
  135. package/lib/components/hyConfigProvider/configProvider.vue.js +1 -0
  136. package/lib/components/hyConfigProvider/index.js +1 -0
  137. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +4 -0
  138. package/lib/components/hyConfirmDialog/confirmMethod.js +5 -3
  139. package/lib/components/hyConfirmDialog/index.js +1 -0
  140. package/lib/components/hyCutter/cutter.vue.js +3 -0
  141. package/lib/components/hyCutter/index.js +1 -0
  142. package/lib/components/hyDatePicker/datePicker.vue.js +2 -0
  143. package/lib/components/hyDatePicker/index.js +1 -0
  144. package/lib/components/hyDialog/dialog.vue.js +90 -26
  145. package/lib/components/hyDialog/index.js +1 -0
  146. package/lib/components/hyForm/cpns/arrayItem.vue.js +16 -3
  147. package/lib/components/hyForm/cpns/extraItem.vue.js +2 -0
  148. package/lib/components/hyForm/cpns/formItem.vue.js +3 -0
  149. package/lib/components/hyForm/cpns/locationSelect.vue.js +3 -0
  150. package/lib/components/hyForm/form.vue.js +3 -0
  151. package/lib/components/hyForm/index.js +1 -0
  152. package/lib/components/hyForm/js/index.js +3 -1
  153. package/lib/components/hyForm/js/useAppForm.js +3 -1
  154. package/lib/components/hyIcon/icon.vue.js +1 -0
  155. package/lib/components/hyIcon/index.js +1 -0
  156. package/lib/components/hyIconBox/iconBox.vue.js +1 -0
  157. package/lib/components/hyIconBox/index.js +1 -0
  158. package/lib/components/hyInput/index.js +1 -0
  159. package/lib/components/hyInput/input.vue.js +2 -0
  160. package/lib/components/hyInput/inputSearch.vue.js +1 -0
  161. package/lib/components/hyLoading/index.js +47 -0
  162. package/lib/components/hyMap/index.js +1 -0
  163. package/lib/components/hyMap/js/index.js +82 -0
  164. package/lib/components/hyMap/map.vue.js +1 -0
  165. package/lib/components/hyMenu/index.js +1 -0
  166. package/lib/components/hyMenu/menu.vue.js +4 -0
  167. package/lib/components/hyNoPermissions/index.js +1 -0
  168. package/lib/components/hyNoPermissions/noPermissions.vue.js +4 -0
  169. package/lib/components/hyNoPermissionsMap/index.js +1 -0
  170. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +4 -0
  171. package/lib/components/hyOrgCascader/index.js +1 -0
  172. package/lib/components/hyOrgCascader/js/index.js +2 -0
  173. package/lib/components/hyOrgCascader/orgCascader.vue.js +2 -1
  174. package/lib/components/hyRadioGroup/index.js +1 -0
  175. package/lib/components/hyRadioGroup/radioGroup.vue.js +1 -1
  176. package/lib/components/hySearch/cpns/searchItem.vue.js +2 -0
  177. package/lib/components/hySearch/index.js +1 -0
  178. package/lib/components/hySearch/js/index.js +3 -1
  179. package/lib/components/hySearch/js/useAppSearch.js +4 -2
  180. package/lib/components/hySearch/search.vue.js +3 -0
  181. package/lib/components/hyTable/cpns/columnSelect.vue.js +4 -1
  182. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +3 -0
  183. package/lib/components/hyTable/cpns/headerItem.vue.js +3 -0
  184. package/lib/components/hyTable/cpns/virtualTable.vue.js +6 -1
  185. package/lib/components/hyTable/index.js +1 -0
  186. package/lib/components/hyTable/js/index.js +9 -9
  187. package/lib/components/hyTable/js/search.js +2 -0
  188. package/lib/components/hyTable/js/useAppTable.js +4 -1
  189. package/lib/components/hyTable/table.vue.js +3 -0
  190. package/lib/components/hyTableActionButton/index.js +1 -0
  191. package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -1
  192. package/lib/components/hyTableForm/batchTableForm.vue.js +15 -12
  193. package/lib/components/hyTableForm/index.js +1 -0
  194. package/lib/components/hyTableForm/js/index.js +36 -0
  195. package/lib/components/hyTableForm/js/useAppTableForm.js +2 -0
  196. package/lib/components/hyTableForm/tableForm.vue.js +12 -10
  197. package/lib/components/hyTimePicker/index.js +1 -0
  198. package/lib/components/hyTimePicker/timePicker.vue.js +2 -0
  199. package/lib/components/hyTooltip/index.js +1 -0
  200. package/lib/components/hyTooltip/tooltip.vue.js +2 -0
  201. package/lib/components/hyTree/index.js +1 -0
  202. package/lib/components/hyTree/js/index.js +14 -1
  203. package/lib/components/hyTree/tree.vue.js +9 -4
  204. package/lib/components/hyUserAvatar/index.js +1 -0
  205. package/lib/components/hyUserAvatar/userAvatar.vue.js +5 -1
  206. package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -0
  207. package/lib/components/hyVideoPlayer/index.js +1 -0
  208. package/lib/components/hyVideoPlayer/js/index.js +7 -2
  209. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -0
  210. package/lib/components/index.js +56 -53
  211. package/lib/hooks/useLocale.js +3 -1
  212. package/lib/hooks/useResizeHandler.js +1 -0
  213. package/lib/index.js +70 -61
  214. package/lib/locale/en.js +1 -2
  215. package/lib/locale/zh_CN.js +1 -2
  216. package/lib/make-installer.js +1 -0
  217. package/lib/utils/file.js +1 -0
  218. package/lib/utils/form.js +1 -0
  219. package/lib/utils/handler.js +2 -0
  220. package/lib/utils/index.js +3 -0
  221. package/lib/utils/input.js +1 -0
  222. package/lib/utils/is.js +1 -0
  223. package/lib/utils/map/hook/bigMap.js +3 -2
  224. package/lib/utils/map/hook/gaode.js +1 -1
  225. package/lib/utils/map/hook/leafletjs.js +7 -1
  226. package/lib/utils/map/index.js +12 -0
  227. package/lib/utils/map/js/webgis.js +4 -1
  228. package/lib/utils/sharedContent.js +14 -0
  229. package/lib/version.js +1 -1
  230. package/package.json +2 -1
package/dist/tailwind.css CHANGED
@@ -861,6 +861,10 @@
861
861
  min-width: 120px !important;
862
862
  }
863
863
 
864
+ .min-w-\[120px\] {
865
+ min-width: 120px;
866
+ }
867
+
864
868
  .min-w-full {
865
869
  min-width: 100%;
866
870
  }
@@ -1488,11 +1492,6 @@
1488
1492
  color: rgb(var(--hy-auxiliary), var(--tw-text-opacity, 1));
1489
1493
  }
1490
1494
 
1491
- .text-danger {
1492
- --tw-text-opacity: 1;
1493
- color: rgb(var(--hy-danger), var(--tw-text-opacity, 1));
1494
- }
1495
-
1496
1495
  .text-danger-2 {
1497
1496
  --tw-text-opacity: 1;
1498
1497
  color: rgb(var(--hy-danger-2), var(--tw-text-opacity, 1));
package/es/api/device.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import '../hooks/index.mjs';
1
2
  import { unref } from 'vue';
2
3
  import { useLocale } from '../hooks/useLocale.mjs';
3
4
  import { useApi } from '../hooks/useApi.mjs';
package/es/api/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import '../hooks/index.mjs';
1
2
  import { unref } from 'vue';
2
3
  import { useLocale } from '../hooks/useLocale.mjs';
3
4
  import { useApi } from '../hooks/useApi.mjs';
package/es/api/sypct.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import '../hooks/index.mjs';
1
2
  import { unref } from 'vue';
2
3
  import { useLocale } from '../hooks/useLocale.mjs';
3
4
  import { useApi } from '../hooks/useApi.mjs';
package/es/api/task.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import '../hooks/index.mjs';
1
2
  import { unref } from 'vue';
2
3
  import { useLocale } from '../hooks/useLocale.mjs';
3
4
  import { useApi } from '../hooks/useApi.mjs';
@@ -1,14 +1,17 @@
1
- import { defineComponent, useTemplateRef, resolveComponent, openBlock, createBlock, unref, isRef, withCtx, createCommentVNode, createElementVNode, createVNode, toDisplayString, createTextVNode, ref } from 'vue';
2
- import { ElForm, ElFormItem, ElUpload, ElImage, ElMessage } from 'element-plus';
1
+ import { defineComponent, useTemplateRef, ref, resolveComponent, openBlock, createBlock, unref, isRef, withCtx, createCommentVNode, createElementVNode, createVNode, toDisplayString, createTextVNode } from 'vue';
2
+ import '../../hooks/index.mjs';
3
+ import { ElMessage, ElForm, ElFormItem, ElUpload, ElImage } from 'element-plus';
3
4
  import { saveApi } from '../../api/index.mjs';
5
+ import '../../utils/index.mjs';
6
+ import '../../components/index.mjs';
4
7
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
5
8
  import { useLocale } from '../../hooks/useLocale.mjs';
9
+ import { fileUpload } from '../../utils/file.mjs';
6
10
  import { useMixins } from '../../hooks/useMixins.mjs';
7
11
  import { HyDialog } from '../../components/hyDialog/index.mjs';
8
12
  import { HyIcon } from '../../components/hyIcon/index.mjs';
9
13
  import { HyButton } from '../../components/hyButton/index.mjs';
10
14
  import { HyCutter } from '../../components/hyCutter/index.mjs';
11
- import { fileUpload } from '../../utils/file.mjs';
12
15
 
13
16
  const __default__ = defineComponent({
14
17
  name: "HyAddDepartmentType"
@@ -1,4 +1,5 @@
1
1
  import componnet from './addDepartmentType.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyAddDepartmentType = withInstall(componnet);
@@ -1,4 +1,5 @@
1
1
  import _sfc_main from './mapAearchPlace.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyMapAearchPlace = withInstall(_sfc_main);
@@ -1,13 +1,14 @@
1
1
  import { ref, computed, nextTick } from 'vue';
2
2
  import { ElMessage } from 'element-plus';
3
- import { pageApi, findAllApi } from '../../../api/index.mjs';
3
+ import { findAllApi, pageApi } from '../../../api/index.mjs';
4
4
  import { childTaskFindAllApi } from '../../../api/task.mjs';
5
5
  import { detailApi } from '../../../api/device.mjs';
6
6
  import { unbindCphmTaskApi } from '../../../api/sypct.mjs';
7
- import { getCoordinate, WGS84ToGCJ02, WGS84ToBD09, GCJ02ToWGS84, BD09ToWGS84, GCJ02ToBD09, BD09ToGCJ02 } from '../../../utils/map/js/webgis.mjs';
7
+ import '../../../utils/index.mjs';
8
+ import { WGS84ToGCJ02, WGS84ToBD09, GCJ02ToWGS84, GCJ02ToBD09, BD09ToGCJ02, BD09ToWGS84, getCoordinate } from '../../../utils/map/js/webgis.mjs';
8
9
  import { setPoiServer } from '../../../utils/map/index.mjs';
9
- import { onlyNumber } from '../../../utils/input.mjs';
10
10
  import { isPermission } from '../../../utils/is.mjs';
11
+ import { onlyNumber } from '../../../utils/input.mjs';
11
12
 
12
13
  const CoordinateDict = {
13
14
  0: "WGS84",
@@ -22,32 +23,6 @@ const CoordinateMap = {
22
23
  const useMapAearchPlace = (hy) => {
23
24
  const { props, emits, t } = hy;
24
25
  const poiServer = setPoiServer(props.mapConfig);
25
- const searchAddressTypeList = ref([
26
- { label: "\u5730\u7406\u5730\u5740", value: 1 },
27
- // 水源点: 2
28
- // 防火单位: 3
29
- {
30
- label: "\u90E8\u95E8\u540D\u79F0",
31
- value: 4,
32
- permission: "operator_departmentManage"
33
- },
34
- { label: "\u67E5\u7ECF\u7EAC\u5EA6", value: 5 },
35
- {
36
- label: "\u67E5\u5DE1\u67E5\u70B9",
37
- value: 6,
38
- permission: "mission_patrolInspectionTask"
39
- },
40
- {
41
- label: "\u4EFB\u52A1\u540D\u79F0",
42
- value: 7,
43
- permission: "mission_commonTasks"
44
- },
45
- {
46
- label: "\u67E5\u8BE2\u8F66\u8F86",
47
- value: 8,
48
- permission: "commands_dutyStatus"
49
- }
50
- ]);
51
26
  const nextPageParams = ref(null);
52
27
  const lnglat = ref({
53
28
  lng: null,
@@ -91,20 +66,43 @@ const useMapAearchPlace = (hy) => {
91
66
  const mapCoordinateName = computed(() => {
92
67
  return CoordinateDict[hy.mapCoordinate.value];
93
68
  });
94
- async function setSelectList() {
95
- const selectList = [];
96
- props.selectIdList.forEach((id) => {
97
- const item = hy.selectList.find((item2) => item2.value === id);
98
- if (item) {
99
- if (!item.permission || isPermission(item.permission)) {
100
- selectList.push(item);
101
- }
69
+ const searchAddressTypeList = computed(() => {
70
+ const selectIdSet = props.selectIdList.reduce((value, id) => {
71
+ value.add(id);
72
+ return value;
73
+ }, /* @__PURE__ */ new Set());
74
+ return [
75
+ { label: "\u5730\u7406\u5730\u5740", value: 1 },
76
+ // 水源点: 2
77
+ // 防火单位: 3
78
+ {
79
+ label: "\u90E8\u95E8\u540D\u79F0",
80
+ value: 4,
81
+ permission: "operator_departmentManage"
82
+ },
83
+ { label: "\u67E5\u7ECF\u7EAC\u5EA6", value: 5 },
84
+ {
85
+ label: "\u67E5\u5DE1\u67E5\u70B9",
86
+ value: 6,
87
+ permission: "mission_patrolInspectionTask"
88
+ },
89
+ {
90
+ label: "\u4EFB\u52A1\u540D\u79F0",
91
+ value: 7,
92
+ permission: "mission_commonTasks"
93
+ },
94
+ {
95
+ label: "\u67E5\u8BE2\u8F66\u8F86",
96
+ value: 8,
97
+ permission: "commands_dutyStatus"
102
98
  }
99
+ ].filter((item) => {
100
+ if (!item.permission && !isPermission(item.permission)) {
101
+ return false;
102
+ }
103
+ return selectIdSet.has(item.value);
103
104
  });
104
- await nextTick();
105
- hy.searchAddressType.value = selectList[0].value;
106
- hy.selectList = selectList;
107
- }
105
+ });
108
106
  async function lnglatCheckFn(content) {
109
107
  onlyNumber(hy.lnglat.value, content);
110
108
  await nextTick();
@@ -625,7 +623,6 @@ const useMapAearchPlace = (hy) => {
625
623
  commonOptions,
626
624
  mapCoordinate,
627
625
  mapCoordinateName,
628
- setSelectList,
629
626
  lnglatCheckFn,
630
627
  onFocus,
631
628
  onBlur,
@@ -1,6 +1,8 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createVNode, isRef, withCtx, withDirectives, vShow, createCommentVNode, toDisplayString, Fragment, renderList, createTextVNode, createBlock } from 'vue';
1
+ import { defineComponent, watch, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createVNode, isRef, withCtx, withDirectives, vShow, createCommentVNode, toDisplayString, Fragment, renderList, createTextVNode, createBlock } from 'vue';
2
2
  import VirtualList from 'vue3-virtual-scroll-list';
3
3
  import { ElSelect } from 'element-plus';
4
+ import '../../hooks/index.mjs';
5
+ import '../../components/index.mjs';
4
6
  import { useMapAearchPlace } from './js/index.mjs';
5
7
  import _sfc_main$1 from './mapAearchPlaceItem.vue.mjs';
6
8
  import { useLocale } from '../../hooks/useLocale.mjs';
@@ -76,7 +78,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
76
78
  commonOptions,
77
79
  mapCoordinate,
78
80
  mapCoordinateName,
79
- setSelectList,
80
81
  lnglatCheckFn,
81
82
  onFocus,
82
83
  onBlur,
@@ -99,6 +100,24 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
99
100
  titleFn,
100
101
  placeholderFn
101
102
  } = useMixins({ props, emits, t }, [useMapAearchPlace]);
103
+ watch(
104
+ () => searchAddressTypeList.value,
105
+ () => {
106
+ if (!searchAddressType.value) {
107
+ searchAddressType.value = searchAddressType.value[0];
108
+ searchAddressTypeFn();
109
+ } else {
110
+ const index = searchAddressTypeList.value.findIndex((item) => {
111
+ return searchAddressType.value === item.value;
112
+ });
113
+ if (index === -1) {
114
+ searchAddressType.value = searchAddressType.value[0];
115
+ searchAddressTypeFn();
116
+ }
117
+ }
118
+ },
119
+ { immediate: true, deep: true }
120
+ );
102
121
  __expose({});
103
122
  return (_ctx, _cache) => {
104
123
  return openBlock(), createElementBlock(
@@ -123,7 +142,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
123
142
  onBlur: unref(onBlur)
124
143
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onChange", "onFocus", "onBlur"]),
125
144
  createVNode(unref(HyTooltip), {
126
- "open-delay": 500,
145
+ "show-after": 500,
127
146
  content: unref(placeholder),
128
147
  placement: "bottom-start"
129
148
  }, {
@@ -148,7 +167,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
148
167
  }, 8, ["content"]),
149
168
  createCommentVNode(" \u7ECF\u7EAC\u5EA6 "),
150
169
  createVNode(unref(HyTooltip), {
151
- "open-delay": 500,
170
+ "show-after": 500,
152
171
  content: "\u7EAC\u5EA6",
153
172
  placement: "bottom-start"
154
173
  }, {
@@ -173,7 +192,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
173
192
  /* STABLE */
174
193
  }),
175
194
  createVNode(unref(HyTooltip), {
176
- "open-delay": 500,
195
+ "show-after": 500,
177
196
  content: "\u7ECF\u5EA6",
178
197
  placement: "bottom-start"
179
198
  }, {
@@ -1,4 +1,5 @@
1
1
  import { openBlock, createElementBlock, createElementVNode, createBlock, unref, createCommentVNode, Fragment, renderList, normalizeClass, toDisplayString } from 'vue';
2
+ import '../../components/index.mjs';
2
3
  import { HyIcon } from '../../components/hyIcon/index.mjs';
3
4
 
4
5
  const _sfc_main = {
@@ -27,6 +28,7 @@ const _sfc_main = {
27
28
  }
28
29
  },
29
30
  setup(__props) {
31
+ const props = __props;
30
32
  return (_ctx, _cache) => {
31
33
  return openBlock(), createElementBlock("li", {
32
34
  class: "flex items-center css-text-no-select py-2 pl-2.5 border-b border-background-3 clickBox hover:bg-background-3",
@@ -1,5 +1,8 @@
1
1
  import { defineComponent, useTemplateRef, computed, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, unref, createVNode, createElementVNode, toDisplayString, withDirectives, vShow, createCommentVNode, createTextVNode, normalizeStyle, isRef, vModelText, withCtx, Fragment, renderList, createBlock } from 'vue';
2
2
  import { ElPopover, ElSlider } from 'element-plus';
3
+ import '../../hooks/index.mjs';
4
+ import '../../utils/index.mjs';
5
+ import '../index.mjs';
3
6
  import _sfc_main$1 from '../hyVideoPlayer/cpns/mediaLoading.vue.mjs';
4
7
  import { useAudioPlayer } from './js/index.mjs';
5
8
  import { useLocale } from '../../hooks/useLocale.mjs';
@@ -1,4 +1,5 @@
1
1
  import _sfc_main from './audioPlayer.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyAudioPlayer = withInstall(_sfc_main);
@@ -1,5 +1,8 @@
1
1
  import { ref, computed, nextTick } from 'vue';
2
2
  import { ElMessage } from 'element-plus';
3
+ import 'dayjs';
4
+ import '../../../hooks/index.mjs';
5
+ import '../../../utils/index.mjs';
3
6
  import { useLocale } from '../../../hooks/useLocale.mjs';
4
7
  import { useAudioPlayerConfig } from '../../../hooks/useAudioPlayerConfig.mjs';
5
8
  import { formatDuration } from '../../../utils/date.mjs';
@@ -241,7 +244,8 @@ const useAudioPlayer = (hy) => {
241
244
  document.removeEventListener("fullscreenchange", fullscreenchangeHandler);
242
245
  }
243
246
  function fullscreenchangeHandler(e) {
244
- if (document.fullscreenElement) ; else {
247
+ if (document.fullscreenElement) {
248
+ } else {
245
249
  isFullScreen.value = false;
246
250
  }
247
251
  }
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, useTemplateRef, useModel, ref, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, renderList, createCommentVNode, createTextVNode, createVNode, toDisplayString, createElementBlock, mergeModels } from 'vue';
2
2
  import { ElIcon } from 'element-plus';
3
3
  import { Warning } from '@element-plus/icons-vue';
4
+ import '../index.mjs';
4
5
  import { HyDialog } from '../hyDialog/index.mjs';
5
6
  import { HyBatchTableForm } from '../hyTableForm/index.mjs';
6
7
  import { HyButton } from '../hyButton/index.mjs';
@@ -1,4 +1,5 @@
1
1
  import _sfc_main from './batchUploadDialog.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyBatchUploadDialog = withInstall(_sfc_main);
@@ -1,6 +1,7 @@
1
- import { openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, createElementVNode, createVNode, unref, withCtx, createBlock, defineComponent } from 'vue';
1
+ import { defineComponent, openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, createElementVNode, createVNode, unref, withCtx, createBlock } from 'vue';
2
2
  import { ElIcon } from 'element-plus';
3
3
  import { Loading } from '@element-plus/icons-vue';
4
+ import '../index.mjs';
4
5
  import { HyTooltip } from '../hyTooltip/index.mjs';
5
6
  import { HyIcon } from '../hyIcon/index.mjs';
6
7
 
@@ -119,7 +120,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
119
120
  }, {
120
121
  default: withCtx(() => [
121
122
  renderSlot(_ctx.$slots, "content", {}, () => [
122
- createElementVNode("div", { class: "flex items-center text-main px-3" }, [
123
+ createElementVNode("div", { class: "h-full flex items-center text-main px-3" }, [
123
124
  !__props.loading ? renderSlot(_ctx.$slots, "svg", {}, () => [
124
125
  __props.svgName ? (openBlock(), createBlock(unref(HyIcon), {
125
126
  key: 0,
@@ -1,4 +1,5 @@
1
1
  import _sfc_main from './button.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyButton = withInstall(_sfc_main);
@@ -8,9 +8,8 @@
8
8
  color: inherit;
9
9
  white-space: nowrap;
10
10
  font-size: 14px;
11
- padding: 2px;
12
- border: 1px solid transparent;
13
11
  box-sizing: border-box;
12
+ border-radius: 4px;
14
13
 
15
14
  &:disabled,
16
15
  &.is-disabled {
@@ -35,6 +34,8 @@
35
34
 
36
35
  &.hy-button_default {
37
36
  background: rgba(94, 157, 180, 0.32);
37
+ border: 1px solid rgba(94, 157, 180, 1);
38
+ box-shadow: 0px 0px 0px 2px rgba(94, 157, 180, 0.5);
38
39
 
39
40
  .hy-button__border {
40
41
  background: linear-gradient(
@@ -99,6 +100,8 @@
99
100
 
100
101
  &.hy-button_function {
101
102
  background: rgba(45, 242, 255, 0.32);
103
+ border: 1px solid rgba(45, 242, 255, 1);
104
+ box-shadow: 0px 0px 0px 2px rgba(45, 242, 255, 0.5);
102
105
 
103
106
  .hy-button__border {
104
107
  background: linear-gradient(
@@ -163,6 +166,8 @@
163
166
 
164
167
  &.hy-button_addTo {
165
168
  background: rgba(44, 232, 152, 0.32);
169
+ border: 1px solid rgba(44, 232, 152, 1);
170
+ box-shadow: 0px 0px 0px 2px rgba(44, 232, 152, 0.5);
166
171
 
167
172
  .hy-button__border {
168
173
  background: linear-gradient(
@@ -227,6 +232,8 @@
227
232
 
228
233
  &.hy-button_delete {
229
234
  background: rgba(255, 77, 77, 0.32);
235
+ border: 1px solid rgba(255, 77, 77, 1);
236
+ box-shadow: 0px 0px 0px 2px rgba(255, 77, 77, 0.5);
230
237
 
231
238
  .hy-button__border {
232
239
  background: linear-gradient(
@@ -1,6 +1,7 @@
1
- import { unref, computed, openBlock, createBlock, mergeProps, withCtx, renderSlot, defineComponent } from 'vue';
1
+ import { defineComponent, unref, computed, openBlock, createBlock, mergeProps, withCtx, renderSlot } from 'vue';
2
2
  import { ElConfigProvider } from 'element-plus';
3
3
  import * as ElementLocale from 'element-plus/es/locales.mjs';
4
+ import '../../hooks/index.mjs';
4
5
  import { provideGlobalConfig, useGlobalConfig } from '../../hooks/useGlobalConfig.mjs';
5
6
 
6
7
  const __default__ = defineComponent({
@@ -1,4 +1,5 @@
1
1
  import _sfc_main from './configProvider.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyConfigProvider = withInstall(_sfc_main);
@@ -1,5 +1,7 @@
1
1
  import { defineComponent, useModel, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, createCommentVNode, createVNode, normalizeStyle, normalizeClass, toDisplayString, createElementBlock, createTextVNode, withModifiers, mergeModels } from 'vue';
2
2
  import { ElDialog } from 'element-plus';
3
+ import '../../hooks/index.mjs';
4
+ import '../index.mjs';
3
5
  import { useLocale } from '../../hooks/useLocale.mjs';
4
6
  import { HyIcon } from '../hyIcon/index.mjs';
5
7
  import { HyButton } from '../hyButton/index.mjs';
@@ -198,6 +200,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
198
200
  key: 0,
199
201
  type: __props.cancelType,
200
202
  disabled: loading.value,
203
+ class: "min-w-[120px]",
201
204
  onClick: onCancelHandler
202
205
  }, {
203
206
  default: withCtx(() => [
@@ -214,6 +217,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
214
217
  key: 1,
215
218
  type: __props.submitType,
216
219
  loading: loading.value,
220
+ class: "min-w-[120px]",
217
221
  onClick: onSubmitHandler
218
222
  }, {
219
223
  default: withCtx(() => [
@@ -1,9 +1,11 @@
1
1
  import { unref, createVNode, render } from 'vue';
2
+ import '../../hooks/index.mjs';
2
3
  import { defaultAxios } from '../../hooks/useApi.mjs';
4
+ import '../index.mjs';
3
5
  import _sfc_main from './confirmDialog.vue.mjs';
4
- import { useLocale } from '../../hooks/useLocale.mjs';
5
6
  import { useGlobalConfig } from '../../hooks/useGlobalConfig.mjs';
6
7
  import { HyConfigProvider } from '../hyConfigProvider/index.mjs';
8
+ import { useLocale } from '../../hooks/useLocale.mjs';
7
9
 
8
10
  function appConfirmMethod(config) {
9
11
  let container = document.createDocumentFragment();
@@ -83,11 +85,11 @@ _sfc_main.danger = (props) => {
83
85
  const { t } = useLocale();
84
86
  return appConfirmMethod({
85
87
  dialogTitle: t("dialog.dangerousOperation"),
86
- titleClass: "text-danger",
88
+ titleClass: "text-danger-2",
87
89
  title: t("dialog.prompt"),
88
90
  content: t("dialog.content"),
89
91
  submitType: "danger",
90
- iconColor: "rgb(var(--hy-danger))",
92
+ iconColor: "rgb(var(--hy-danger-2))",
91
93
  ...props
92
94
  });
93
95
  };
@@ -1,4 +1,5 @@
1
1
  import './confirmMethod.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
  import _sfc_main from './confirmDialog.vue.mjs';
4
5
 
@@ -1,9 +1,12 @@
1
1
  import { defineComponent, useModel, useTemplateRef, ref, computed, openBlock, createElementBlock, withDirectives, createVNode, unref, withCtx, createElementVNode, renderSlot, normalizeStyle, createBlock, Fragment, createCommentVNode, toDisplayString, withModifiers, vShow, mergeProps, mergeModels } from 'vue';
2
2
  import { VueCropper } from 'vue-cropper';
3
- import { ElUpload, ElImage, ElIcon, ElMessage } from 'element-plus';
3
+ import { ElMessage, ElUpload, ElImage, ElIcon } from 'element-plus';
4
4
  import { User, Delete } from '@element-plus/icons-vue';
5
+ import '../../utils/index.mjs';
6
+ import '../index.mjs';
7
+ import '../../hooks/index.mjs';
5
8
  import { useLocale } from '../../hooks/useLocale.mjs';
6
- import { blobToDataURL, sizeToTextHandler, fileUpload } from '../../utils/file.mjs';
9
+ import { sizeToTextHandler, blobToDataURL, fileUpload } from '../../utils/file.mjs';
7
10
  import { HyDialog } from '../hyDialog/index.mjs';
8
11
 
9
12
  import "vue-cropper/dist/index.css";
@@ -1,4 +1,5 @@
1
1
  import _sfc_main from './cutter.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyCutter = withInstall(_sfc_main);
@@ -1,5 +1,7 @@
1
1
  import { defineComponent, useTemplateRef, useModel, computed, watch, unref, openBlock, createBlock, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, mergeModels } from 'vue';
2
2
  import { ElDatePicker } from 'element-plus';
3
+ import '../../utils/index.mjs';
4
+ import '../../hooks/index.mjs';
3
5
  import { useLocale } from '../../hooks/useLocale.mjs';
4
6
  import { getDefaultValueFormatByType } from '../../utils/date.mjs';
5
7
  import { isArray } from '../../utils/is.mjs';
@@ -1,4 +1,5 @@
1
1
  import _sfc_main from './datePicker.vue.mjs';
2
+ import '../../utils/index.mjs';
2
3
  import { withInstall } from '../../utils/handler.mjs';
3
4
 
4
5
  const HyDatePicker = withInstall(_sfc_main);