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
@@ -0,0 +1,515 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var elementPlus = require('element-plus');
7
+ var index = require('../../../../api/index.js');
8
+ var mapRail = require('../../../../api/mapRail.js');
9
+ require('../../../../hooks/index.js');
10
+ require('../../../../utils/index.js');
11
+ require('../../../../components/index.js');
12
+ require('../../../index.js');
13
+ var useCurrentBus = require('../../../../hooks/useCurrentBus.js');
14
+ var useLocale = require('../../../../hooks/useLocale.js');
15
+ var useAppForm = require('../../../../components/hyForm/js/useAppForm.js');
16
+ var is = require('../../../../utils/is.js');
17
+ var useMixins = require('../../../../hooks/useMixins.js');
18
+ var useDialog = require('../../../../hooks/useDialog.js');
19
+ var index$1 = require('../../../../components/hyDialog/index.js');
20
+ var index$2 = require('../../../../components/hyForm/index.js');
21
+ var index$3 = require('../../../../components/hyInput/index.js');
22
+ var index$4 = require('../../../hyMapAearchPlace/index.js');
23
+ var index$5 = require('../../../../components/hyMap/index.js');
24
+ var index$6 = require('../../../../components/hyIcon/index.js');
25
+ var index$7 = require('../../../../components/hyButton/index.js');
26
+
27
+ const _sfc_main = {
28
+ __name: "addElectronicFenceDialog",
29
+ props: {
30
+ ifDraggable: {
31
+ type: Boolean,
32
+ default: false
33
+ },
34
+ ifShrink: {
35
+ type: Boolean,
36
+ default: false
37
+ }
38
+ },
39
+ setup(__props, { expose: __expose }) {
40
+ const props = __props;
41
+ const { currentBus } = useCurrentBus.useCurrentBus();
42
+ const useAddElectronicFenceDialog = (hy) => {
43
+ const HyDialogRef = vue.useTemplateRef("HyDialogRef");
44
+ const formRef2 = vue.useTemplateRef("formRef");
45
+ const dialogVisible2 = vue.ref(false);
46
+ const loading2 = vue.ref(false);
47
+ const title2 = vue.computed(() => {
48
+ return hy.isAdd.value ? useLocale.$t("electronicFence.addAnElectronicFence") : useLocale.$t("electronicFence.editTheElectronicFence");
49
+ });
50
+ const isAdd = vue.computed(() => !hy.formModel.value.id);
51
+ const { formModel: formModel2, formColumns: formColumns2 } = useAppForm.useAppForm([
52
+ {
53
+ type: "input",
54
+ prop: "railName",
55
+ label: useLocale.$t("electronicFence.electronicFenceName"),
56
+ required: true,
57
+ span: 24,
58
+ attrs: {
59
+ clearable: true
60
+ }
61
+ },
62
+ {
63
+ prop: "search",
64
+ label: "\u641C\u7D22\u4F4D\u7F6E",
65
+ span: 10,
66
+ slot: "search"
67
+ },
68
+ {
69
+ type: "select",
70
+ prop: "mouseToolName",
71
+ label: "\u7ED8\u5236\u65B9\u5F0F",
72
+ required: true,
73
+ span: 5,
74
+ attrs: {
75
+ options: [
76
+ { label: "\u5B9A\u70B9\u8303\u56F4", value: "fixedPoint" },
77
+ { label: "\u81EA\u5B9A\u5706\u5F62", value: "circle" },
78
+ { label: "\u81EA\u5B9A\u591A\u8FB9\u5F62", value: "polygon" }
79
+ ]
80
+ }
81
+ },
82
+ {
83
+ type: "input",
84
+ prop: "radius",
85
+ label: "\u8303\u56F4\u8DDD\u79BB",
86
+ required: true,
87
+ span: 5,
88
+ slot: "radius",
89
+ show: () => formModel2.value.mouseToolName === "fixedPoint",
90
+ attrs: {
91
+ type: "input-number",
92
+ placeholder: "\u5355\u4F4D\u7C73"
93
+ }
94
+ }
95
+ ]);
96
+ const rules2 = vue.ref({});
97
+ async function show2(data) {
98
+ if (hy.loading.value) {
99
+ elementPlus.ElMessage.error("\u6570\u636E\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u70B9\u51FB");
100
+ return;
101
+ }
102
+ await hy.watchPause();
103
+ hy.loading.value = true;
104
+ hy.setDragLevelIndex("HyDialogRef");
105
+ hy.showOtherFence.value = true;
106
+ hy.dialogVisible.value = true;
107
+ if (data && data.id) {
108
+ try {
109
+ const res = await index.selectApi("mapRail", data.id);
110
+ if (res.code === 200) {
111
+ hy.formModel.value = {
112
+ ...res.data || {},
113
+ search: "",
114
+ mouseToolName: "fixedPoint",
115
+ radius: 100
116
+ };
117
+ }
118
+ } catch (err) {
119
+ console.error(err);
120
+ }
121
+ } else {
122
+ hy.formModel.value = {
123
+ railName: "",
124
+ search: "",
125
+ mouseToolName: "fixedPoint",
126
+ radius: 100,
127
+ pointList: [],
128
+ ...data || {}
129
+ };
130
+ }
131
+ await vue.nextTick();
132
+ hy.formRef.value.clearValidate();
133
+ if (hy.map.value && hy.hyMap.value) {
134
+ hy.CreateFence(hy.formModel.value.pointList);
135
+ }
136
+ hy.loading.value = false;
137
+ hy.watchResume();
138
+ }
139
+ function getCacheData() {
140
+ return {
141
+ formModel: hy.formModel.value,
142
+ showOtherFence: hy.showOtherFence.value
143
+ };
144
+ }
145
+ async function restoreCache(data = {}) {
146
+ hy.formModel.value = {
147
+ railName: "",
148
+ search: "",
149
+ mouseToolName: "fixedPoint",
150
+ radius: 100,
151
+ pointList: [],
152
+ ...data.formModel || {}
153
+ };
154
+ hy.showOtherFence.value = data.showOtherFence;
155
+ hy.dialogVisible.value = true;
156
+ }
157
+ async function onClose2() {
158
+ if (hy.map.value) {
159
+ hy.fence?.remove(hy.map.value);
160
+ hy.clearOtherFenceLayer();
161
+ hy.map.value = null;
162
+ hy.hyMap.value = null;
163
+ hy.fence = null;
164
+ hy.otherFenceLayer = null;
165
+ }
166
+ }
167
+ async function onSubmit2() {
168
+ await hy.formRef.value.validate();
169
+ const res = await index.saveApi("mapRail", {
170
+ id: hy.formModel.value.id,
171
+ railName: hy.formModel.value.railName,
172
+ pointList: hy.formModel.value.pointList.map((item) => ({
173
+ ...item,
174
+ mapRailId: hy.formModel.value.id
175
+ }))
176
+ });
177
+ if (res.code === 200) {
178
+ elementPlus.ElMessage.success(useLocale.$t("bussiness.operationSuccessful"));
179
+ hy.currentBus.value.emit("addElectronicFenceDialog", {
180
+ method: "onSubmit",
181
+ param: {
182
+ page: hy.isAdd.value ? null : 1
183
+ }
184
+ });
185
+ hy.onClose();
186
+ } else {
187
+ return Promise.reject();
188
+ }
189
+ }
190
+ let map2 = vue.shallowRef(null);
191
+ let hyMap2 = vue.shallowRef(null);
192
+ let fence2 = null;
193
+ let _fenceTimer2 = null;
194
+ let otherFenceLayer2 = null;
195
+ const showOtherFence2 = vue.ref(true);
196
+ let isFixedPoint2 = vue.computed(() => hy.formModel.value.mouseToolName === "fixedPoint");
197
+ function onMapComplete2(hyMap3, map3) {
198
+ hy.hyMap.value = hyMap3;
199
+ hy.map.value = map3;
200
+ hy.CreateFence(hy.formModel.value.pointList);
201
+ hy.getFenceList();
202
+ hy.map.value.on("click", (e) => {
203
+ if (hy.isFixedPoint.value) {
204
+ hy.setFixedPoint({
205
+ lnglat: e.latlng,
206
+ radius: hy.formModel.value.radius
207
+ });
208
+ }
209
+ });
210
+ hy.map.value.on("moveend", () => {
211
+ if (is.isPermission("operator_electronicFence_showOtherFence")) {
212
+ clearTimeout(hy._fenceTimer);
213
+ hy._fenceTimer = setTimeout(hy.getFenceList, 500);
214
+ }
215
+ });
216
+ hy.map.value.on("zoomend", () => {
217
+ if (is.isPermission("operator_electronicFence_showOtherFence")) {
218
+ clearTimeout(hy._fenceTimer);
219
+ hy._fenceTimer = setTimeout(hy.getFenceList, 500);
220
+ }
221
+ });
222
+ }
223
+ function CreateFence2(pathList) {
224
+ if (hy.fence) {
225
+ hy.fence.remove(hy.map.value);
226
+ }
227
+ hy.fence = hy.hyMap.value.CreateFence(
228
+ "polygon",
229
+ {
230
+ fillColor: "#00b0ff",
231
+ color: "#80d8ff",
232
+ weight: 4,
233
+ fillOpacity: 0.5,
234
+ zIndex: 1e6
235
+ },
236
+ hy.map.value
237
+ );
238
+ if (pathList.length) {
239
+ hy.fence.setPolygon(pathList);
240
+ }
241
+ }
242
+ function startDraw2() {
243
+ const mouseToolName = hy.formModel.value.mouseToolName;
244
+ if (hy.isFixedPoint.value) {
245
+ hy.clearDraw();
246
+ hy.fence.close();
247
+ } else {
248
+ if (hy.fence && hy.fence.startDraw) {
249
+ hy.fence.startDraw(mouseToolName);
250
+ }
251
+ }
252
+ let msg = "";
253
+ if (hy.isFixedPoint.value) {
254
+ msg = "\u9F20\u6807\u5728\u5730\u56FE\u70B9\u51FB\u4F4D\u7F6E\uFF0C\u677E\u624B\u7ED3\u675F";
255
+ } else if (hy.formModel.value.mouseToolName === "circle") {
256
+ msg = "\u9F20\u6807\u5728\u5730\u56FE\u70B9\u51FB\u6309\u4F4F\u62D6\u62FD\u7ED8\u5236\uFF0C\u677E\u624B\u7ED3\u675F";
257
+ } else if (hy.formModel.value.mouseToolName === "polygon") {
258
+ msg = "\u9F20\u6807\u70B9\u51FB\u5730\u56FE\u7ED8\u5236\uFF0C\u53F3\u952E\u7ED3\u675F";
259
+ }
260
+ elementPlus.ElMessage.success(msg);
261
+ }
262
+ function clearDraw2() {
263
+ if (hy.fence && hy.fence.clearDraw) {
264
+ hy.fence.clearDraw();
265
+ }
266
+ }
267
+ function getPath2() {
268
+ return hy.fence.getPath();
269
+ }
270
+ function setFixedPoint2({ lnglat, radius }) {
271
+ hy.fence.setFixedPoint({ lnglat, radius });
272
+ }
273
+ async function getFenceList2() {
274
+ if (!hy.showOtherFence.value || !hy.map.value) {
275
+ hy.clearOtherFenceLayer();
276
+ return;
277
+ }
278
+ const bounds = hy.map.value.getBounds();
279
+ const ne = bounds.getNorthEast();
280
+ const sw = bounds.getSouthWest();
281
+ const latLngList = [
282
+ { lat: ne.lat, lng: ne.lng },
283
+ { lat: ne.lat, lng: sw.lng },
284
+ { lat: sw.lat, lng: sw.lng },
285
+ { lat: sw.lat, lng: ne.lng }
286
+ ];
287
+ const res = await mapRail.findAllMapRailLocationApi({ latLngList });
288
+ if (res.code !== 200 || !hy.showOtherFence.value) return;
289
+ if (!hy.showOtherFence) {
290
+ hy.clearOtherFenceLayer();
291
+ return;
292
+ }
293
+ if (!hy.otherFenceLayer) {
294
+ hy.otherFenceLayer = hy.hyMap.value.layerGroup(hy.map.value, []);
295
+ } else {
296
+ hy.clearOtherFenceLayer();
297
+ }
298
+ const data = res.data || [];
299
+ data.forEach((fence3) => {
300
+ if (!fence3.pointList || !fence3.pointList.length) return;
301
+ if (hy.formModel.value.id && fence3.id === hy.formModel.value.id) return;
302
+ const layer = hy.hyMap.value.Polygon(fence3.pointList, {
303
+ color: "#32FFA2",
304
+ opacity: 1,
305
+ weight: 1,
306
+ fillColor: "#32FFA2",
307
+ fillOpacity: 0.2,
308
+ zIndex: 10
309
+ });
310
+ hy.otherFenceLayer.addLayer(layer);
311
+ });
312
+ }
313
+ function clearOtherFenceLayer2() {
314
+ if (hy.otherFenceLayer) {
315
+ hy.otherFenceLayer.clearLayers();
316
+ }
317
+ }
318
+ return {
319
+ HyDialogRef,
320
+ formRef: formRef2,
321
+ dialogVisible: dialogVisible2,
322
+ loading: loading2,
323
+ title: title2,
324
+ formModel: formModel2,
325
+ formColumns: formColumns2,
326
+ rules: rules2,
327
+ isAdd,
328
+ show: show2,
329
+ getCacheData,
330
+ restoreCache,
331
+ onClose: onClose2,
332
+ onSubmit: onSubmit2,
333
+ // 地图功能
334
+ map: map2,
335
+ hyMap: hyMap2,
336
+ fence: fence2,
337
+ _fenceTimer: _fenceTimer2,
338
+ otherFenceLayer: otherFenceLayer2,
339
+ showOtherFence: showOtherFence2,
340
+ isFixedPoint: isFixedPoint2,
341
+ onMapComplete: onMapComplete2,
342
+ CreateFence: CreateFence2,
343
+ getPath: getPath2,
344
+ setFixedPoint: setFixedPoint2,
345
+ startDraw: startDraw2,
346
+ clearDraw: clearDraw2,
347
+ getFenceList: getFenceList2,
348
+ clearOtherFenceLayer: clearOtherFenceLayer2
349
+ };
350
+ };
351
+ const {
352
+ minimizedShow,
353
+ setDragLevelIndex,
354
+ onMinimized,
355
+ formRef,
356
+ dialogVisible,
357
+ loading,
358
+ title,
359
+ formModel,
360
+ formColumns,
361
+ rules,
362
+ show,
363
+ onClose,
364
+ onSubmit,
365
+ // 地图功能
366
+ map,
367
+ hyMap,
368
+ fence,
369
+ _fenceTimer,
370
+ otherFenceLayer,
371
+ showOtherFence,
372
+ isFixedPoint,
373
+ onMapComplete,
374
+ CreateFence,
375
+ getPath,
376
+ setFixedPoint,
377
+ startDraw,
378
+ clearDraw,
379
+ getFenceList,
380
+ clearOtherFenceLayer
381
+ } = useMixins.useMixins({ currentBus }, [useDialog.useDialog, useDialog.useDialogIsEdit, useAddElectronicFenceDialog]);
382
+ __expose({
383
+ show,
384
+ minimizedShow,
385
+ setDragLevelIndex
386
+ });
387
+ return (_ctx, _cache) => {
388
+ return vue.openBlock(), vue.createBlock(vue.unref(index$1.HyDialog), {
389
+ ref: "HyDialogRef",
390
+ modelValue: vue.unref(dialogVisible),
391
+ "onUpdate:modelValue": ($event) => vue.isRef(dialogVisible) ? dialogVisible.value = $event : null,
392
+ loading: vue.unref(loading),
393
+ "onUpdate:loading": ($event) => vue.isRef(loading) ? loading.value = $event : null,
394
+ title: vue.unref(title),
395
+ width: "1000",
396
+ "dialog-type": "right",
397
+ "show-operate": true,
398
+ "if-draggable": __props.ifDraggable,
399
+ "if-shrink": __props.ifShrink,
400
+ "on-close": vue.unref(onClose),
401
+ "on-cancel": vue.unref(onClose),
402
+ "on-submit": vue.unref(onSubmit),
403
+ onOnMinimized: vue.unref(onMinimized),
404
+ onOnDialogMousedown: ($event) => vue.unref(setDragLevelIndex)("HyDialogRef")
405
+ }, {
406
+ "operate-left-box": vue.withCtx(() => [
407
+ vue.createElementVNode("div", { class: "flex items-center mt-2 text-xs" }, [
408
+ vue.createVNode(vue.unref(index$6.HyIcon), {
409
+ "svg-name": "dispatch-share1-prompt",
410
+ "class-name": "!w-3 !h-3 text-auxiliary mr-1"
411
+ }),
412
+ vue.createElementVNode("span", { class: "text-auxiliary" }, "\u70B9\u51FB\u5F00\u59CB\u7ED8\u5236\u540E\uFF1A"),
413
+ vue.unref(formModel).mouseToolName === "fixedPoint" ? (vue.openBlock(), vue.createElementBlock("span", {
414
+ key: 0,
415
+ class: "text-theme"
416
+ }, "\u9F20\u6807\u5728\u5730\u56FE\u70B9\u51FB\u4F4D\u7F6E\uFF0C\u677E\u624B\u7ED3\u675F")) : vue.unref(formModel).mouseToolName === "circle" ? (vue.openBlock(), vue.createElementBlock("span", {
417
+ key: 1,
418
+ class: "text-theme"
419
+ }, "\u9F20\u6807\u5728\u5730\u56FE\u70B9\u51FB\u6309\u4F4F\u62D6\u62FD\u7ED8\u5236\uFF0C\u677E\u624B\u7ED3\u675F")) : vue.unref(formModel).mouseToolName === "polygon" ? (vue.openBlock(), vue.createElementBlock("span", {
420
+ key: 2,
421
+ class: "text-theme"
422
+ }, "\u9F20\u6807\u70B9\u51FB\u5730\u56FE\u7ED8\u5236\uFF0C\u53F3\u952E\u7ED3\u675F")) : vue.createCommentVNode("v-if", true)
423
+ ])
424
+ ]),
425
+ default: vue.withCtx(() => [
426
+ vue.createElementVNode("div", { class: "w-full h-full flex flex-col" }, [
427
+ vue.createVNode(vue.unref(index$2.HyForm), {
428
+ ref_key: "formRef",
429
+ ref: formRef,
430
+ model: vue.unref(formModel),
431
+ columns: vue.unref(formColumns),
432
+ rules: vue.unref(rules),
433
+ "column-num": 24,
434
+ class: "relative z-[600]"
435
+ }, {
436
+ search: vue.withCtx(() => [
437
+ vue.createVNode(vue.unref(index$4.HyMapAearchPlace), {
438
+ map: vue.unref(map),
439
+ "hy-map": vue.unref(hyMap)
440
+ }, null, 8, ["map", "hy-map"])
441
+ ]),
442
+ radius: vue.withCtx(({ column, model }) => [
443
+ vue.createElementVNode("div", { class: "w-full flex items-center gap-2" }, [
444
+ vue.createVNode(vue.unref(index$3.HyInput), vue.mergeProps({
445
+ modelValue: model[column.prop],
446
+ "onUpdate:modelValue": ($event) => model[column.prop] = $event
447
+ }, column.attrs), null, 16, ["modelValue", "onUpdate:modelValue"]),
448
+ vue.createElementVNode("span", { class: "text-auxiliary" }, "M")
449
+ ])
450
+ ]),
451
+ _: 1
452
+ /* STABLE */
453
+ }, 8, ["model", "columns", "rules"]),
454
+ vue.createElementVNode("div", { class: "w-full h-0 flex-1 relative border border-border rounded" }, [
455
+ vue.createElementVNode("div", { class: "w-full h-full" }, [
456
+ vue.createVNode(vue.unref(index$5.HyMap), {
457
+ class: "!rounded-none",
458
+ onComplete: vue.unref(onMapComplete)
459
+ }, null, 8, ["onComplete"])
460
+ ]),
461
+ vue.createElementVNode("div", { class: "w-full h-[60px] flex items-center justify-between border-b border-border pl-5 pr-4 box-border absolute left-0 top-0 z-[500] bg-[rgba(var(--hy-background-2),0.9)]" }, [
462
+ vue.createElementVNode("div", { class: "flex items-center gap-2 text-auxiliary" }, [
463
+ vue.createVNode(vue.unref(index$6.HyIcon), {
464
+ "svg-name": "dispatch-share1-prompt",
465
+ "class-name": "!w-3 !h-3 text-auxiliary"
466
+ }),
467
+ vue.createElementVNode("span", null, "\u7ED8\u5236\u524D\uFF0C\u9700\u8981\u5148\u70B9\u51FB\u53F3\u4FA7\u5F00\u59CB\u7ED8\u5236\u6309\u94AE")
468
+ ]),
469
+ vue.createElementVNode("div", { class: "flex items-center" }, [
470
+ vue.createElementVNode("div", { class: "flex items-center mr-5" }, [
471
+ vue.createVNode(vue.unref(elementPlus.ElCheckbox), {
472
+ modelValue: vue.unref(showOtherFence),
473
+ "onUpdate:modelValue": ($event) => vue.isRef(showOtherFence) ? showOtherFence.value = $event : null,
474
+ onChange: ($event) => vue.unref(getFenceList)()
475
+ }, {
476
+ default: vue.withCtx(() => [
477
+ vue.createElementVNode("span", { class: "text-xs text-main" }, "\u663E\u793A\u5176\u4ED6\u7535\u5B50\u56F4\u680F")
478
+ ]),
479
+ _: 1
480
+ /* STABLE */
481
+ }, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
482
+ ]),
483
+ vue.createVNode(vue.unref(index$7.HyButton), {
484
+ type: "primary",
485
+ onClick: vue.unref(startDraw)
486
+ }, {
487
+ default: vue.withCtx(() => [
488
+ vue.createTextVNode("\u5F00\u59CB\u7ED8\u5236")
489
+ ]),
490
+ _: 1
491
+ /* STABLE */
492
+ }, 8, ["onClick"]),
493
+ vue.createVNode(vue.unref(index$7.HyButton), {
494
+ type: "danger",
495
+ onClick: vue.unref(clearDraw)
496
+ }, {
497
+ default: vue.withCtx(() => [
498
+ vue.createTextVNode("\u6E05\u7A7A\u7ED8\u5236")
499
+ ]),
500
+ _: 1
501
+ /* STABLE */
502
+ }, 8, ["onClick"])
503
+ ])
504
+ ])
505
+ ])
506
+ ])
507
+ ]),
508
+ _: 1
509
+ /* STABLE */
510
+ }, 8, ["modelValue", "onUpdate:modelValue", "loading", "onUpdate:loading", "title", "if-draggable", "if-shrink", "on-close", "on-cancel", "on-submit", "onOnMinimized", "onOnDialogMousedown"]);
511
+ };
512
+ }
513
+ };
514
+
515
+ exports.default = _sfc_main;
@@ -0,0 +1,182 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var mapRail = require('../../../../api/mapRail.js');
7
+ require('../../../../hooks/index.js');
8
+ require('../../../../components/index.js');
9
+ var useCurrentBus = require('../../../../hooks/useCurrentBus.js');
10
+ var useAppTableForm = require('../../../../components/hyTableForm/js/useAppTableForm.js');
11
+ var useLocale = require('../../../../hooks/useLocale.js');
12
+ var useMixins = require('../../../../hooks/useMixins.js');
13
+ var useDialog = require('../../../../hooks/useDialog.js');
14
+ var index = require('../../../../components/hyBatchUploadDialog/index.js');
15
+
16
+ const _sfc_main = {
17
+ __name: "batchSetElectronicFenceUserDialog",
18
+ props: {
19
+ ifDraggable: {
20
+ type: Boolean,
21
+ default: false
22
+ },
23
+ ifShrink: {
24
+ type: Boolean,
25
+ default: false
26
+ }
27
+ },
28
+ setup(__props, { expose: __expose }) {
29
+ const props = __props;
30
+ const { currentBus } = useCurrentBus.useCurrentBus();
31
+ function useBatchSetElectronicFenceUserDialog(hy) {
32
+ const HyBatchUploadDialogRef2 = vue.useTemplateRef("HyBatchUploadDialogRef");
33
+ const { tableColumns: tableColumns2, formColumns: formColumns2 } = useAppTableForm.useAppTableForm({
34
+ columns: [
35
+ {
36
+ prop: "railName",
37
+ label: useLocale.$t("electronicFence.electronicFenceName")
38
+ },
39
+ {
40
+ prop: "orgName",
41
+ label: useLocale.$t("bussiness.department")
42
+ },
43
+ {
44
+ prop: "name",
45
+ label: useLocale.$t("electronicFence.associatedUserName")
46
+ },
47
+ {
48
+ prop: "phone",
49
+ label: useLocale.$t("electronicFence.associatedUserAccount")
50
+ }
51
+ ],
52
+ formColumns: [
53
+ {
54
+ type: "input",
55
+ prop: "railName",
56
+ label: useLocale.$t("electronicFence.electronicFenceName"),
57
+ required: true,
58
+ // import: {
59
+ // // excel的表头标题,不设置默认获取label
60
+ // title: $t('electronicFence.electronicFenceName'),
61
+ // },
62
+ attrs: {
63
+ clearable: true
64
+ }
65
+ },
66
+ {
67
+ type: "input",
68
+ prop: "orgName",
69
+ label: useLocale.$t("bussiness.department"),
70
+ required: true,
71
+ attrs: {
72
+ clearable: true
73
+ }
74
+ },
75
+ {
76
+ type: "input",
77
+ prop: "name",
78
+ label: useLocale.$t("electronicFence.associatedUserName"),
79
+ required: true,
80
+ attrs: {
81
+ clearable: true
82
+ }
83
+ },
84
+ {
85
+ type: "input",
86
+ prop: "phone",
87
+ label: useLocale.$t("electronicFence.associatedUserAccount"),
88
+ required: true,
89
+ attrs: {
90
+ clearable: true
91
+ }
92
+ }
93
+ ]
94
+ });
95
+ const rules2 = vue.ref({});
96
+ async function show2() {
97
+ await hy.watchPause();
98
+ hy.setDragLevelIndex("HyBatchUploadDialogRef");
99
+ HyBatchUploadDialogRef2.value.show();
100
+ }
101
+ function submitHandler2(data) {
102
+ return mapRail.batchMapRailUserSaveApi({
103
+ ...data
104
+ });
105
+ }
106
+ function onSubmit2(params) {
107
+ hy.uploadProgress(params);
108
+ const { total, success, failed, result } = params;
109
+ if (success) {
110
+ hy.currentBus.value.emit("batchSetElectronicFenceUserDialog", {
111
+ method: "onSubmit",
112
+ param: {
113
+ page: 1
114
+ }
115
+ });
116
+ }
117
+ }
118
+ return {
119
+ HyBatchUploadDialogRef: HyBatchUploadDialogRef2,
120
+ tableColumns: tableColumns2,
121
+ formColumns: formColumns2,
122
+ rules: rules2,
123
+ show: show2,
124
+ submitHandler: submitHandler2,
125
+ onSubmit: onSubmit2
126
+ };
127
+ }
128
+ const {
129
+ setIsEdit,
130
+ setDragLevelIndex,
131
+ minimizedShow,
132
+ onClose,
133
+ onMinimized,
134
+ HyBatchUploadDialogRef,
135
+ tableColumns,
136
+ formColumns,
137
+ rules,
138
+ show,
139
+ submitHandler,
140
+ onSubmit
141
+ } = useMixins.useMixins({ currentBus }, [useDialog.useDialog, useDialog.useDialogIsEdit, useDialog.useBatchDialog, useBatchSetElectronicFenceUserDialog]);
142
+ __expose({
143
+ show,
144
+ setIsEdit,
145
+ minimizedShow,
146
+ setDragLevelIndex
147
+ });
148
+ return (_ctx, _cache) => {
149
+ return vue.openBlock(), vue.createBlock(vue.unref(index.HyBatchUploadDialog), {
150
+ ref_key: "HyBatchUploadDialogRef",
151
+ ref: HyBatchUploadDialogRef,
152
+ title: vue.unref(useLocale.$t)("electronicFence.batchImportAssociatedUsers"),
153
+ width: "920",
154
+ "table-columns": vue.unref(tableColumns),
155
+ "form-columns": vue.unref(formColumns),
156
+ rules: vue.unref(rules),
157
+ "row-click-expand": true,
158
+ "column-num": 2,
159
+ "submit-handler": vue.unref(submitHandler),
160
+ "show-operate": true,
161
+ "if-draggable": __props.ifDraggable,
162
+ "if-shrink": __props.ifShrink,
163
+ "on-cancel": vue.unref(onClose),
164
+ "on-close": vue.unref(onClose),
165
+ onSubmit: vue.unref(onSubmit),
166
+ onSubmitProgress: _ctx.onSubmitProgress,
167
+ onTableDataChange: _ctx.onTableDataChange,
168
+ onOnMinimized: vue.unref(onMinimized),
169
+ onOnDialogMousedown: ($event) => vue.unref(setDragLevelIndex)("HyBatchUploadDialogRef")
170
+ }, {
171
+ "template-down": vue.withCtx(() => [
172
+ vue.createCommentVNode(' <HyButton type="primary" link @click="downloadTemplate">\u4E0B\u8F7D\u7FA4\u7EC4\u6DFB\u52A0\u6A21\u677F</HyButton> '),
173
+ vue.createElementVNode("span")
174
+ ]),
175
+ _: 1
176
+ /* STABLE */
177
+ }, 8, ["title", "table-columns", "form-columns", "rules", "submit-handler", "if-draggable", "if-shrink", "on-cancel", "on-close", "onSubmit", "onSubmitProgress", "onTableDataChange", "onOnMinimized", "onOnDialogMousedown"]);
178
+ };
179
+ }
180
+ };
181
+
182
+ exports.default = _sfc_main;