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
@@ -1,14 +1,14 @@
1
- import { defineComponent, useTemplateRef, computed, ref, reactive, provide, toRefs, onMounted, nextTick, unref, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeStyle, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, createVNode, createSlots, renderSlot } from 'vue';
1
+ import { defineComponent, useTemplateRef, inject, ref, computed, reactive, provide, toRefs, onMounted, watch, unref, nextTick, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeStyle, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, createVNode, createSlots, renderSlot } from 'vue';
2
2
  import { ElForm, ElDivider } from 'element-plus';
3
3
  import '../../hooks/index.mjs';
4
4
  import '../../utils/index.mjs';
5
- import _sfc_main$4 from './cpns/formItem.vue.mjs';
5
+ import _sfc_main$5 from './cpns/formItem.vue.mjs';
6
6
  import _sfc_main$1 from './cpns/extraItem.vue.mjs';
7
7
  import _sfc_main$2 from './cpns/arrayItem.vue.mjs';
8
- import _sfc_main$3 from './cpns/locationSelect.vue.mjs';
8
+ import _sfc_main$3 from './cpns/arrayItem2.vue.mjs';
9
+ import _sfc_main$4 from './cpns/locationSelect.vue.mjs';
9
10
  import { formContextKey, columnShowHandler, columnItemStyle } from './js/index.mjs';
10
11
  import { resetAppFormValue } from './js/useAppForm.mjs';
11
- import { useLocale } from '../../hooks/useLocale.mjs';
12
12
  import { isArray, isNumber } from '../../utils/is.mjs';
13
13
 
14
14
  import "./style/form.scss";
@@ -54,14 +54,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
54
54
  showMessage: {
55
55
  type: Boolean,
56
56
  default: true
57
+ },
58
+ business: {
59
+ type: String,
60
+ default: "default"
61
+ // default-默认 tableForm-表格表单
57
62
  }
58
63
  },
59
- emits: ["on-allMapSelect", "complete"],
64
+ emits: ["on-allMapSelect", "complete", "optionsStatus"],
60
65
  setup(__props, { expose: __expose, emit: __emit }) {
61
66
  const props = __props;
62
67
  const emits = __emit;
63
- const { t } = useLocale();
64
68
  const formTemplateRef = useTemplateRef("formTemplateRef");
69
+ const validateTriggerId = inject("validateTriggerId", ref(0));
65
70
  const formColumnMap = computed(() => {
66
71
  return (props.columns || []).reduce((map, column) => {
67
72
  if (isArray(column.field)) {
@@ -78,6 +83,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
78
83
  gridTemplateColumns: `repeat(${columnNum}, minmax(0, 1fr))`
79
84
  };
80
85
  });
86
+ const isTableForm = computed(() => props.business === "tableForm");
81
87
  const locationSelectRef = useTemplateRef("locationSelectRef");
82
88
  const allMapSelect = ref(false);
83
89
  function setMapSize() {
@@ -98,15 +104,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
98
104
  };
99
105
  function filterFields(fields2 = [], keys = []) {
100
106
  const filterKeys = keys.map((prop) => isArray(prop) ? prop.join(".") : prop);
101
- return filterKeys.length ? fields2.filter(
102
- (field) => field.propString && filterKeys.includes(field.propString)
103
- ) : fields2;
107
+ return filterKeys.length ? fields2.filter((field) => field.propString && filterKeys.includes(field.propString)) : fields2;
104
108
  }
105
109
  async function obtainOptionsFields(keys, isMountedLoad = false) {
106
110
  const filteredFields = filterFields(fields, keys);
107
- await Promise.allSettled(
108
- filteredFields.map((field) => field.obtainOptions(isMountedLoad))
109
- );
111
+ await Promise.allSettled(filteredFields.map((field) => field.obtainOptions(isMountedLoad)));
110
112
  }
111
113
  async function getOptions(isMountedLoad = false) {
112
114
  await obtainOptionsFields([], isMountedLoad);
@@ -117,9 +119,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
117
119
  emitOptionsStatus();
118
120
  }
119
121
  async function getOptionsError() {
120
- const filteredFields = fields.filter(
121
- (field) => field.propString && field.optionsError
122
- );
122
+ const filteredFields = fields.filter((field) => field.propString && field.optionsError);
123
123
  await Promise.allSettled(filteredFields.map((field) => field.obtainOptions()));
124
124
  emitOptionsStatus();
125
125
  }
@@ -139,6 +139,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
139
139
  );
140
140
  onMounted(() => {
141
141
  getOptions(true);
142
+ watch(validateTriggerId, () => {
143
+ unref(formTemplateRef).validate(() => {
144
+ });
145
+ });
142
146
  });
143
147
  __expose({
144
148
  validate: async (callback) => {
@@ -172,10 +176,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
172
176
  await nextTick();
173
177
  return unref(formTemplateRef).getField(fields2);
174
178
  },
175
- setMarker: (latlng) => {
179
+ setMarker: async (latlng, getAddress = false) => {
176
180
  if (locationSelectRef.value) {
177
- isArray(locationSelectRef.value) ? locationSelectRef.value.map((item) => item.setMarker(latlng)) : locationSelectRef.value.setMarker(latlng);
181
+ if (isArray(locationSelectRef.value)) {
182
+ await Promise.all(
183
+ locationSelectRef.value.map(
184
+ (item) => item.setMarker(latlng, getAddress)
185
+ )
186
+ );
187
+ } else {
188
+ await locationSelectRef.value.setMarker(latlng, getAddress);
189
+ }
178
190
  }
191
+ return 200;
179
192
  },
180
193
  clearMarker: () => {
181
194
  if (locationSelectRef.value) {
@@ -233,10 +246,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
233
246
  "div",
234
247
  {
235
248
  key: 0,
236
- class: normalizeClass(["w-full flex items-center text-theme whitespace-nowrap relative mb-3 mt-1", [
237
- __props.size === "small" ? "text-xs" : "text-sm",
238
- allMapSelect.value ? "hidden" : ""
239
- ]]),
249
+ class: normalizeClass(["w-full flex items-center text-theme whitespace-nowrap relative mb-3 mt-1", [__props.size === "small" ? "text-xs" : "text-sm", allMapSelect.value ? "hidden" : ""]]),
240
250
  style: normalizeStyle(unref(columnItemStyle)(props, column))
241
251
  },
242
252
  [
@@ -297,7 +307,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
297
307
  { key: 2 },
298
308
  [
299
309
  createCommentVNode(" \u8868\u5355\u6570\u7EC4 "),
300
- unref(columnShowHandler)(props, column) ? (openBlock(), createBlock(_sfc_main$2, {
310
+ !isTableForm.value && unref(columnShowHandler)(props, column) ? (openBlock(), createBlock(_sfc_main$2, {
301
311
  key: 0,
302
312
  class: normalizeClass([allMapSelect.value ? "hidden" : ""]),
303
313
  model: __props.model,
@@ -321,6 +331,30 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
321
331
  ])
322
332
  };
323
333
  })
334
+ ]), 1032, ["class", "model", "column", "rules", "columnNum", "loading", "disabled", "readonly", "size", "style"])) : isTableForm.value && unref(columnShowHandler)(props, column) ? (openBlock(), createBlock(_sfc_main$3, {
335
+ key: 1,
336
+ class: normalizeClass([allMapSelect.value ? "hidden" : ""]),
337
+ model: __props.model,
338
+ column,
339
+ rules: __props.rules,
340
+ columnNum: __props.columnNum,
341
+ loading: __props.loading,
342
+ disabled: __props.disabled,
343
+ readonly: __props.readonly,
344
+ size: __props.size,
345
+ style: normalizeStyle(unref(columnItemStyle)(props, column))
346
+ }, createSlots({
347
+ _: 2
348
+ /* DYNAMIC */
349
+ }, [
350
+ renderList(_ctx.$slots, (_, slotName) => {
351
+ return {
352
+ name: slotName,
353
+ fn: withCtx((scope) => [
354
+ renderSlot(_ctx.$slots, slotName, mergeProps({ ref_for: true }, scope))
355
+ ])
356
+ };
357
+ })
324
358
  ]), 1032, ["class", "model", "column", "rules", "columnNum", "loading", "disabled", "readonly", "size", "style"])) : createCommentVNode("v-if", true)
325
359
  ],
326
360
  64
@@ -329,7 +363,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
329
363
  Fragment,
330
364
  { key: 3 },
331
365
  [
332
- unref(columnShowHandler)(props, column) ? (openBlock(), createBlock(_sfc_main$3, {
366
+ unref(columnShowHandler)(props, column) ? (openBlock(), createBlock(_sfc_main$4, {
333
367
  key: 0,
334
368
  ref_for: true,
335
369
  ref_key: "locationSelectRef",
@@ -355,7 +389,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
355
389
  { key: 4 },
356
390
  [
357
391
  createCommentVNode(" \u8868\u5355 "),
358
- createVNode(_sfc_main$4, {
392
+ createVNode(_sfc_main$5, {
359
393
  class: normalizeClass([allMapSelect.value ? "hidden" : ""]),
360
394
  model: __props.model,
361
395
  column,
@@ -4,7 +4,7 @@ import '../../../hooks/index.mjs';
4
4
  import { funRunHandler } from '../../../utils/handler.mjs';
5
5
  import { isNumber, isBoolean, isFunction, isString, isArray, isObject } from '../../../utils/is.mjs';
6
6
  import { columnRuleHandler, getValueByProp } from '../../../utils/form.mjs';
7
- import { useLocale } from '../../../hooks/useLocale.mjs';
7
+ import { $t } from '../../../hooks/useLocale.mjs';
8
8
 
9
9
  const formContextKey = /* @__PURE__ */ Symbol("formContextKey");
10
10
  function columnItemStyle(props, column) {
@@ -88,9 +88,7 @@ function renderText(props, column = {}) {
88
88
  }
89
89
  if (/^(select|radio|checkbox)$/.test(type)) {
90
90
  const optionList = optionsHandler(props, column);
91
- const target = optionList.find(
92
- (item) => item[fieldNames.value] === columnValue
93
- );
91
+ const target = optionList.find((item) => item[fieldNames.value] === columnValue);
94
92
  return target?.[fieldNames.label] || columnValue || "";
95
93
  }
96
94
  if (Array.isArray(field)) {
@@ -102,16 +100,14 @@ function renderText(props, column = {}) {
102
100
  return columnValue || "";
103
101
  }
104
102
  function renderArrayItemLabel(props, column, index) {
105
- const { t } = useLocale();
106
103
  const itemLabel = unref(column.itemLabel);
107
104
  if (isFunction(itemLabel)) return itemLabel(column, index);
108
- return (itemLabel || t("form.dynamicFormItem")) + ` ${index + 1}`;
105
+ return (itemLabel || $t("form.dynamicFormItem")) + ` ${index + 1}`;
109
106
  }
110
107
  function renderAddLabel(props, column) {
111
- const { t } = useLocale();
112
108
  let addLabel = unref(column.addLabel);
113
109
  if (isFunction(addLabel)) return addLabel();
114
- return addLabel || t("form.addFormItem");
110
+ return addLabel || $t("form.addFormItem");
115
111
  }
116
112
  function optionsHandler(props, column) {
117
113
  const options = unref(column.attrs.options);
@@ -1,5 +1,4 @@
1
1
  import { unref, toRef } from 'vue';
2
- import '../../../hooks/index.mjs';
3
2
  import '../../../utils/index.mjs';
4
3
  import { genColumnDefaultLabel, genValueByProp } from '../../../utils/form.mjs';
5
4
  import { mergeDeep, funRunHandler } from '../../../utils/handler.mjs';
@@ -23,11 +22,12 @@ function appFormItemHandler(column = {}) {
23
22
  return {
24
23
  ...column,
25
24
  attrs: {
26
- maxlength: attrs.type === "text" ? 256 : void 0,
25
+ type: "text",
26
+ // maxlength: attrs.type === 'text' ? 255 : undefined,
27
27
  ...attrs
28
28
  }
29
29
  };
30
- } else if (/^(radio|radio-group|checkbox|select|select-v2)$/.test(column.type)) {
30
+ } else if (/^(radio|radio-group|checkbox|checkbox-group|select|select-v2)$/.test(column.type)) {
31
31
  return {
32
32
  ...column,
33
33
  attrs: {
@@ -48,7 +48,7 @@ function appFormItemHandler(column = {}) {
48
48
  };
49
49
  } else if (/^(array)$/.test(column.type)) {
50
50
  return {
51
- height: 500,
51
+ height: void 0,
52
52
  emptyChildren: false,
53
53
  ...column,
54
54
  children: (column.children || []).map((item) => appFormItemHandler(item))
@@ -81,11 +81,7 @@ const resetAppFormValue = (columns = [], obj = {}) => {
81
81
  resetAppFormValue(item.children, obj);
82
82
  } else if (Array.isArray(item.prop)) {
83
83
  for (let i = 0; i < item.prop.length; i++) {
84
- genValueByProp(
85
- obj,
86
- item.prop[i],
87
- Array.isArray(value) ? value[i] : void 0
88
- );
84
+ genValueByProp(obj, item.prop[i], Array.isArray(value) ? value[i] : void 0);
89
85
  }
90
86
  } else {
91
87
  genValueByProp(obj, item.prop, value);
@@ -25,6 +25,7 @@
25
25
  transition: all 0.1s linear;
26
26
  user-select: none;
27
27
  z-index: 2;
28
+ box-sizing: border-box;
28
29
  .hy-form-extra-arrow {
29
30
  transform: rotateZ(90deg) rotateY(0deg);
30
31
  transition: all 0.3s linear;
@@ -34,11 +35,7 @@
34
35
  border-color: rgba(var(--hy-theme));
35
36
  box-shadow: 0px 0px 12px 1px rgba(var(--hy-theme), 0.5);
36
37
  & + .hy-form-extra-line {
37
- background: radial-gradient(
38
- circle,
39
- rgba(var(--hy-theme), 1),
40
- rgba(var(--hy-theme), 0)
41
- );
38
+ background: radial-gradient(circle, rgba(var(--hy-theme), 1), rgba(var(--hy-theme), 0));
42
39
  }
43
40
  }
44
41
  &.expand {
@@ -47,7 +44,7 @@
47
44
  }
48
45
  }
49
46
  }
50
-
47
+
51
48
  .hy-form-extra-line {
52
49
  width: 100%;
53
50
  height: 2px;
@@ -56,12 +53,6 @@
56
53
  top: 50%;
57
54
  transform: translateY(-50%);
58
55
  pointer-events: none;
59
- background: radial-gradient(
60
- circle,
61
- rgba(var(--hy-auxiliary), 1),
62
- rgba(var(--hy-auxiliary), 0)
63
- );
56
+ background: radial-gradient(circle, rgba(var(--hy-auxiliary), 1), rgba(var(--hy-auxiliary), 0));
64
57
  }
65
58
  }
66
-
67
-
@@ -32,11 +32,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
32
32
  }
33
33
  const iconName = computed(() => `#${props.prefix}${props.svgName}`);
34
34
  const svgClass = computed(() => {
35
+ const classList = ["hy-icon"];
35
36
  if (props.className) {
36
- return "hy-icon " + props.className || "";
37
- } else {
38
- return "hy-icon";
37
+ classList.push(props.className);
39
38
  }
39
+ return classList.filter(Boolean).join(" ");
40
40
  });
41
41
  return (_ctx, _cache) => {
42
42
  return openBlock(), createElementBlock("svg", {
@@ -14,14 +14,10 @@
14
14
  user-select: none;
15
15
  border-radius: 100%;
16
16
  background:
17
- radial-gradient(
18
- 142% 47% at 50% 119%,
19
- rgb(var(--hy-theme), 0.5) 0%,
20
- rgb(var(--hy-theme), 0) 100%
21
- ),
17
+ radial-gradient(142% 47% at 50% 119%, rgb(var(--hy-theme), 0.5) 0%, rgb(var(--hy-theme), 0) 100%),
22
18
  rgb(var(--hy-background-3));
23
19
  border: 1px solid rgb(var(--hy-auxiliary), 0.5);
24
20
  box-shadow: 0px 2px 5px 0px rgba(29, 33, 41, 0.5);
21
+ box-sizing: border-box;
25
22
  }
26
23
  }
27
-
@@ -1,7 +1,7 @@
1
- import { defineComponent, useModel, useTemplateRef, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createVNode, mergeProps, withKeys, createSlots, renderList, withCtx, normalizeProps, guardReactiveProps, createElementVNode, unref, mergeModels } from 'vue';
2
- import { ElIcon } from 'element-plus';
3
- import { Search } from '@element-plus/icons-vue';
4
- import _sfc_main$1 from './input.vue.mjs';
1
+ import { defineComponent, useModel, useTemplateRef, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createVNode, unref, mergeProps, withKeys, createSlots, renderList, withCtx, normalizeProps, guardReactiveProps, createElementVNode, mergeModels } from 'vue';
2
+ import '../../index.mjs';
3
+ import { HyInput } from './index.mjs';
4
+ import { HyIcon } from '../hyIcon/index.mjs';
5
5
 
6
6
  import "./style/inputSearch.scss";
7
7
 
@@ -75,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
75
75
  },
76
76
  [
77
77
  renderSlot(_ctx.$slots, "before"),
78
- createVNode(_sfc_main$1, mergeProps({
78
+ createVNode(unref(HyInput), mergeProps({
79
79
  ref_key: "inputRef",
80
80
  ref: inputRef,
81
81
  modelValue: modelValue.value,
@@ -104,12 +104,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
104
104
  class: "w-[32px] h-[32px] flex-shrink-0 flex items-center justify-center bg-background-3 rounded-[2px] cursor-pointer",
105
105
  onClick: onSearchQueryHandler
106
106
  }, [
107
- createVNode(unref(ElIcon), { size: "18" }, {
108
- default: withCtx(() => [
109
- createVNode(unref(Search))
110
- ]),
111
- _: 1
112
- /* STABLE */
107
+ createVNode(unref(HyIcon), {
108
+ "svg-name": "dispatch-share-v3-base-search",
109
+ class: "w-[18px] h-[18px]"
113
110
  })
114
111
  ])
115
112
  ],
@@ -10,6 +10,7 @@
10
10
  padding: 2px 4px;
11
11
  overflow: hidden;
12
12
  background: rgba(var(--hy-background-2));
13
+ box-sizing: border-box;
13
14
  &:hover,
14
15
  &.focus {
15
16
  border: 1px solid rgba(var(--hy-theme));
@@ -21,6 +22,7 @@
21
22
  & > .hy-el-input__wrapper {
22
23
  padding-left: 8px;
23
24
  padding-right: 4px;
25
+ box-sizing: border-box;
24
26
  }
25
27
  .hy-el-input__inner::placeholder {
26
28
  font-size: 12px;
@@ -34,6 +36,7 @@
34
36
  box-shadow: none;
35
37
  padding: 4px;
36
38
  min-height: 100%;
39
+ box-sizing: border-box;
37
40
  }
38
41
  }
39
42
  }
@@ -2,7 +2,7 @@ import { ElLoading } from 'element-plus';
2
2
  import '../../utils/index.mjs';
3
3
  import '../../hooks/index.mjs';
4
4
  import { loadingSvg } from '../../utils/sharedContent.mjs';
5
- import { useLocale } from '../../hooks/useLocale.mjs';
5
+ import { $t } from '../../hooks/useLocale.mjs';
6
6
 
7
7
  const loadingConfig = {
8
8
  svg: loadingSvg,
@@ -20,8 +20,7 @@ const HyLoading = {
20
20
  directive: {
21
21
  ...ElLoading.directive,
22
22
  mounted: function(el, binding, vnode, prevVnode) {
23
- const { t } = useLocale();
24
- el.setAttribute("element-loading-text", `${t("hy.loading")}...`);
23
+ el.setAttribute("element-loading-text", `${$t("hy.loading")}...`);
25
24
  el.setAttribute("element-loading-svg", loadingConfig.svg);
26
25
  el.setAttribute("element-loading-svg-view-box", loadingConfig.svgViewBox);
27
26
  el.setAttribute("element-loading-background", loadingConfig.background);
@@ -29,9 +28,8 @@ const HyLoading = {
29
28
  }
30
29
  },
31
30
  service: function(options = {}) {
32
- const { t } = useLocale();
33
31
  return ElLoading.service.call(this, {
34
- text: `${t("hy.loading")}...`,
32
+ text: `${$t("hy.loading")}...`,
35
33
  ...loadingConfig,
36
34
  ...options
37
35
  });
@@ -5,10 +5,12 @@ const useAppMapWrapper = (hy) => {
5
5
  const {
6
6
  props: { mapConfig },
7
7
  mapRef,
8
- emits
8
+ emits,
9
+ isUnmounted
9
10
  } = hy;
10
11
  let hyMap = shallowRef(null);
11
12
  let map = shallowRef(null);
13
+ let initTimer = null;
12
14
  function newMap(mapType) {
13
15
  const mapFilters = [
14
16
  {
@@ -110,11 +112,27 @@ const useAppMapWrapper = (hy) => {
110
112
  // },
111
113
  // ], // 地图瓦片地址
112
114
  });
113
- setTimeout(() => {
114
- hy.initMap();
115
+ if (initTimer) {
116
+ clearTimeout(initTimer);
117
+ }
118
+ initTimer = setTimeout(() => {
119
+ if (!isUnmounted.value) {
120
+ hy.initMap();
121
+ }
122
+ initTimer = null;
115
123
  }, 800);
116
124
  }
117
125
  function initMap() {
126
+ if (isUnmounted.value || !mapRef.value) {
127
+ return;
128
+ }
129
+ const container = mapRef.value;
130
+ if (container) {
131
+ delete container._leaflet_id;
132
+ delete container._bm_id;
133
+ delete container._amap_id;
134
+ container.innerHTML = "";
135
+ }
118
136
  hy.map.value = hy.hyMap.value.InitMap(mapRef.value, {
119
137
  minZoom: mapConfig.minZoom || 8,
120
138
  maxZoom: mapConfig.maxZoom || 18,
@@ -130,11 +148,18 @@ const useAppMapWrapper = (hy) => {
130
148
  }
131
149
  });
132
150
  }
151
+ function clearInitTimer() {
152
+ if (initTimer) {
153
+ clearTimeout(initTimer);
154
+ initTimer = null;
155
+ }
156
+ }
133
157
  return {
134
158
  hyMap,
135
159
  map,
136
160
  newMap,
137
- initMap
161
+ initMap,
162
+ clearInitTimer
138
163
  };
139
164
  };
140
165
 
@@ -37,11 +37,13 @@ const _sfc_main = {
37
37
  const props = __props;
38
38
  const emits = __emit;
39
39
  const mapRef = ref();
40
- const { newMap, map, hyMap } = useMixins(
40
+ const isUnmounted = ref(false);
41
+ const { newMap, map, hyMap, clearInitTimer } = useMixins(
41
42
  {
42
43
  props,
43
44
  emits,
44
- mapRef
45
+ mapRef,
46
+ isUnmounted
45
47
  },
46
48
  [useAppMapWrapper]
47
49
  );
@@ -51,9 +53,21 @@ const _sfc_main = {
51
53
  }
52
54
  });
53
55
  onBeforeUnmount(() => {
54
- map.value?.removeMap();
56
+ isUnmounted.value = true;
57
+ clearInitTimer();
58
+ try {
59
+ map.value?.removeMap();
60
+ } catch (error) {
61
+ console.warn("\u5730\u56FE\u5378\u8F7D\u8B66\u544A:", error);
62
+ }
55
63
  map.value = null;
56
64
  hyMap.value = null;
65
+ if (mapRef.value) {
66
+ mapRef.value.innerHTML = "";
67
+ delete mapRef.value._leaflet_id;
68
+ delete mapRef.value._bm_id;
69
+ delete mapRef.value._amap_id;
70
+ }
57
71
  });
58
72
  return (_ctx, _cache) => {
59
73
  return openBlock(), createElementBlock("div", { class: "w-full h-full box-border border-border border relative" }, [
@@ -10,12 +10,9 @@
10
10
  transition: all 0.3s linear;
11
11
  background:
12
12
  linear-gradient(180deg, rgba(33, 58, 84, 0.3) 0.08%, #213a54 100%),
13
- radial-gradient(
14
- 21% 31% at 150% 40%,
15
- rgba(61, 98, 134, 0.5) 0%,
16
- rgba(61, 98, 134, 0) 100%
17
- );
13
+ radial-gradient(21% 31% at 150% 40%, rgba(61, 98, 134, 0.5) 0%, rgba(61, 98, 134, 0) 100%);
18
14
  border-right: 1px solid rgba(var(--hy-border));
15
+ box-sizing: border-box;
19
16
 
20
17
  .operator-menu-list {
21
18
  width: 100%;
@@ -34,6 +31,7 @@
34
31
  font-size: 16px;
35
32
  position: relative;
36
33
  cursor: pointer;
34
+ box-sizing: border-box;
37
35
 
38
36
  .operator-label {
39
37
  width: 100%;
@@ -72,11 +70,7 @@
72
70
  position: absolute;
73
71
  left: 0;
74
72
  top: 3px;
75
- background: linear-gradient(
76
- 90deg,
77
- rgba(var(--hy-theme), 0) 2%,
78
- rgba(var(--hy-theme), 0.4) 100%
79
- );
73
+ background: linear-gradient(90deg, rgba(var(--hy-theme), 0) 2%, rgba(var(--hy-theme), 0.4) 100%);
80
74
  border-radius: 0px 4px 4px 0px;
81
75
  }
82
76
  }
@@ -135,11 +129,7 @@
135
129
  position: absolute;
136
130
  left: 0;
137
131
  top: 0;
138
- background: linear-gradient(
139
- 90deg,
140
- rgba(var(--hy-theme), 0) 2%,
141
- rgba(var(--hy-theme), 0.4) 100%
142
- );
132
+ background: linear-gradient(90deg, rgba(var(--hy-theme), 0) 2%, rgba(var(--hy-theme), 0.4) 100%);
143
133
  //border-radius: 0px 4px 4px 0px;
144
134
  }
145
135
  }
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createVNode, unref, createElementVNode, toDisplayString } from 'vue';
2
2
  import '../../hooks/index.mjs';
3
3
  import '../index.mjs';
4
- import { useLocale } from '../../hooks/useLocale.mjs';
5
4
  import { HyIcon } from '../hyIcon/index.mjs';
5
+ import { $t } from '../../hooks/useLocale.mjs';
6
6
 
7
7
  import "./style/noPermissions.scss";
8
8
 
@@ -20,7 +20,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
20
20
  setup(__props, { expose: __expose, emit: __emit }) {
21
21
  const props = __props;
22
22
  const emits = __emit;
23
- const { t } = useLocale();
24
23
  __expose({});
25
24
  return (_ctx, _cache) => {
26
25
  return openBlock(), createElementBlock("div", { class: "w-full h-full bg-background-2 text-auxiliary text-base flex flex-col items-center justify-center" }, [
@@ -32,14 +31,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
32
31
  createElementVNode(
33
32
  "p",
34
33
  null,
35
- toDisplayString(unref(t)("permissino.youDoNotHaveSubordinatePermissionsForThisModule")),
34
+ toDisplayString(unref($t)("permissino.youDoNotHaveSubordinatePermissionsForThisModule")),
36
35
  1
37
36
  /* TEXT */
38
37
  ),
39
38
  createElementVNode(
40
39
  "p",
41
40
  null,
42
- toDisplayString(unref(t)("permissino.pleaseContactTheAdministrator")),
41
+ toDisplayString(unref($t)("permissino.pleaseContactTheAdministrator")),
43
42
  1
44
43
  /* TEXT */
45
44
  )
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createVNode, unref, createElementVNode, toDisplayString } from 'vue';
2
2
  import '../../hooks/index.mjs';
3
3
  import '../index.mjs';
4
- import { useLocale } from '../../hooks/useLocale.mjs';
5
4
  import { HyIcon } from '../hyIcon/index.mjs';
5
+ import { $t } from '../../hooks/useLocale.mjs';
6
6
 
7
7
  import "./style/noPermissionsMap.scss";
8
8
 
@@ -20,7 +20,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
20
20
  setup(__props, { expose: __expose, emit: __emit }) {
21
21
  const props = __props;
22
22
  const emits = __emit;
23
- const { t } = useLocale();
24
23
  __expose({});
25
24
  return (_ctx, _cache) => {
26
25
  return openBlock(), createElementBlock("div", { class: "w-full h-full bg-background-2 text-auxiliary text-base flex flex-col items-center justify-center" }, [
@@ -32,16 +31,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
32
31
  createElementVNode(
33
32
  "p",
34
33
  null,
35
- toDisplayString(unref(t)("permissino.youDoNotHaveAMapConfigurationForThisModule")),
34
+ toDisplayString(unref($t)("permissino.youDoNotHaveAMapConfigurationForThisModule")),
36
35
  1
37
36
  /* TEXT */
38
37
  ),
39
38
  createElementVNode(
40
39
  "p",
41
40
  null,
42
- toDisplayString(unref(t)(
43
- "permissino.pleaseContactTheAdministratorToGoToTheSettingsCenterForConfiguration"
44
- )),
41
+ toDisplayString(_ctx.t("permissino.pleaseContactTheAdministratorToGoToTheSettingsCenterForConfiguration")),
45
42
  1
46
43
  /* TEXT */
47
44
  )
@@ -13,11 +13,7 @@ function getOrgTreeSimple() {
13
13
  }
14
14
  cancelSource = Axios.CancelToken.source();
15
15
  throttleFn = new Promise((resolve, reject) => {
16
- unref(api).post(
17
- "organization/orgTreeSimple",
18
- {},
19
- { cancelToken: cancelSource.token }
20
- ).then((res) => {
16
+ unref(api).post("organization/orgTreeSimple", {}, { cancelToken: cancelSource.token }).then((res) => {
21
17
  resolve(res.data);
22
18
  throttleFn = null;
23
19
  }).catch((err) => {