hy-dispatch-ui-v3 0.2.67 → 0.2.69

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 (282) hide show
  1. package/dist/tailwind.css +232 -20
  2. package/es/api/device.mjs +2 -3
  3. package/es/api/exportExcel.mjs +57 -0
  4. package/es/api/index.mjs +27 -16
  5. package/es/api/mapRail.mjs +31 -0
  6. package/es/api/organization.mjs +17 -9
  7. package/es/api/rule.mjs +30 -0
  8. package/es/api/sypct.mjs +2 -3
  9. package/es/api/task.mjs +2 -3
  10. package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +18 -19
  11. package/es/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
  12. package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +511 -0
  13. package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.mjs +178 -0
  14. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +316 -0
  15. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.mjs +119 -0
  16. package/es/bussiness/hyElectronicFence/electronicFence.vue.mjs +358 -0
  17. package/es/bussiness/hyElectronicFence/index.mjs +13 -0
  18. package/es/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
  19. package/es/bussiness/hyElectronicFence/style/electronicFenceAssociatedUsersDialog.scss +25 -0
  20. package/es/bussiness/hyMapAearchPlace/js/index.mjs +1 -1
  21. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +4 -6
  22. package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
  23. package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.mjs +270 -0
  24. package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.mjs +251 -0
  25. package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.mjs +251 -0
  26. package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.mjs +395 -0
  27. package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.mjs +651 -0
  28. package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.mjs +357 -0
  29. package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.mjs +261 -0
  30. package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.mjs +360 -0
  31. package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.mjs +240 -0
  32. package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.mjs +258 -0
  33. package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.mjs +240 -0
  34. package/es/bussiness/hyRuleSetting/index.mjs +15 -0
  35. package/es/bussiness/hyRuleSetting/js/ruleSetting.mjs +65 -0
  36. package/es/bussiness/hyRuleSetting/ruleSetting.vue.mjs +129 -0
  37. package/es/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
  38. package/es/bussiness/index.mjs +2 -0
  39. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -13
  40. package/es/components/hyAudioPlayer/js/index.mjs +9 -14
  41. package/es/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
  42. package/es/components/hyButton/button.vue.mjs +2 -2
  43. package/es/components/hyButton/style/button.scss +48 -74
  44. package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +119 -0
  45. package/es/components/hyCheckboxGroup/index.mjs +7 -0
  46. package/es/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
  47. package/es/components/hyConfigProvider/configProvider.vue.mjs +51 -38
  48. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +57 -62
  49. package/es/components/hyConfirmDialog/confirmMethod.mjs +24 -22
  50. package/es/components/hyCutter/cutter.vue.mjs +9 -23
  51. package/es/components/hyDatePicker/datePicker.vue.mjs +12 -17
  52. package/es/components/hyDialog/dialog.vue.mjs +5 -9
  53. package/es/components/hyDialog/style/dialog.scss +12 -13
  54. package/es/components/hyDrawer/drawer.vue.mjs +100 -0
  55. package/es/components/hyDrawer/index.mjs +7 -0
  56. package/es/components/hyDrawer/style/drawer.scss +0 -0
  57. package/es/components/hyForm/cpns/arrayItem.vue.mjs +10 -28
  58. package/es/components/hyForm/cpns/arrayItem2.vue.mjs +198 -0
  59. package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -3
  60. package/es/components/hyForm/cpns/formItem.vue.mjs +75 -37
  61. package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
  62. package/es/components/hyForm/form.vue.mjs +58 -24
  63. package/es/components/hyForm/js/index.mjs +4 -8
  64. package/es/components/hyForm/js/useAppForm.mjs +5 -9
  65. package/es/components/hyForm/style/form.scss +4 -13
  66. package/es/components/hyIcon/icon.vue.mjs +3 -3
  67. package/es/components/hyIconBox/style/iconBox.scss +2 -6
  68. package/es/components/hyInput/inputSearch.vue.mjs +8 -11
  69. package/es/components/hyInput/style/inputSearch.scss +3 -0
  70. package/es/components/hyLoading/index.mjs +3 -5
  71. package/es/components/hyMap/js/index.mjs +29 -4
  72. package/es/components/hyMap/map.vue.mjs +17 -3
  73. package/es/components/hyMenu/style/menu.scss +5 -15
  74. package/es/components/hyNoPermissions/noPermissions.vue.mjs +3 -4
  75. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +3 -6
  76. package/es/components/hyOrgCascader/js/index.mjs +1 -5
  77. package/es/components/hyOrgCascader/orgCascader.vue.mjs +25 -11
  78. package/es/components/hyOrgCascader/style/orgCascader.scss +7 -0
  79. package/es/components/hyRadioGroup/radioGroup.vue.mjs +48 -41
  80. package/es/components/hyRadioGroup/style/radioGroup.scss +9 -0
  81. package/es/components/hySearch/cpns/searchItem.vue.mjs +33 -20
  82. package/es/components/hySearch/js/index.mjs +1 -4
  83. package/es/components/hySearch/js/useAppSearch.mjs +6 -10
  84. package/es/components/hySearch/search.vue.mjs +9 -16
  85. package/es/components/hySearch/style/search.scss +2 -0
  86. package/es/components/hyStatus/index.mjs +7 -0
  87. package/es/components/hyStatus/status.vue.mjs +110 -0
  88. package/es/components/hyStatus/style/status.scss +0 -0
  89. package/es/components/hyTable/cpns/columnSelect.vue.mjs +24 -28
  90. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +8 -9
  91. package/es/components/hyTable/cpns/headerItem.vue.mjs +2 -2
  92. package/es/components/hyTable/cpns/virtualTable.vue.mjs +18 -28
  93. package/es/components/hyTable/js/index.mjs +56 -59
  94. package/es/components/hyTable/js/useAppTable.mjs +3 -4
  95. package/es/components/hyTable/style/table.scss +8 -0
  96. package/es/components/hyTable/table.vue.mjs +35 -41
  97. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +4 -4
  98. package/es/components/hyTableForm/batchTableForm.vue.mjs +3 -7
  99. package/es/components/hyTableForm/js/index.mjs +3 -11
  100. package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -7
  101. package/es/components/hyTableForm/style/batchTableForm.scss +26 -54
  102. package/es/components/hyTableForm/style/tableForm.scss +3 -2
  103. package/es/components/hyTableForm/tableForm.vue.mjs +90 -46
  104. package/es/components/hyTimePicker/timePicker.vue.mjs +4 -5
  105. package/es/components/hyTree/js/index.mjs +13 -40
  106. package/es/components/hyTree/style/index.css +1 -1
  107. package/es/components/hyTree/tree.vue.mjs +17 -16
  108. package/es/components/hyUserAvatar/userAvatar.vue.mjs +3 -6
  109. package/es/components/hyVideoPlayer/js/index.mjs +14 -23
  110. package/es/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
  111. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +16 -26
  112. package/es/components/index.mjs +3 -0
  113. package/es/hooks/index.mjs +6 -2
  114. package/es/hooks/useAudioPlayerConfig.mjs +1 -3
  115. package/es/hooks/useBaseMainStore.mjs +29 -0
  116. package/es/hooks/useCurrentBus.mjs +20 -0
  117. package/es/hooks/useDialog.mjs +327 -0
  118. package/es/hooks/useExportFile.mjs +133 -0
  119. package/es/hooks/useGlobalConfig.mjs +10 -6
  120. package/es/hooks/useLocale.mjs +22 -12
  121. package/es/hooks/usePermissionMap.mjs +1 -3
  122. package/es/hooks/useResizeHandler.mjs +1 -4
  123. package/es/hooks/useResizeObserver.mjs +3 -1
  124. package/es/hooks/useSubscribe.mjs +2 -2
  125. package/es/hooks/useUserAvatarMap.mjs +1 -3
  126. package/es/hooks/useVideoPlayerConfig.mjs +1 -3
  127. package/es/index.mjs +11 -2
  128. package/es/locale/{en.mjs → en_US.mjs} +81 -5
  129. package/es/locale/index.mjs +2 -2
  130. package/es/locale/zh_CN.mjs +81 -3
  131. package/es/style/tailwind.scss +7 -3
  132. package/es/utils/adaptive.mjs +1 -3
  133. package/es/utils/form.mjs +19 -12
  134. package/es/utils/handler.mjs +4 -8
  135. package/es/utils/input.mjs +8 -9
  136. package/es/utils/map/hook/bigMap.mjs +14 -53
  137. package/es/utils/map/hook/gaode.mjs +5 -20
  138. package/es/utils/map/hook/leafletjs.mjs +23 -79
  139. package/es/utils/map/index.mjs +2 -8
  140. package/es/utils/map/js/webgis.mjs +12 -12
  141. package/es/version.mjs +1 -1
  142. package/lib/api/device.js +2 -3
  143. package/lib/api/exportExcel.js +62 -0
  144. package/lib/api/index.js +27 -16
  145. package/lib/api/mapRail.js +34 -0
  146. package/lib/api/organization.js +17 -8
  147. package/lib/api/rule.js +33 -0
  148. package/lib/api/sypct.js +2 -3
  149. package/lib/api/task.js +2 -3
  150. package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +17 -18
  151. package/lib/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
  152. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +515 -0
  153. package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +182 -0
  154. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +320 -0
  155. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.js +123 -0
  156. package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +362 -0
  157. package/lib/bussiness/hyElectronicFence/index.js +21 -0
  158. package/lib/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
  159. package/lib/bussiness/hyElectronicFence/style/electronicFenceAssociatedUsersDialog.scss +25 -0
  160. package/lib/bussiness/hyMapAearchPlace/js/index.js +1 -1
  161. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +4 -6
  162. package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
  163. package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.js +274 -0
  164. package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.js +255 -0
  165. package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.js +255 -0
  166. package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.js +399 -0
  167. package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.js +655 -0
  168. package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.js +361 -0
  169. package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.js +265 -0
  170. package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.js +364 -0
  171. package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.js +244 -0
  172. package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.js +262 -0
  173. package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.js +244 -0
  174. package/lib/bussiness/hyRuleSetting/index.js +24 -0
  175. package/lib/bussiness/hyRuleSetting/js/ruleSetting.js +68 -0
  176. package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +133 -0
  177. package/lib/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
  178. package/lib/bussiness/index.js +21 -10
  179. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -13
  180. package/lib/components/hyAudioPlayer/js/index.js +9 -14
  181. package/lib/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
  182. package/lib/components/hyButton/button.vue.js +2 -2
  183. package/lib/components/hyButton/style/button.scss +48 -74
  184. package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +123 -0
  185. package/lib/components/hyCheckboxGroup/index.js +12 -0
  186. package/lib/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
  187. package/lib/components/hyConfigProvider/configProvider.vue.js +50 -56
  188. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +56 -61
  189. package/lib/components/hyConfirmDialog/confirmMethod.js +23 -21
  190. package/lib/components/hyCutter/cutter.vue.js +8 -22
  191. package/lib/components/hyDatePicker/datePicker.vue.js +11 -16
  192. package/lib/components/hyDialog/dialog.vue.js +5 -9
  193. package/lib/components/hyDialog/style/dialog.scss +12 -13
  194. package/lib/components/hyDrawer/drawer.vue.js +104 -0
  195. package/lib/components/hyDrawer/index.js +12 -0
  196. package/lib/components/hyDrawer/style/drawer.scss +0 -0
  197. package/lib/components/hyForm/cpns/arrayItem.vue.js +9 -27
  198. package/lib/components/hyForm/cpns/arrayItem2.vue.js +202 -0
  199. package/lib/components/hyForm/cpns/extraItem.vue.js +2 -3
  200. package/lib/components/hyForm/cpns/formItem.vue.js +76 -38
  201. package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
  202. package/lib/components/hyForm/form.vue.js +53 -19
  203. package/lib/components/hyForm/js/index.js +3 -7
  204. package/lib/components/hyForm/js/useAppForm.js +5 -9
  205. package/lib/components/hyForm/style/form.scss +4 -13
  206. package/lib/components/hyIcon/icon.vue.js +3 -3
  207. package/lib/components/hyIconBox/style/iconBox.scss +2 -6
  208. package/lib/components/hyInput/inputSearch.vue.js +7 -10
  209. package/lib/components/hyInput/style/inputSearch.scss +3 -0
  210. package/lib/components/hyLoading/index.js +2 -4
  211. package/lib/components/hyMap/js/index.js +29 -4
  212. package/lib/components/hyMap/map.vue.js +17 -3
  213. package/lib/components/hyMenu/style/menu.scss +5 -15
  214. package/lib/components/hyNoPermissions/noPermissions.vue.js +3 -4
  215. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +3 -6
  216. package/lib/components/hyOrgCascader/js/index.js +1 -5
  217. package/lib/components/hyOrgCascader/orgCascader.vue.js +23 -9
  218. package/lib/components/hyOrgCascader/style/orgCascader.scss +7 -0
  219. package/lib/components/hyRadioGroup/radioGroup.vue.js +47 -40
  220. package/lib/components/hyRadioGroup/style/radioGroup.scss +9 -0
  221. package/lib/components/hySearch/cpns/searchItem.vue.js +33 -20
  222. package/lib/components/hySearch/js/index.js +1 -4
  223. package/lib/components/hySearch/js/useAppSearch.js +6 -10
  224. package/lib/components/hySearch/search.vue.js +9 -16
  225. package/lib/components/hySearch/style/search.scss +2 -0
  226. package/lib/components/hyStatus/index.js +12 -0
  227. package/lib/components/hyStatus/status.vue.js +114 -0
  228. package/lib/components/hyStatus/style/status.scss +0 -0
  229. package/lib/components/hyTable/cpns/columnSelect.vue.js +22 -26
  230. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +7 -8
  231. package/lib/components/hyTable/cpns/headerItem.vue.js +2 -2
  232. package/lib/components/hyTable/cpns/virtualTable.vue.js +17 -27
  233. package/lib/components/hyTable/js/index.js +54 -57
  234. package/lib/components/hyTable/js/useAppTable.js +2 -3
  235. package/lib/components/hyTable/style/table.scss +8 -0
  236. package/lib/components/hyTable/table.vue.js +35 -41
  237. package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -4
  238. package/lib/components/hyTableForm/batchTableForm.vue.js +3 -7
  239. package/lib/components/hyTableForm/js/index.js +3 -11
  240. package/lib/components/hyTableForm/js/useAppTableForm.js +2 -7
  241. package/lib/components/hyTableForm/style/batchTableForm.scss +26 -54
  242. package/lib/components/hyTableForm/style/tableForm.scss +3 -2
  243. package/lib/components/hyTableForm/tableForm.vue.js +89 -45
  244. package/lib/components/hyTimePicker/timePicker.vue.js +3 -4
  245. package/lib/components/hyTree/js/index.js +13 -40
  246. package/lib/components/hyTree/style/index.css +1 -1
  247. package/lib/components/hyTree/tree.vue.js +17 -16
  248. package/lib/components/hyUserAvatar/userAvatar.vue.js +3 -6
  249. package/lib/components/hyVideoPlayer/js/index.js +14 -23
  250. package/lib/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
  251. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +16 -26
  252. package/lib/components/index.js +46 -40
  253. package/lib/hooks/index.js +17 -0
  254. package/lib/hooks/useAudioPlayerConfig.js +1 -3
  255. package/lib/hooks/useBaseMainStore.js +32 -0
  256. package/lib/hooks/useCurrentBus.js +23 -0
  257. package/lib/hooks/useDialog.js +331 -0
  258. package/lib/hooks/useExportFile.js +135 -0
  259. package/lib/hooks/useGlobalConfig.js +10 -6
  260. package/lib/hooks/useLocale.js +25 -11
  261. package/lib/hooks/usePermissionMap.js +1 -3
  262. package/lib/hooks/useResizeHandler.js +1 -4
  263. package/lib/hooks/useResizeObserver.js +3 -1
  264. package/lib/hooks/useSubscribe.js +2 -1
  265. package/lib/hooks/useUserAvatarMap.js +1 -3
  266. package/lib/hooks/useVideoPlayerConfig.js +1 -3
  267. package/lib/index.js +107 -73
  268. package/lib/locale/{en.js → en_US.js} +81 -5
  269. package/lib/locale/index.js +3 -3
  270. package/lib/locale/zh_CN.js +81 -3
  271. package/lib/style/tailwind.scss +7 -3
  272. package/lib/utils/adaptive.js +1 -3
  273. package/lib/utils/form.js +17 -10
  274. package/lib/utils/handler.js +3 -7
  275. package/lib/utils/input.js +7 -8
  276. package/lib/utils/map/hook/bigMap.js +14 -53
  277. package/lib/utils/map/hook/gaode.js +5 -20
  278. package/lib/utils/map/hook/leafletjs.js +23 -79
  279. package/lib/utils/map/index.js +2 -8
  280. package/lib/utils/map/js/webgis.js +12 -12
  281. package/lib/version.js +1 -1
  282. package/package.json +3 -2
package/es/index.mjs CHANGED
@@ -3,6 +3,7 @@ import './utils/index.mjs';
3
3
  import './components/index.mjs';
4
4
  import './bussiness/index.mjs';
5
5
  import './hooks/index.mjs';
6
+ export { $t, buildLocaleContext, buildTranslator, getLang, getLanguage, lang, localeContextKey, setLang, translate, useLocale } from './hooks/useLocale.mjs';
6
7
  export { ElDatePicker, HyDatePicker } from './components/hyDatePicker/index.mjs';
7
8
  export { ElInput, HyInput, HyInputSearch } from './components/hyInput/index.mjs';
8
9
  export { ElLoading, ElLoading as HyLoading } from './components/hyLoading/index.mjs';
@@ -10,15 +11,18 @@ export { ElTimePicker, HyTimePicker } from './components/hyTimePicker/index.mjs'
10
11
  export { ElTooltip, HyTooltip } from './components/hyTooltip/index.mjs';
11
12
  export { HyAcquisitionStationTree } from './bussiness/hyAcquisitionStationTree/index.mjs';
12
13
  export { HyAddDepartmentType } from './bussiness/hyAddDepartmentType/index.mjs';
14
+ export { HyAddElectronicFenceDialog, HyBatchSetElectronicFenceUserDialog, HyElectronicFence, HyElectronicFenceAssociatedUsersDialog } from './bussiness/hyElectronicFence/index.mjs';
13
15
  export { HyAudioPlayer } from './components/hyAudioPlayer/index.mjs';
14
16
  export { HyBatchTableForm, HyTableForm } from './components/hyTableForm/index.mjs';
15
17
  export { HyBatchUploadDialog } from './components/hyBatchUploadDialog/index.mjs';
16
18
  export { HyButton } from './components/hyButton/index.mjs';
19
+ export { HyCheckboxGroup } from './components/hyCheckboxGroup/index.mjs';
17
20
  export { HyConfigProvider } from './components/hyConfigProvider/index.mjs';
18
21
  export { HyConfirmDialog } from './components/hyConfirmDialog/index.mjs';
19
22
  export { HyCutter } from './components/hyCutter/index.mjs';
20
23
  export { HyDeviceTree } from './bussiness/hyDeviceTree/index.mjs';
21
24
  export { HyDialog } from './components/hyDialog/index.mjs';
25
+ export { HyDrawer } from './components/hyDrawer/index.mjs';
22
26
  export { HyForm } from './components/hyForm/index.mjs';
23
27
  export { HyIcon } from './components/hyIcon/index.mjs';
24
28
  export { HyIconBox } from './components/hyIconBox/index.mjs';
@@ -31,7 +35,9 @@ export { HyOrgCascader } from './components/hyOrgCascader/index.mjs';
31
35
  export { HyOrgGroupTree } from './bussiness/hyOrgGroupTree/index.mjs';
32
36
  export { HyPlanGroupDeviceTree } from './bussiness/hyPlanGroupDeviceTree/index.mjs';
33
37
  export { HyRadioGroup } from './components/hyRadioGroup/index.mjs';
38
+ export { HyRuleAssignDialog, HyRuleFenceDialog, HyRuleSetting, HyRuleSettingDialog, HySetRuleAggregationAlarmDialog } from './bussiness/hyRuleSetting/index.mjs';
34
39
  export { HySearch } from './components/hySearch/index.mjs';
40
+ export { HyStatus } from './components/hyStatus/index.mjs';
35
41
  export { HyTable } from './components/hyTable/index.mjs';
36
42
  export { HyTableActionButton } from './components/hyTableActionButton/index.mjs';
37
43
  export { HyTour } from './components/hyTour/index.mjs';
@@ -43,7 +49,7 @@ export { InitMap, setMapServer, setPoiServer } from './utils/map/index.mjs';
43
49
  export { PERMISSION } from './utils/permission.mjs';
44
50
  export { base64Decrypt, encryptToBase64, generateRandomCode } from './utils/crypto.mjs';
45
51
  export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, presignedUrl, sizeToTextHandler } from './utils/file.mjs';
46
- export { buildLocaleContext, buildTranslator, getLanguage, localeContextKey, translate, useLocale } from './hooks/useLocale.mjs';
52
+ export { bus, usePublish, useSubscribe } from './hooks/useSubscribe.mjs';
47
53
  export { clearResizeObserver, useResizeObserver } from './hooks/useResizeObserver.mjs';
48
54
  export { clearSpace, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, genColumnDefaultLabel, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp } from './utils/form.mjs';
49
55
  export { cloneDeep, copyText, createUniqueId, funRunHandler, mergeDeep, withInstall } from './utils/handler.mjs';
@@ -54,6 +60,8 @@ export { formatDuration, getDefaultValueFormatByType } from './utils/date.mjs';
54
60
  export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isObject, isOverflowing, isPermission, isString, isSupportH265, isSymbol, isUndefined, isVueProxy } from './utils/is.mjs';
55
61
  export { loadingSvg } from './utils/sharedContent.mjs';
56
62
  export { localAudioPlayerConfigKey, useAudioPlayerConfig } from './hooks/useAudioPlayerConfig.mjs';
63
+ export { localBaseMainStoreKey, useBaseMainStore } from './hooks/useBaseMainStore.mjs';
64
+ export { localCurrentBusKey, useCurrentBus } from './hooks/useCurrentBus.mjs';
57
65
  export { localEnsureHyIconMapKey, useEnsureHyIcon } from './hooks/useEnsureHyIcon.mjs';
58
66
  export { localMapConfigKey, useMapConfig } from './hooks/useMapConfig.mjs';
59
67
  export { localPermissionMapKey, usePermissionMap } from './hooks/usePermissionMap.mjs';
@@ -66,8 +74,9 @@ export { resetAppSearchValue, useAppSearch } from './components/hySearch/js/useA
66
74
  export { setGlobalTreeConfig } from 'hy-virtual-tree';
67
75
  export { useAppTable } from './components/hyTable/js/useAppTable.mjs';
68
76
  export { useAppTableForm } from './components/hyTableForm/js/useAppTableForm.mjs';
77
+ export { useBatchDialog, useDialog, useDialogIsEdit } from './hooks/useDialog.mjs';
78
+ export { useExportFile } from './hooks/useExportFile.mjs';
69
79
  export { useMixins } from './hooks/useMixins.mjs';
70
- export { usePublish, useSubscribe } from './hooks/useSubscribe.mjs';
71
80
  export { useResizeHandler } from './hooks/useResizeHandler.mjs';
72
81
 
73
82
  import "./style/index.scss";
@@ -1,4 +1,4 @@
1
- var en = {
1
+ var en_US = {
2
2
  name: "en_US",
3
3
  hy: {
4
4
  language: "Language",
@@ -34,7 +34,8 @@ var en = {
34
34
  additionalInformationTip: "Editor's Supplementary Information (Optional)",
35
35
  additionalInformationHoverTip: "Click To Expand And View More Detailed Information. (This Is An Optional Field)",
36
36
  dynamicFormItem: "Dynamic Form Item",
37
- addFormItem: "Add Form Item"
37
+ addFormItem: "Add Form Item",
38
+ characterLimit: "{0} should be limited to {1} characters or fewer"
38
39
  },
39
40
  table: {
40
41
  hideFilter: "Hide filter",
@@ -50,11 +51,11 @@ var en = {
50
51
  moreOperations: "More Operations",
51
52
  nonsupport: "Nonsupport",
52
53
  editColumn: "Edit Column",
53
- Index: "\u5E8F\u53F7",
54
+ index: "Index",
54
55
  searchFor: "Search For {0}",
55
56
  searchByInput: 'Search by input <span class="text-theme font-bold">{0}</span>',
56
57
  example: "Example",
57
- operator: "Operator"
58
+ operation: "Operation"
58
59
  },
59
60
  dialog: {
60
61
  content: "Secondary Confirmation Operation",
@@ -145,6 +146,25 @@ var en = {
145
146
  startYear: "Start Year",
146
147
  endYear: "End Year"
147
148
  },
149
+ // 业务通用
150
+ bussiness: {
151
+ add: "Add",
152
+ edit: "Edit",
153
+ delete: "Delete",
154
+ department: "Department",
155
+ successfulDeletion: "Successful Deletion",
156
+ clear: "Clear",
157
+ operationSuccessful: "Operation Successful",
158
+ associate: "Associate",
159
+ confirmDeletion: "Confirm Deletion",
160
+ deletingThisWillResultInIrrecoverableLossAreYouSureYouWantToDeleteThis: "After deletion, it cannot be restored. Are you sure you want to delete this {0}?",
161
+ importOperation: "Import Operation",
162
+ exportOperation: "Export Operation",
163
+ creationPersonnel: "Creation Personnel",
164
+ creationTime: "Creation Time",
165
+ creator: "Creator"
166
+ },
167
+ // 部门类型
148
168
  departmentType: {
149
169
  editDepartmentType: "Edit Department Type",
150
170
  addDepartmentType: "Add Department Type",
@@ -159,7 +179,63 @@ var en = {
159
179
  editDeviceCover: "Edit Device Cover",
160
180
  close: "Close",
161
181
  save: "Save"
182
+ },
183
+ // 电子围栏
184
+ electronicFence: {
185
+ electronicFence: "Electronic Fence",
186
+ electronicFenceName: "Electronic Fence Name",
187
+ pleaseSelectAGeofence: "Please Select A Geofence",
188
+ associateUser: "Associate User",
189
+ employeeIDAccountNameDepartmentNameToFilter: "Employee ID Account Name Department Name To Filter",
190
+ createInformation: "Create Information",
191
+ addAnElectronicFence: "Add An Electronic Fence",
192
+ addASingleElectronicFence: "Add A Single Electronic Fence",
193
+ importAssociatedUsers: "Import Associated Users",
194
+ uploadTheAssociatedUserTemplateAndLinkTheUsersFilledInTheTemplateToTheCorrespondingFences: "Upload The Associated User Template And Link The Users Filled In The Template To The Corresponding Fences.",
195
+ exportFenceInformation: "Export Fence Information",
196
+ exportTheSelectedFenceInformation: "Export The Selected Fence Information",
197
+ exportSelectedFenceInformationOnlyExportsTheSelectedFencesThatHaveBeenCheckedThisIsSuitableForTargetedVerification: "Only Export The Selected Fences, Applicable For Targeted Verification.",
198
+ exportAllFenceInformation: "Export All Fence Information",
199
+ exportAllTheElectronicFenceInformationFromTheList: "Export All The Electronic Fence Information From The List\uFF08.xlsx\uFF09",
200
+ exportTheAssociatedUserTemplate: "Export The Associated User Template",
201
+ exportTheSelectedAssociatedUserTemplate: "Export The Selected Associated User Template",
202
+ onlyForTheSelectedFencesGenerateTheAssociatedUserTemplateAfterFillingInUploadItThroughTheImportAssociatedUsersOption: 'Only For The Selected Fences, Generate The Associated User Template. After Filling In, Upload It Through The "Import Associated Users" Option.',
203
+ exportAllAssociatedUserTemplates: "Export All Associated User Templates",
204
+ downloadTheTemplateForAssociatingTheFenceWithUsersFillInTheBindingRelationshipBetweenTheFenceAndTheUsersAndThenUploadItThroughTheImportAssociatedUsersOption: 'Download The Template For Associating The Fence With Users, Fill In The Binding Relationship Between The Fence And The Users, And Then Upload It Through The "Import Associated Users" Option.',
205
+ editTheElectronicFence: "Edit The Electronic Fence",
206
+ associatedUserName: "Associated User Name",
207
+ associatedUserAccount: "Associated User Account",
208
+ batchImportAssociatedUsers: "Batch Import Associated Users"
209
+ },
210
+ // 规则设置
211
+ ruleSetting: {
212
+ noEntry: "No Entry",
213
+ noExit: "No Exit",
214
+ silent: "Silent",
215
+ scheduledPhoto: "Scheduled Photo",
216
+ scheduledVideo: "Scheduled Video",
217
+ scheduledFeedback: "Scheduled Feedback",
218
+ gather: "Gather",
219
+ ruleName: "Rule Name",
220
+ areaName: "Area Name",
221
+ stayTime: "Stay Time",
222
+ personnelIntervalThreshold: "Personnel Interval Threshold",
223
+ executionTime: "Execution Time",
224
+ everyDay: "Every Day",
225
+ rice: "Rice",
226
+ distribution: "Distribution",
227
+ assignRules: "Assign Rules",
228
+ userName: "User Name",
229
+ deviceIMEI: "Device IMEI",
230
+ pleaseSelectTheUser: "Please Select The User",
231
+ railName: "Rail Name",
232
+ workingHours: "Working Hours",
233
+ captureMode: "Capture Mode",
234
+ loopSnapshot: "Loop Snapshot",
235
+ independentSnapshot: "Independent Snapshot",
236
+ snapshotInterval: "Snapshot Interval",
237
+ second: "Second"
162
238
  }
163
239
  };
164
240
 
165
- export { en as default };
241
+ export { en_US as default };
@@ -1,2 +1,2 @@
1
- export { default as en } from './en.mjs';
2
- export { default as zhCn } from './zh_CN.mjs';
1
+ export { default as en_US } from './en_US.mjs';
2
+ export { default as zh_CN } from './zh_CN.mjs';
@@ -27,14 +27,16 @@ var zh_CN = {
27
27
  wednesday: "\u661F\u671F\u4E09",
28
28
  thursday: "\u661F\u671F\u56DB",
29
29
  friday: "\u661F\u671F\u4E94",
30
- saturday: "\u661F\u671F\u516D"
30
+ saturday: "\u661F\u671F\u516D",
31
+ to: "\u81F3"
31
32
  },
32
33
  form: {
33
34
  department: "\u6240\u5C5E\u90E8\u95E8",
34
35
  additionalInformationTip: "\u7F16\u8F91\u8865\u5145\u4FE1\u606F (\u9009\u586B)",
35
36
  additionalInformationHoverTip: "\u70B9\u51FB\u53EF\u5C55\u5F00\u8865\u5145\u66F4\u591A\u4FE1\u606F\uFF0C\u975E\u5FC5\u586B\u9879",
36
37
  dynamicFormItem: "\u52A8\u6001\u8868\u5355\u9879",
37
- addFormItem: "\u6DFB\u52A0\u8868\u5355\u9879"
38
+ addFormItem: "\u6DFB\u52A0\u8868\u5355\u9879",
39
+ characterLimit: "{0}\u9650\u5236\u5728{1}\u4F4D\u5B57\u7B26\u4EE5\u5185"
38
40
  },
39
41
  table: {
40
42
  hideFilter: "\u9690\u85CF\u7B5B\u9009\u5668",
@@ -55,7 +57,7 @@ var zh_CN = {
55
57
  searchByInput: '\u53EF\u8F93\u5165 <span class="text-theme font-bold">{0}</span> \u8FDB\u884C\u641C\u7D22',
56
58
  maxColumnLimitTip: "\u5DF2\u8FBE\u5230\u5B57\u6BB5\u6570\u91CF\u4E0A\u9650(\u6700\u591A15\u4E2A)\uFF0C\u8BF7\u53D6\u6D88\u90E8\u5206\u5B57\u6BB5\u540E\u518D\u786E\u8BA4",
57
59
  example: "\u793A\u4F8B",
58
- operator: "\u64CD\u4F5C"
60
+ operation: "\u64CD\u4F5C"
59
61
  },
60
62
  dialog: {
61
63
  content: "\u4E8C\u6B21\u786E\u8BA4\u64CD\u4F5C",
@@ -141,6 +143,26 @@ var zh_CN = {
141
143
  startYear: "\u5F00\u59CB\u5E74\u4EFD",
142
144
  endYear: "\u7ED3\u675F\u5E74\u4EFD"
143
145
  },
146
+ // 业务通用
147
+ bussiness: {
148
+ add: "\u6DFB\u52A0",
149
+ edit: "\u7F16\u8F91",
150
+ delete: "\u5220\u9664",
151
+ department: "\u6240\u5C5E\u90E8\u95E8",
152
+ successfulDeletion: "\u5220\u9664\u6210\u529F",
153
+ clear: "\u6E05\u7A7A",
154
+ operationSuccessful: "\u64CD\u4F5C\u6210\u529F",
155
+ associate: "\u5173\u8054",
156
+ confirmDeletion: "\u786E\u8BA4\u5220\u9664",
157
+ deletingThisWillResultInIrrecoverableLossAreYouSureYouWantToDeleteThis: "\u5220\u9664\u540E\u65E0\u6CD5\u8FD8\u539F\uFF0C\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5{0}\uFF1F",
158
+ importOperation: "\u5BFC\u5165\u64CD\u4F5C",
159
+ exportOperation: "\u5BFC\u51FA\u64CD\u4F5C",
160
+ creationPersonnel: "\u521B\u5EFA\u4EBA\u5458",
161
+ creationTime: "\u521B\u5EFA\u65F6\u95F4",
162
+ noPermission: "\u65E0\u6743\u9650",
163
+ creator: "\u521B\u5EFA\u4EBA"
164
+ },
165
+ // 部门类型
144
166
  departmentType: {
145
167
  editDepartmentType: "\u7F16\u8F91\u90E8\u95E8\u7C7B\u578B",
146
168
  addDepartmentType: "\u6DFB\u52A0\u90E8\u95E8\u7C7B\u578B",
@@ -155,6 +177,62 @@ var zh_CN = {
155
177
  editDeviceCover: "\u7F16\u8F91\u8BBE\u5907\u5C01\u9762",
156
178
  close: "\u5173 \u95ED",
157
179
  save: "\u4FDD \u5B58"
180
+ },
181
+ // 电子围栏
182
+ electronicFence: {
183
+ electronicFence: "\u7535\u5B50\u56F4\u680F",
184
+ electronicFenceName: "\u7535\u5B50\u56F4\u680F\u540D\u79F0",
185
+ pleaseSelectAGeofence: "\u8BF7\u9009\u62E9\u56F4\u680F",
186
+ associateUser: "\u5173\u8054\u7528\u6237",
187
+ employeeIDAccountNameDepartmentNameToFilter: "\u4EBA\u5458\u5DE5\u53F7\u3001\u8D26\u53F7\u3001\u540D\u79F0\u3001\u90E8\u95E8\u540D\u79F0\u8FDB\u884C\u7B5B\u9009",
188
+ createInformation: "\u521B\u5EFA\u4FE1\u606F",
189
+ addAnElectronicFence: "\u6DFB\u52A0\u7535\u5B50\u56F4\u680F",
190
+ addASingleElectronicFence: "\u6DFB\u52A0\u5355\u4E2A\u7535\u5B50\u56F4\u680F",
191
+ importAssociatedUsers: "\u5BFC\u5165\u5173\u8054\u7528\u6237",
192
+ uploadTheAssociatedUserTemplateAndLinkTheUsersFilledInTheTemplateToTheCorrespondingFences: "\u4E0A\u4F20\u5173\u8054\u7528\u6237\u6A21\u677F\uFF0C\u5C06\u6A21\u677F\u4E2D\u586B\u5199\u7684\u7528\u6237\u5173\u8054\u5230\u5BF9\u5E94\u56F4\u680F",
193
+ exportFenceInformation: "\u5BFC\u51FA\u56F4\u680F\u4FE1\u606F",
194
+ exportTheSelectedFenceInformation: "\u5BFC\u51FA\u9009\u4E2D\u56F4\u680F\u4FE1\u606F",
195
+ exportSelectedFenceInformationOnlyExportsTheSelectedFencesThatHaveBeenCheckedThisIsSuitableForTargetedVerification: "\u4EC5\u5BFC\u51FA\u5DF2\u52FE\u9009\u7684\u56F4\u680F\uFF0C\u9002\u7528\u4E8E\u5B9A\u5411\u6838\u5BF9",
196
+ exportAllFenceInformation: "\u5BFC\u51FA\u6240\u6709\u56F4\u680F\u4FE1\u606F",
197
+ exportAllTheElectronicFenceInformationFromTheList: "\u5BFC\u51FA\u5217\u8868\u4E2D\u6240\u6709\u7535\u5B50\u56F4\u680F\u4FE1\u606F\uFF08.xlsx\uFF09",
198
+ exportTheAssociatedUserTemplate: "\u5BFC\u51FA\u5173\u8054\u7528\u6237\u6A21\u677F",
199
+ exportTheSelectedAssociatedUserTemplate: "\u5BFC\u51FA\u9009\u4E2D\u5173\u8054\u7528\u6237\u6A21\u677F",
200
+ onlyForTheSelectedFencesGenerateTheAssociatedUserTemplateAfterFillingInUploadItThroughTheImportAssociatedUsersOption: "\u4EC5\u9488\u5BF9\u5DF2\u52FE\u9009\u56F4\u680F\u751F\u6210\u5173\u8054\u7528\u6237\u6A21\u677F\uFF0C\u586B\u5199\u540E\u901A\u8FC7\u300C\u5BFC\u5165\u5173\u8054\u7528\u6237\u300D\u4E0A\u4F20",
201
+ exportAllAssociatedUserTemplates: "\u5BFC\u51FA\u6240\u6709\u5173\u8054\u7528\u6237\u6A21\u677F",
202
+ downloadTheTemplateForAssociatingTheFenceWithUsersFillInTheBindingRelationshipBetweenTheFenceAndTheUsersAndThenUploadItThroughTheImportAssociatedUsersOption: "\u4E0B\u8F7D\u56F4\u680F\u5173\u8054\u7528\u6237\u6A21\u677F\uFF0C\u586B\u5199\u56F4\u680F\u4E0E\u7528\u6237\u7684\u7ED1\u5B9A\u5173\u7CFB\u540E\uFF0C\u901A\u8FC7\u300C\u5BFC\u5165\u5173\u8054\u7528\u6237\u300D\u4E0A\u4F20",
203
+ editTheElectronicFence: "\u7F16\u8F91\u7535\u5B50\u56F4\u680F",
204
+ associatedUserName: "\u5173\u8054\u7528\u6237\u540D\u79F0",
205
+ associatedUserAccount: "\u5173\u8054\u7528\u6237\u8D26\u53F7",
206
+ batchImportAssociatedUsers: "\u6279\u91CF\u5BFC\u5165\u5173\u8054\u7528\u6237"
207
+ },
208
+ // 规则设置
209
+ ruleSetting: {
210
+ noEntry: "\u7981\u5165",
211
+ noExit: "\u7981\u51FA",
212
+ silent: "\u9759\u9ED8",
213
+ scheduledPhoto: "\u5B9A\u65F6\u62CD\u7167",
214
+ scheduledVideo: "\u5B9A\u65F6\u5F55\u50CF",
215
+ scheduledFeedback: "\u5B9A\u65F6\u56DE\u4F20",
216
+ gather: "\u805A\u96C6",
217
+ ruleName: "\u89C4\u5219\u540D\u79F0",
218
+ areaName: "\u533A\u57DF\u540D\u79F0",
219
+ stayTime: "\u505C\u7559\u65F6\u95F4",
220
+ personnelIntervalThreshold: "\u4EBA\u5458\u95F4\u9694\u9608\u503C",
221
+ executionTime: "\u6267\u884C\u65F6\u95F4",
222
+ everyDay: "\u6BCF\u4E00\u5929",
223
+ rice: "\u7C73",
224
+ distribution: "\u5206\u914D",
225
+ assignRules: "\u5206\u914D\u89C4\u5219",
226
+ userName: "\u4F7F\u7528\u8005\u540D\u79F0",
227
+ deviceIMEI: "\u8BBE\u5907IMEI",
228
+ pleaseSelectTheUser: "\u8BF7\u9009\u62E9\u4F7F\u7528\u8005",
229
+ railName: "\u56F4\u680F\u540D\u79F0",
230
+ workingHours: "\u5DE5\u4F5C\u65F6\u95F4",
231
+ captureMode: "\u6293\u62CD\u6A21\u5F0F",
232
+ loopSnapshot: "\u5FAA\u73AF\u6293\u62CD",
233
+ independentSnapshot: "\u72EC\u7ACB\u6293\u62CD",
234
+ snapshotInterval: "\u6293\u62CD\u95F4\u9694",
235
+ second: "\u79D2"
158
236
  }
159
237
  };
160
238
 
@@ -1,4 +1,6 @@
1
- *, ::before, ::after {
1
+ *,
2
+ ::before,
3
+ ::after {
2
4
  --tw-border-spacing-x: 0;
3
5
  --tw-border-spacing-y: 0;
4
6
  --tw-translate-x: 0;
@@ -118,11 +120,13 @@
118
120
  @tailwind components;
119
121
  @tailwind utilities;
120
122
 
121
- html,body, #app{
123
+ html,
124
+ body,
125
+ #app {
122
126
  width: 100%;
123
127
  height: 100%;
124
128
  position: relative;
125
- background: rgb(var(--hy-background), var(--tw-bg-opacity, 1));
129
+ background: rgb(var(--hy-background), var(--tw-bg-opacity, 1));
126
130
  }
127
131
 
128
132
  ol,
@@ -4,9 +4,7 @@ function vwToPx(vw) {
4
4
  return vw * window.innerWidth / 100;
5
5
  }
6
6
  function remToPx(rem) {
7
- const rootFontSize = parseFloat(
8
- window.getComputedStyle(document.documentElement).fontSize
9
- );
7
+ const rootFontSize = parseFloat(window.getComputedStyle(document.documentElement).fontSize);
10
8
  return rem * rootFontSize;
11
9
  }
12
10
  function pxTorem(px) {
package/es/utils/form.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { unref } from 'vue';
2
2
  import '../hooks/index.mjs';
3
- import { isString, isArray, isBoolean, isFunction, isObject, isEmpty } from './is.mjs';
4
- import { useLocale } from '../hooks/useLocale.mjs';
3
+ import { isString, isArray, isBoolean, isFunction, isObject, isNumber, isEmpty } from './is.mjs';
4
+ import { $t } from '../hooks/useLocale.mjs';
5
5
 
6
6
  function getValueByProp(model, prop) {
7
7
  if (isString(prop)) {
@@ -52,21 +52,20 @@ function clearSpace(value, type = "between") {
52
52
  return value;
53
53
  }
54
54
  const genRuleRequiredMsgHandler = (column, model) => {
55
- const { t } = useLocale();
56
55
  const { type, prop } = column || {};
57
56
  const label = columnLabelHandler(column, model);
58
57
  if (!prop || !prop?.length) return "";
59
58
  switch (type) {
60
59
  case "input":
61
60
  case "input-number":
62
- return t("hy.pleaseEnterPlaceholder", [label]);
61
+ return $t("hy.pleaseEnterPlaceholder", [label]);
63
62
  case "select":
64
63
  case "radio":
65
64
  case "checkbox":
66
65
  case "date-picker":
67
- return t("hy.pleaseSelectPlaceholder", [label]);
66
+ return $t("hy.pleaseSelectPlaceholder", [label]);
68
67
  default:
69
- return t("hy.cannotBeEmpty", [label]);
68
+ return $t("hy.cannotBeEmpty", [label]);
70
69
  }
71
70
  };
72
71
  const requiredHandler = (column, model) => {
@@ -84,7 +83,7 @@ const ruleHandler = (column, model) => {
84
83
  }
85
84
  return [];
86
85
  };
87
- const columnRuleHandler = (column, model) => {
86
+ const columnRuleHandler = (column, model, config) => {
88
87
  const rules = ruleHandler(column, model);
89
88
  if (column.required) {
90
89
  rules.unshift({
@@ -92,15 +91,24 @@ const columnRuleHandler = (column, model) => {
92
91
  message: genRuleRequiredMsgHandler(column, model)
93
92
  });
94
93
  }
94
+ if (config && config.business === "tableForm") {
95
+ if (column.type === "input" && column.attrs.type === "text") {
96
+ if (!rules.some((item) => isNumber(item.max))) {
97
+ rules.push({
98
+ max: 255,
99
+ message: $t("form.characterLimit", [columnLabelHandler(column, model), 255])
100
+ });
101
+ }
102
+ }
103
+ }
95
104
  return rules;
96
105
  };
97
106
  const genColumnDefaultLabel = (column) => {
98
107
  if (column.label) return unref(column.label);
99
- const { t } = useLocale();
100
108
  switch (column.type) {
101
109
  // 部门级联选择框
102
110
  case "org-cascader":
103
- return t("form.department");
111
+ return $t("form.department");
104
112
  }
105
113
  };
106
114
  const columnLabelHandler = (column, model) => {
@@ -112,7 +120,6 @@ const columnLabelHandler = (column, model) => {
112
120
  return label;
113
121
  };
114
122
  function columnPlaceholderHandler(column, model) {
115
- const { t } = useLocale();
116
123
  const { type, attrs = {} } = column || {};
117
124
  if (isFunction(attrs.placeholder)) {
118
125
  const placeholder2 = unref(attrs.placeholder);
@@ -125,13 +132,13 @@ function columnPlaceholderHandler(column, model) {
125
132
  case "input-number":
126
133
  case "lat":
127
134
  case "lon":
128
- placeholder = placeholder || t("hy.pleaseEnterPlaceholder", [label]);
135
+ placeholder = placeholder || $t("hy.pleaseEnterPlaceholder", [label]);
129
136
  break;
130
137
  case "select":
131
138
  case "date-picker":
132
139
  case "time-picker":
133
140
  case "org-cascader":
134
- placeholder = placeholder || t("hy.pleaseSelectPlaceholder", [label]);
141
+ placeholder = placeholder || $t("hy.pleaseSelectPlaceholder", [label]);
135
142
  break;
136
143
  default:
137
144
  placeholder = placeholder || label;
@@ -2,7 +2,7 @@ import 'vue';
2
2
  import { ElMessage } from 'element-plus';
3
3
  import { isFunction, isVueProxy, isArray, isObject, isEmpty } from './is.mjs';
4
4
  import '../index.mjs';
5
- import { useLocale } from '../hooks/useLocale.mjs';
5
+ import { $t } from '../hooks/useLocale.mjs';
6
6
 
7
7
  function funRunHandler(target, ...args) {
8
8
  if (isFunction(target)) {
@@ -39,10 +39,7 @@ const mergeDeep = (target, value) => {
39
39
  if (isObject(target)) {
40
40
  const obj = {};
41
41
  Object.keys(target).forEach((key) => {
42
- obj[key] = mergeDeep(
43
- target[key],
44
- isEmpty(value[key]) ? target[key] : value[key]
45
- );
42
+ obj[key] = mergeDeep(target[key], isEmpty(value[key]) ? target[key] : value[key]);
46
43
  });
47
44
  Object.keys(value).forEach((key) => {
48
45
  if (isEmpty(value[key])) return;
@@ -83,11 +80,10 @@ const withInstall = (comp, name) => {
83
80
  return comp;
84
81
  };
85
82
  async function copyText(text) {
86
- const { t } = useLocale();
87
83
  if (navigator.clipboard) {
88
84
  try {
89
85
  await navigator.clipboard.writeText(text);
90
- ElMessage.success(t("hy.copySuccessfully"));
86
+ ElMessage.success($t("hy.copySuccessfully"));
91
87
  return;
92
88
  } catch {
93
89
  }
@@ -99,7 +95,7 @@ async function copyText(text) {
99
95
  input.select();
100
96
  document.execCommand("copy");
101
97
  document.body.removeChild(input);
102
- ElMessage.success(t("hy.copySuccessfully"));
98
+ ElMessage.success($t("hy.copySuccessfully"));
103
99
  } catch (err) {
104
100
  console.error(err);
105
101
  return Promise.reject();
@@ -1,5 +1,5 @@
1
1
  import '../hooks/index.mjs';
2
- import { useLocale } from '../hooks/useLocale.mjs';
2
+ import { $t } from '../hooks/useLocale.mjs';
3
3
 
4
4
  function formatNumber(n) {
5
5
  n = n.toString();
@@ -9,15 +9,14 @@ function formatTimeFn(number, format) {
9
9
  const time = new Date(number);
10
10
  const newArr = [];
11
11
  const formatArr = ["Y", "M", "D", "day", "h", "m", "s"];
12
- const { t } = useLocale();
13
12
  const arrWeek = [
14
- t("hy.sunday"),
15
- t("hy.monday"),
16
- t("hy.tuesday"),
17
- t("hy.wednesday"),
18
- t("hy.thursday"),
19
- t("hy.friday"),
20
- t("hy.saturday")
13
+ $t("hy.sunday"),
14
+ $t("hy.monday"),
15
+ $t("hy.tuesday"),
16
+ $t("hy.wednesday"),
17
+ $t("hy.thursday"),
18
+ $t("hy.friday"),
19
+ $t("hy.saturday")
21
20
  ];
22
21
  newArr.push(time.getFullYear());
23
22
  newArr.push(formatNumber(time.getMonth() + 1));
@@ -8,9 +8,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
8
8
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
9
9
  const CIRCLE_SEGMENTS = 36;
10
10
  function remToPx(rem) {
11
- const rootFontSize = parseFloat(
12
- getComputedStyle(document.documentElement).fontSize
13
- );
11
+ const rootFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
14
12
  return rem * rootFontSize;
15
13
  }
16
14
  function rangingStartIconOption(options, dicId) {
@@ -308,11 +306,7 @@ class bigMap extends EventEmitter {
308
306
  if (!newEvent.layer.getLatLngs) {
309
307
  newEvent.layer.getLatLngs = () => {
310
308
  const circle = newEvent.layer;
311
- const points = circleToPolygonPoints(
312
- circle.getLatLng(),
313
- circle.getRadius() / 1e3,
314
- true
315
- );
309
+ const points = circleToPolygonPoints(circle.getLatLng(), circle.getRadius() / 1e3, true);
316
310
  return [latLngListCheckExport(points)];
317
311
  };
318
312
  } else {
@@ -445,9 +439,7 @@ class bigMap extends EventEmitter {
445
439
  map.addLayer(displayCluster);
446
440
  const toNativeMarkers = (list = []) => {
447
441
  const markers = Array.isArray(list) ? list : [list];
448
- return markers.map(
449
- (marker) => marker?.getInitMarker ? marker.getInitMarker() : marker
450
- ).filter(Boolean);
442
+ return markers.map((marker) => marker?.getInitMarker ? marker.getInitMarker() : marker).filter(Boolean);
451
443
  };
452
444
  const handlers = {
453
445
  remove: function(target) {
@@ -489,10 +481,7 @@ class bigMap extends EventEmitter {
489
481
  },
490
482
  // 圆形转多边形坐标
491
483
  getLatLngs: function(target) {
492
- const points = circleToPolygonPoints(
493
- target.getLatLng(),
494
- target.getRadius() / 1e3
495
- );
484
+ const points = circleToPolygonPoints(target.getLatLng(), target.getRadius() / 1e3);
496
485
  return [latLngListCheckExport(points)];
497
486
  }
498
487
  };
@@ -663,9 +652,7 @@ class bigMap extends EventEmitter {
663
652
  layer = e.layer;
664
653
  if (!layer._latlngs) {
665
654
  const center = latAndLngCheckExport(layer.getLatLng());
666
- layer._latlngs = [
667
- circleToPolygonPoints(center, layer.getRadius() / 1e3, true)
668
- ];
655
+ layer._latlngs = [circleToPolygonPoints(center, layer.getRadius() / 1e3, true)];
669
656
  } else {
670
657
  layer._latlngs[0] = latLngListCheckExport(layer._latlngs[0]);
671
658
  }
@@ -804,12 +791,8 @@ class bigMap extends EventEmitter {
804
791
  function calcTotalDistance(index, preIndex) {
805
792
  const current = rangingMarker[index].options.extData.latlng;
806
793
  const previous = rangingMarker[preIndex].options.extData.latlng;
807
- const distance = parseFloat(
808
- (map.distance(current, previous) / 1e3).toFixed(2)
809
- );
810
- const total = parseFloat(
811
- rangingMarker[preIndex].options.extData.distance || 0
812
- );
794
+ const distance = parseFloat((map.distance(current, previous) / 1e3).toFixed(2));
795
+ const total = parseFloat(rangingMarker[preIndex].options.extData.distance || 0);
813
796
  return (distance + total).toFixed(2);
814
797
  }
815
798
  function removeLineBetween(groupIndex, aIndex, bIndex) {
@@ -825,9 +808,7 @@ class bigMap extends EventEmitter {
825
808
  function setStartIcon(index) {
826
809
  const markerItem = rangingMarker[index];
827
810
  markerItem.setIcon({
828
- divIcon: _this.DivIcon(
829
- rangingStartIconOption(options, markerItem.options.extData.dicId)
830
- )
811
+ divIcon: _this.DivIcon(rangingStartIconOption(options, markerItem.options.extData.dicId))
831
812
  });
832
813
  markerItem.options.extData.distance = 0;
833
814
  }
@@ -835,14 +816,7 @@ class bigMap extends EventEmitter {
835
816
  const markerItem = rangingMarker[index];
836
817
  const isLast = showDeleteAll ?? !rangingMarker[index + 1]?.options?.extData?.distance;
837
818
  markerItem.setIcon({
838
- divIcon: _this.DivIcon(
839
- rangingPointIconOption(
840
- options,
841
- distance,
842
- markerItem.options.extData.dicId,
843
- isLast
844
- )
845
- )
819
+ divIcon: _this.DivIcon(rangingPointIconOption(options, distance, markerItem.options.extData.dicId, isLast))
846
820
  });
847
821
  markerItem.options.extData.distance = distance;
848
822
  }
@@ -870,10 +844,7 @@ class bigMap extends EventEmitter {
870
844
  rangingPointsIng.push({ lat, lng });
871
845
  } else {
872
846
  const latlngs = [
873
- [
874
- rangingPointsIng[rangingPointsIng.length - 1].lat,
875
- rangingPointsIng[rangingPointsIng.length - 1].lng
876
- ],
847
+ [rangingPointsIng[rangingPointsIng.length - 1].lat, rangingPointsIng[rangingPointsIng.length - 1].lng],
877
848
  [lat, lng]
878
849
  ];
879
850
  const polyline = _this.Polyline(latlngs, {
@@ -891,13 +862,9 @@ class bigMap extends EventEmitter {
891
862
  { lat: latlngs[1][0], lng: latlngs[1][1] }
892
863
  );
893
864
  distance = parseFloat((distance / 1e3).toFixed(2));
894
- const total = parseFloat(
895
- rangingMarker[rangingMarker.length - 1].options.extData.distance || 0
896
- );
865
+ const total = parseFloat(rangingMarker[rangingMarker.length - 1].options.extData.distance || 0);
897
866
  distance = (distance + total).toFixed(2);
898
- const customIcon = _this.DivIcon(
899
- rangingPointIconOption(options, distance, dicId)
900
- );
867
+ const customIcon = _this.DivIcon(rangingPointIconOption(options, distance, dicId));
901
868
  const markerItem = _this.Marker({
902
869
  position: { lat, lng },
903
870
  icon: customIcon,
@@ -963,10 +930,7 @@ class bigMap extends EventEmitter {
963
930
  if (changeIndex - 1 === index) {
964
931
  setStartIcon(changeIndex);
965
932
  } else {
966
- setPointIcon(
967
- changeIndex,
968
- calcTotalDistance(changeIndex, changeIndex - 1)
969
- );
933
+ setPointIcon(changeIndex, calcTotalDistance(changeIndex, changeIndex - 1));
970
934
  }
971
935
  changeIndex++;
972
936
  }
@@ -999,10 +963,7 @@ class bigMap extends EventEmitter {
999
963
  let changeIndex = index + 1;
1000
964
  while (rangingMarker[changeIndex]?.options?.extData?.distance) {
1001
965
  const disIndex = changeIndex - 1 === index ? changeIndex - 2 : changeIndex - 1;
1002
- setPointIcon(
1003
- changeIndex,
1004
- calcTotalDistance(changeIndex, disIndex)
1005
- );
966
+ setPointIcon(changeIndex, calcTotalDistance(changeIndex, disIndex));
1006
967
  changeIndex++;
1007
968
  }
1008
969
  setTimeout(() => {