hy-dispatch-ui-v3 0.2.67 → 0.2.68

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 (280) 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 +169 -0
  14. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +318 -0
  15. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.mjs +123 -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/hyMapAearchPlace/js/index.mjs +1 -1
  20. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +4 -6
  21. package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
  22. package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.mjs +270 -0
  23. package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.mjs +251 -0
  24. package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.mjs +251 -0
  25. package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.mjs +395 -0
  26. package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.mjs +651 -0
  27. package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.mjs +357 -0
  28. package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.mjs +261 -0
  29. package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.mjs +360 -0
  30. package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.mjs +240 -0
  31. package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.mjs +258 -0
  32. package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.mjs +240 -0
  33. package/es/bussiness/hyRuleSetting/index.mjs +15 -0
  34. package/es/bussiness/hyRuleSetting/js/ruleSetting.mjs +65 -0
  35. package/es/bussiness/hyRuleSetting/ruleSetting.vue.mjs +129 -0
  36. package/es/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
  37. package/es/bussiness/index.mjs +2 -0
  38. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -13
  39. package/es/components/hyAudioPlayer/js/index.mjs +9 -14
  40. package/es/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
  41. package/es/components/hyButton/button.vue.mjs +2 -2
  42. package/es/components/hyButton/style/button.scss +48 -74
  43. package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +119 -0
  44. package/es/components/hyCheckboxGroup/index.mjs +7 -0
  45. package/es/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
  46. package/es/components/hyConfigProvider/configProvider.vue.mjs +51 -38
  47. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +57 -62
  48. package/es/components/hyConfirmDialog/confirmMethod.mjs +24 -22
  49. package/es/components/hyCutter/cutter.vue.mjs +9 -23
  50. package/es/components/hyDatePicker/datePicker.vue.mjs +12 -17
  51. package/es/components/hyDialog/dialog.vue.mjs +5 -9
  52. package/es/components/hyDialog/style/dialog.scss +12 -13
  53. package/es/components/hyDrawer/drawer.vue.mjs +100 -0
  54. package/es/components/hyDrawer/index.mjs +7 -0
  55. package/es/components/hyDrawer/style/drawer.scss +0 -0
  56. package/es/components/hyForm/cpns/arrayItem.vue.mjs +10 -28
  57. package/es/components/hyForm/cpns/arrayItem2.vue.mjs +198 -0
  58. package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -3
  59. package/es/components/hyForm/cpns/formItem.vue.mjs +65 -35
  60. package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
  61. package/es/components/hyForm/form.vue.mjs +56 -24
  62. package/es/components/hyForm/js/index.mjs +4 -8
  63. package/es/components/hyForm/js/useAppForm.mjs +4 -9
  64. package/es/components/hyForm/style/form.scss +4 -13
  65. package/es/components/hyIcon/icon.vue.mjs +3 -3
  66. package/es/components/hyIconBox/style/iconBox.scss +2 -6
  67. package/es/components/hyInput/inputSearch.vue.mjs +8 -11
  68. package/es/components/hyInput/style/inputSearch.scss +3 -0
  69. package/es/components/hyLoading/index.mjs +3 -5
  70. package/es/components/hyMap/js/index.mjs +29 -4
  71. package/es/components/hyMap/map.vue.mjs +17 -3
  72. package/es/components/hyMenu/style/menu.scss +5 -15
  73. package/es/components/hyNoPermissions/noPermissions.vue.mjs +3 -4
  74. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +3 -6
  75. package/es/components/hyOrgCascader/js/index.mjs +1 -5
  76. package/es/components/hyOrgCascader/orgCascader.vue.mjs +25 -11
  77. package/es/components/hyOrgCascader/style/orgCascader.scss +7 -0
  78. package/es/components/hyRadioGroup/radioGroup.vue.mjs +48 -41
  79. package/es/components/hyRadioGroup/style/radioGroup.scss +9 -0
  80. package/es/components/hySearch/cpns/searchItem.vue.mjs +33 -20
  81. package/es/components/hySearch/js/index.mjs +1 -4
  82. package/es/components/hySearch/js/useAppSearch.mjs +5 -10
  83. package/es/components/hySearch/search.vue.mjs +9 -16
  84. package/es/components/hySearch/style/search.scss +2 -0
  85. package/es/components/hyStatus/index.mjs +7 -0
  86. package/es/components/hyStatus/status.vue.mjs +110 -0
  87. package/es/components/hyStatus/style/status.scss +0 -0
  88. package/es/components/hyTable/cpns/columnSelect.vue.mjs +24 -28
  89. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +8 -9
  90. package/es/components/hyTable/cpns/headerItem.vue.mjs +2 -2
  91. package/es/components/hyTable/cpns/virtualTable.vue.mjs +18 -28
  92. package/es/components/hyTable/js/index.mjs +56 -59
  93. package/es/components/hyTable/js/useAppTable.mjs +3 -4
  94. package/es/components/hyTable/style/table.scss +8 -0
  95. package/es/components/hyTable/table.vue.mjs +35 -41
  96. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +4 -4
  97. package/es/components/hyTableForm/batchTableForm.vue.mjs +3 -7
  98. package/es/components/hyTableForm/js/index.mjs +2 -8
  99. package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -7
  100. package/es/components/hyTableForm/style/batchTableForm.scss +26 -54
  101. package/es/components/hyTableForm/style/tableForm.scss +3 -2
  102. package/es/components/hyTableForm/tableForm.vue.mjs +90 -46
  103. package/es/components/hyTimePicker/timePicker.vue.mjs +4 -5
  104. package/es/components/hyTree/js/index.mjs +13 -40
  105. package/es/components/hyTree/style/index.css +1 -1
  106. package/es/components/hyTree/tree.vue.mjs +17 -16
  107. package/es/components/hyUserAvatar/userAvatar.vue.mjs +3 -6
  108. package/es/components/hyVideoPlayer/js/index.mjs +14 -23
  109. package/es/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
  110. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +16 -26
  111. package/es/components/index.mjs +3 -0
  112. package/es/hooks/index.mjs +6 -2
  113. package/es/hooks/useAudioPlayerConfig.mjs +1 -3
  114. package/es/hooks/useBaseMainStore.mjs +29 -0
  115. package/es/hooks/useCurrentBus.mjs +20 -0
  116. package/es/hooks/useDialog.mjs +327 -0
  117. package/es/hooks/useExportFile.mjs +133 -0
  118. package/es/hooks/useGlobalConfig.mjs +10 -6
  119. package/es/hooks/useLocale.mjs +22 -12
  120. package/es/hooks/usePermissionMap.mjs +1 -3
  121. package/es/hooks/useResizeHandler.mjs +1 -4
  122. package/es/hooks/useResizeObserver.mjs +3 -1
  123. package/es/hooks/useSubscribe.mjs +2 -2
  124. package/es/hooks/useUserAvatarMap.mjs +1 -3
  125. package/es/hooks/useVideoPlayerConfig.mjs +1 -3
  126. package/es/index.mjs +11 -2
  127. package/es/locale/{en.mjs → en_US.mjs} +79 -4
  128. package/es/locale/index.mjs +2 -2
  129. package/es/locale/zh_CN.mjs +79 -2
  130. package/es/style/tailwind.scss +7 -3
  131. package/es/utils/adaptive.mjs +1 -3
  132. package/es/utils/form.mjs +7 -10
  133. package/es/utils/handler.mjs +4 -8
  134. package/es/utils/input.mjs +8 -9
  135. package/es/utils/map/hook/bigMap.mjs +14 -53
  136. package/es/utils/map/hook/gaode.mjs +5 -20
  137. package/es/utils/map/hook/leafletjs.mjs +23 -79
  138. package/es/utils/map/index.mjs +2 -8
  139. package/es/utils/map/js/webgis.mjs +12 -12
  140. package/es/version.mjs +1 -1
  141. package/lib/api/device.js +2 -3
  142. package/lib/api/exportExcel.js +62 -0
  143. package/lib/api/index.js +27 -16
  144. package/lib/api/mapRail.js +34 -0
  145. package/lib/api/organization.js +17 -8
  146. package/lib/api/rule.js +33 -0
  147. package/lib/api/sypct.js +2 -3
  148. package/lib/api/task.js +2 -3
  149. package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +17 -18
  150. package/lib/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
  151. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +515 -0
  152. package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +173 -0
  153. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +322 -0
  154. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.js +127 -0
  155. package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +362 -0
  156. package/lib/bussiness/hyElectronicFence/index.js +21 -0
  157. package/lib/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
  158. package/lib/bussiness/hyMapAearchPlace/js/index.js +1 -1
  159. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +4 -6
  160. package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
  161. package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.js +274 -0
  162. package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.js +255 -0
  163. package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.js +255 -0
  164. package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.js +399 -0
  165. package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.js +655 -0
  166. package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.js +361 -0
  167. package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.js +265 -0
  168. package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.js +364 -0
  169. package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.js +244 -0
  170. package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.js +262 -0
  171. package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.js +244 -0
  172. package/lib/bussiness/hyRuleSetting/index.js +24 -0
  173. package/lib/bussiness/hyRuleSetting/js/ruleSetting.js +68 -0
  174. package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +133 -0
  175. package/lib/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
  176. package/lib/bussiness/index.js +21 -10
  177. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -13
  178. package/lib/components/hyAudioPlayer/js/index.js +9 -14
  179. package/lib/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
  180. package/lib/components/hyButton/button.vue.js +2 -2
  181. package/lib/components/hyButton/style/button.scss +48 -74
  182. package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +123 -0
  183. package/lib/components/hyCheckboxGroup/index.js +12 -0
  184. package/lib/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
  185. package/lib/components/hyConfigProvider/configProvider.vue.js +50 -56
  186. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +56 -61
  187. package/lib/components/hyConfirmDialog/confirmMethod.js +23 -21
  188. package/lib/components/hyCutter/cutter.vue.js +8 -22
  189. package/lib/components/hyDatePicker/datePicker.vue.js +11 -16
  190. package/lib/components/hyDialog/dialog.vue.js +5 -9
  191. package/lib/components/hyDialog/style/dialog.scss +12 -13
  192. package/lib/components/hyDrawer/drawer.vue.js +104 -0
  193. package/lib/components/hyDrawer/index.js +12 -0
  194. package/lib/components/hyDrawer/style/drawer.scss +0 -0
  195. package/lib/components/hyForm/cpns/arrayItem.vue.js +9 -27
  196. package/lib/components/hyForm/cpns/arrayItem2.vue.js +202 -0
  197. package/lib/components/hyForm/cpns/extraItem.vue.js +2 -3
  198. package/lib/components/hyForm/cpns/formItem.vue.js +66 -36
  199. package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
  200. package/lib/components/hyForm/form.vue.js +51 -19
  201. package/lib/components/hyForm/js/index.js +3 -7
  202. package/lib/components/hyForm/js/useAppForm.js +4 -9
  203. package/lib/components/hyForm/style/form.scss +4 -13
  204. package/lib/components/hyIcon/icon.vue.js +3 -3
  205. package/lib/components/hyIconBox/style/iconBox.scss +2 -6
  206. package/lib/components/hyInput/inputSearch.vue.js +7 -10
  207. package/lib/components/hyInput/style/inputSearch.scss +3 -0
  208. package/lib/components/hyLoading/index.js +2 -4
  209. package/lib/components/hyMap/js/index.js +29 -4
  210. package/lib/components/hyMap/map.vue.js +17 -3
  211. package/lib/components/hyMenu/style/menu.scss +5 -15
  212. package/lib/components/hyNoPermissions/noPermissions.vue.js +3 -4
  213. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +3 -6
  214. package/lib/components/hyOrgCascader/js/index.js +1 -5
  215. package/lib/components/hyOrgCascader/orgCascader.vue.js +23 -9
  216. package/lib/components/hyOrgCascader/style/orgCascader.scss +7 -0
  217. package/lib/components/hyRadioGroup/radioGroup.vue.js +47 -40
  218. package/lib/components/hyRadioGroup/style/radioGroup.scss +9 -0
  219. package/lib/components/hySearch/cpns/searchItem.vue.js +33 -20
  220. package/lib/components/hySearch/js/index.js +1 -4
  221. package/lib/components/hySearch/js/useAppSearch.js +5 -10
  222. package/lib/components/hySearch/search.vue.js +9 -16
  223. package/lib/components/hySearch/style/search.scss +2 -0
  224. package/lib/components/hyStatus/index.js +12 -0
  225. package/lib/components/hyStatus/status.vue.js +114 -0
  226. package/lib/components/hyStatus/style/status.scss +0 -0
  227. package/lib/components/hyTable/cpns/columnSelect.vue.js +22 -26
  228. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +7 -8
  229. package/lib/components/hyTable/cpns/headerItem.vue.js +2 -2
  230. package/lib/components/hyTable/cpns/virtualTable.vue.js +17 -27
  231. package/lib/components/hyTable/js/index.js +54 -57
  232. package/lib/components/hyTable/js/useAppTable.js +2 -3
  233. package/lib/components/hyTable/style/table.scss +8 -0
  234. package/lib/components/hyTable/table.vue.js +35 -41
  235. package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -4
  236. package/lib/components/hyTableForm/batchTableForm.vue.js +3 -7
  237. package/lib/components/hyTableForm/js/index.js +2 -8
  238. package/lib/components/hyTableForm/js/useAppTableForm.js +2 -7
  239. package/lib/components/hyTableForm/style/batchTableForm.scss +26 -54
  240. package/lib/components/hyTableForm/style/tableForm.scss +3 -2
  241. package/lib/components/hyTableForm/tableForm.vue.js +89 -45
  242. package/lib/components/hyTimePicker/timePicker.vue.js +3 -4
  243. package/lib/components/hyTree/js/index.js +13 -40
  244. package/lib/components/hyTree/style/index.css +1 -1
  245. package/lib/components/hyTree/tree.vue.js +17 -16
  246. package/lib/components/hyUserAvatar/userAvatar.vue.js +3 -6
  247. package/lib/components/hyVideoPlayer/js/index.js +14 -23
  248. package/lib/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
  249. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +16 -26
  250. package/lib/components/index.js +46 -40
  251. package/lib/hooks/index.js +17 -0
  252. package/lib/hooks/useAudioPlayerConfig.js +1 -3
  253. package/lib/hooks/useBaseMainStore.js +32 -0
  254. package/lib/hooks/useCurrentBus.js +23 -0
  255. package/lib/hooks/useDialog.js +331 -0
  256. package/lib/hooks/useExportFile.js +135 -0
  257. package/lib/hooks/useGlobalConfig.js +10 -6
  258. package/lib/hooks/useLocale.js +25 -11
  259. package/lib/hooks/usePermissionMap.js +1 -3
  260. package/lib/hooks/useResizeHandler.js +1 -4
  261. package/lib/hooks/useResizeObserver.js +3 -1
  262. package/lib/hooks/useSubscribe.js +2 -1
  263. package/lib/hooks/useUserAvatarMap.js +1 -3
  264. package/lib/hooks/useVideoPlayerConfig.js +1 -3
  265. package/lib/index.js +107 -73
  266. package/lib/locale/{en.js → en_US.js} +79 -4
  267. package/lib/locale/index.js +3 -3
  268. package/lib/locale/zh_CN.js +79 -2
  269. package/lib/style/tailwind.scss +7 -3
  270. package/lib/utils/adaptive.js +1 -3
  271. package/lib/utils/form.js +6 -9
  272. package/lib/utils/handler.js +3 -7
  273. package/lib/utils/input.js +7 -8
  274. package/lib/utils/map/hook/bigMap.js +14 -53
  275. package/lib/utils/map/hook/gaode.js +5 -20
  276. package/lib/utils/map/hook/leafletjs.js +23 -79
  277. package/lib/utils/map/index.js +2 -8
  278. package/lib/utils/map/js/webgis.js +12 -12
  279. package/lib/version.js +1 -1
  280. package/package.json +3 -2
@@ -0,0 +1,258 @@
1
+ import { useTemplateRef, ref, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode, toDisplayString, createElementVNode, createCommentVNode } from 'vue';
2
+ import { ElMessage, ElPopover } from 'element-plus';
3
+ import { deleteBatchApi } from '../../../../api/index.mjs';
4
+ import '../../../../hooks/index.mjs';
5
+ import { weekDateFn } from '../../js/ruleSetting.mjs';
6
+ import '../../../../components/index.mjs';
7
+ import { useAppTable } from '../../../../components/hyTable/js/useAppTable.mjs';
8
+ import { $t } from '../../../../hooks/useLocale.mjs';
9
+ import { HyConfirmDialog } from '../../../../components/hyConfirmDialog/index.mjs';
10
+ import { useMixins } from '../../../../hooks/useMixins.mjs';
11
+ import { HyTable } from '../../../../components/hyTable/index.mjs';
12
+ import { HyTableActionButton } from '../../../../components/hyTableActionButton/index.mjs';
13
+ import { HyIcon } from '../../../../components/hyIcon/index.mjs';
14
+
15
+ const _sfc_main = {
16
+ __name: "timerCamera",
17
+ emits: ["on-add", "on-edit", "on-rule-assign"],
18
+ setup(__props, { expose: __expose, emit: __emit }) {
19
+ const emits = __emit;
20
+ const tableRef = useTemplateRef("tableRef");
21
+ function useTimerCamera(hy) {
22
+ const { tableRef: tableRef2 } = hy;
23
+ const { tableColumns: tableColumns2, filterModel: filterModel2, filterColumns: filterColumns2 } = useAppTable({
24
+ columns: [
25
+ {
26
+ prop: "ruleName",
27
+ label: $t("ruleSetting.ruleName"),
28
+ isSearch: true
29
+ },
30
+ {
31
+ prop: "attendanceTime",
32
+ label: $t("ruleSetting.workingHours"),
33
+ slot: "attendanceTime"
34
+ },
35
+ {
36
+ prop: "snapMode",
37
+ label: $t("ruleSetting.captureMode"),
38
+ renderContent: ({ row }) => {
39
+ if (row.snapMode === 1) {
40
+ return $t("ruleSetting.loopSnapshot");
41
+ } else if (row.snapMode === 2) {
42
+ return $t("ruleSetting.independentSnapshot");
43
+ }
44
+ }
45
+ },
46
+ {
47
+ prop: "snapSpace",
48
+ label: $t("ruleSetting.snapshotInterval"),
49
+ renderContent: ({ row }) => {
50
+ return `${row.snapSpace || 0} ${$t("ruleSetting.second")}`;
51
+ }
52
+ },
53
+ {
54
+ type: "operator",
55
+ operator: [
56
+ {
57
+ label: $t("ruleSetting.distribution"),
58
+ desc: $t("ruleSetting.assignRules"),
59
+ svgName: "ops-linear-fen-pei",
60
+ handler: ({ row }) => {
61
+ hy.assingRules(row);
62
+ }
63
+ },
64
+ {
65
+ label: $t("bussiness.edit"),
66
+ desc: $t("bussiness.edit"),
67
+ svgName: "ops-button-edit",
68
+ handler: ({ row }) => {
69
+ emits("on-edit", row);
70
+ }
71
+ },
72
+ {
73
+ desc: $t("bussiness.delete"),
74
+ label: $t("bussiness.delete"),
75
+ svgName: "ops-linear-delete",
76
+ className: "text-danger-2",
77
+ handler: ({ row }) => {
78
+ hy.deleteShow(row);
79
+ }
80
+ }
81
+ ]
82
+ }
83
+ ],
84
+ filterColumns: [],
85
+ filterModel: {
86
+ type: 4
87
+ }
88
+ });
89
+ const searchArr2 = ref([]);
90
+ function showAddRuleSettingDialog2(row) {
91
+ emits("on-add", row);
92
+ }
93
+ function assingRules(row) {
94
+ emits("on-rule-assign", row);
95
+ }
96
+ function deleteShow(data) {
97
+ HyConfirmDialog.danger({
98
+ title: "\u786E\u8BA4\u5220\u9664",
99
+ content: `<div><p>\u5220\u9664\u540E\u65E0\u6CD5\u8FD8\u539F\uFF0C\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u89C4\u5219\uFF1F</p><p class="text-theme mt-1">"${data.ruleName}"</p></div>`,
100
+ onSubmit() {
101
+ return new Promise((resolve, reject) => {
102
+ deleteBatchApi("rule", data.id).then((res) => {
103
+ if (res.code === 200) {
104
+ ElMessage.success($t("bussiness.successfulDeletion"));
105
+ hy.getData();
106
+ resolve();
107
+ }
108
+ }).catch(() => {
109
+ reject();
110
+ });
111
+ });
112
+ }
113
+ });
114
+ }
115
+ function getData2(page = null) {
116
+ tableRef2.value.getData(page);
117
+ }
118
+ return {
119
+ // data
120
+ tableColumns: tableColumns2,
121
+ filterModel: filterModel2,
122
+ filterColumns: filterColumns2,
123
+ searchArr: searchArr2,
124
+ // methods
125
+ assingRules,
126
+ showAddRuleSettingDialog: showAddRuleSettingDialog2,
127
+ deleteShow,
128
+ getData: getData2
129
+ };
130
+ }
131
+ const { tableColumns, filterModel, filterColumns, searchArr, showAddRuleSettingDialog, getData } = useMixins({ tableRef }, [useTimerCamera]);
132
+ __expose({
133
+ getData
134
+ });
135
+ return (_ctx, _cache) => {
136
+ return openBlock(), createElementBlock("div", { class: "w-full h-full" }, [
137
+ createVNode(unref(HyTable), {
138
+ ref_key: "tableRef",
139
+ ref: tableRef,
140
+ controller: "rule",
141
+ "table-columns": unref(tableColumns),
142
+ "filter-model": unref(filterModel),
143
+ "filter-columns": unref(filterColumns),
144
+ "search-arr": unref(searchArr),
145
+ "show-editable": false
146
+ }, {
147
+ "operator-left-box": withCtx(() => [
148
+ createVNode(unref(HyTableActionButton), {
149
+ type: "success",
150
+ "svg-name": "ops-button-add",
151
+ label: "\u6DFB\u52A0",
152
+ "operate-list": [
153
+ {
154
+ children: [
155
+ {
156
+ label: "\u6DFB\u52A0\u5B9A\u65F6\u62CD\u7167",
157
+ value: "showAddRuleSettingDialog",
158
+ altText: ``
159
+ }
160
+ ]
161
+ }
162
+ ],
163
+ onChange: ($event) => unref(showAddRuleSettingDialog)({ type: unref(filterModel).type })
164
+ }, null, 8, ["onChange"]),
165
+ createVNode(unref(ElPopover), {
166
+ placement: "bottom-start",
167
+ width: "200",
168
+ trigger: "hover"
169
+ }, {
170
+ reference: withCtx(() => [
171
+ createElementVNode("span", { class: "text-xs text-theme ml-2" }, [
172
+ createVNode(unref(HyIcon), {
173
+ "svg-name": "dispatch-share-v3-base-help",
174
+ class: "!w-3 !h-3 mr-1"
175
+ }),
176
+ createElementVNode(
177
+ "span",
178
+ null,
179
+ toDisplayString(unref($t)("hy.help")),
180
+ 1
181
+ /* TEXT */
182
+ )
183
+ ])
184
+ ]),
185
+ default: withCtx(() => [
186
+ createElementVNode("div", { class: "p-[10px_20px] text-xs" }, [
187
+ createElementVNode("div", { class: "mb-2 break-keep" }, "\u89C4\u5219\u4F7F\u7528\u8BF4\u660E\uFF1A"),
188
+ createElementVNode("ul", null, [
189
+ createElementVNode("li", { class: "flex mb_10" }, [
190
+ createElementVNode("span", null, "1\u3001"),
191
+ createElementVNode("span", null, "\u6DFB\u52A0\u89C4\u5219")
192
+ ]),
193
+ createElementVNode("li", { class: "flex mb_10" }, [
194
+ createElementVNode("span", null, "2\u3001"),
195
+ createElementVNode("span", null, "\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u7684\u89C4\u5219\u6761\u4EF6")
196
+ ]),
197
+ createElementVNode("li", { class: "flex mb_10" }, [
198
+ createElementVNode("span", null, "3\u3001"),
199
+ createElementVNode("span", null, "\u5E76\u628A\u9700\u8981\u6267\u884C\u6B64\u89C4\u5219\u7684\u4EBA\u5458\u6388\u6743\u7ED9\u5B83")
200
+ ])
201
+ ])
202
+ ])
203
+ ]),
204
+ _: 1
205
+ /* STABLE */
206
+ })
207
+ ]),
208
+ attendanceTime: withCtx(({ row }) => [
209
+ row.ruleDateType === 1 || !row.ruleDateType ? (openBlock(), createElementBlock("div", { key: 0 }, [
210
+ createTextVNode(
211
+ toDisplayString(unref($t)("ruleSetting.everyDay")) + " ",
212
+ 1
213
+ /* TEXT */
214
+ ),
215
+ createElementVNode(
216
+ "span",
217
+ { class: "text-auxiliary text-xs" },
218
+ "(" + toDisplayString(row.startDtm1) + "-" + toDisplayString(row.endDtm1) + ")",
219
+ 1
220
+ /* TEXT */
221
+ )
222
+ ])) : row.ruleDateType === 2 ? (openBlock(), createElementBlock("div", { key: 1 }, [
223
+ createTextVNode(
224
+ toDisplayString(unref(weekDateFn)(row.weekDate)) + " ",
225
+ 1
226
+ /* TEXT */
227
+ ),
228
+ createElementVNode(
229
+ "span",
230
+ { class: "text-auxiliary text-xs" },
231
+ "(" + toDisplayString(row.startDtm1) + "-" + toDisplayString(row.endDtm1) + "})",
232
+ 1
233
+ /* TEXT */
234
+ )
235
+ ])) : row.ruleDateType === 4 ? (openBlock(), createElementBlock("div", { key: 2 }, [
236
+ createTextVNode(
237
+ toDisplayString(row.apStartDtm.split(" 00:00:00")[0]) + " ~ " + toDisplayString(row.apEndDtm.split(" 00:00:00")[0]) + " ",
238
+ 1
239
+ /* TEXT */
240
+ ),
241
+ createElementVNode(
242
+ "span",
243
+ { class: "text-auxiliary text-xs" },
244
+ "(" + toDisplayString(row.startDtm1) + "-" + toDisplayString(row.endDtm1) + "})",
245
+ 1
246
+ /* TEXT */
247
+ )
248
+ ])) : createCommentVNode("v-if", true)
249
+ ]),
250
+ _: 1
251
+ /* STABLE */
252
+ }, 8, ["table-columns", "filter-model", "filter-columns", "search-arr"])
253
+ ]);
254
+ };
255
+ }
256
+ };
257
+
258
+ export { _sfc_main as default };
@@ -0,0 +1,240 @@
1
+ import { useTemplateRef, ref, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode, toDisplayString, createElementVNode, createCommentVNode } from 'vue';
2
+ import { ElMessage, ElPopover } from 'element-plus';
3
+ import { deleteBatchApi } from '../../../../api/index.mjs';
4
+ import '../../../../hooks/index.mjs';
5
+ import { weekDateFn } from '../../js/ruleSetting.mjs';
6
+ import '../../../../components/index.mjs';
7
+ import { useAppTable } from '../../../../components/hyTable/js/useAppTable.mjs';
8
+ import { $t } from '../../../../hooks/useLocale.mjs';
9
+ import { HyConfirmDialog } from '../../../../components/hyConfirmDialog/index.mjs';
10
+ import { useMixins } from '../../../../hooks/useMixins.mjs';
11
+ import { HyTable } from '../../../../components/hyTable/index.mjs';
12
+ import { HyTableActionButton } from '../../../../components/hyTableActionButton/index.mjs';
13
+ import { HyIcon } from '../../../../components/hyIcon/index.mjs';
14
+
15
+ const _sfc_main = {
16
+ __name: "timingReturn",
17
+ emits: ["on-add", "on-edit", "on-rule-assign"],
18
+ setup(__props, { expose: __expose, emit: __emit }) {
19
+ const emits = __emit;
20
+ const tableRef = useTemplateRef("tableRef");
21
+ function useTimingReturn(hy) {
22
+ const { tableRef: tableRef2 } = hy;
23
+ const { tableColumns: tableColumns2, filterModel: filterModel2, filterColumns: filterColumns2 } = useAppTable({
24
+ columns: [
25
+ {
26
+ prop: "ruleName",
27
+ label: $t("ruleSetting.ruleName"),
28
+ isSearch: true
29
+ },
30
+ {
31
+ prop: "attendanceTime",
32
+ label: $t("ruleSetting.workingHours"),
33
+ slot: "attendanceTime"
34
+ },
35
+ {
36
+ type: "operator",
37
+ operator: [
38
+ {
39
+ label: $t("ruleSetting.distribution"),
40
+ desc: $t("ruleSetting.assignRules"),
41
+ svgName: "ops-linear-fen-pei",
42
+ handler: ({ row }) => {
43
+ hy.assingRules(row);
44
+ }
45
+ },
46
+ {
47
+ label: $t("bussiness.edit"),
48
+ desc: $t("bussiness.edit"),
49
+ svgName: "ops-button-edit",
50
+ handler: ({ row }) => {
51
+ emits("on-edit", row);
52
+ }
53
+ },
54
+ {
55
+ desc: $t("bussiness.delete"),
56
+ label: $t("bussiness.delete"),
57
+ svgName: "ops-linear-delete",
58
+ className: "text-danger-2",
59
+ handler: ({ row }) => {
60
+ hy.deleteShow(row);
61
+ }
62
+ }
63
+ ]
64
+ }
65
+ ],
66
+ filterColumns: [],
67
+ filterModel: {
68
+ type: 6
69
+ }
70
+ });
71
+ const searchArr2 = ref([]);
72
+ function showAddRuleFenceDialog2(row) {
73
+ emits("on-add", row);
74
+ }
75
+ function assingRules(row) {
76
+ emits("on-rule-assign", row);
77
+ }
78
+ function deleteShow(data) {
79
+ HyConfirmDialog.danger({
80
+ title: "\u786E\u8BA4\u5220\u9664",
81
+ content: `<div><p>\u5220\u9664\u540E\u65E0\u6CD5\u8FD8\u539F\uFF0C\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u89C4\u5219\uFF1F</p><p class="text-theme mt-1">"${data.ruleName}"</p></div>`,
82
+ onSubmit() {
83
+ return new Promise((resolve, reject) => {
84
+ deleteBatchApi("rule", data.id).then((res) => {
85
+ if (res.code === 200) {
86
+ ElMessage.success($t("bussiness.successfulDeletion"));
87
+ hy.getData();
88
+ resolve();
89
+ }
90
+ }).catch(() => {
91
+ reject();
92
+ });
93
+ });
94
+ }
95
+ });
96
+ }
97
+ function getData2(page = null) {
98
+ tableRef2.value.getData(page);
99
+ }
100
+ return {
101
+ // data
102
+ tableColumns: tableColumns2,
103
+ filterModel: filterModel2,
104
+ filterColumns: filterColumns2,
105
+ searchArr: searchArr2,
106
+ // methods
107
+ showAddRuleFenceDialog: showAddRuleFenceDialog2,
108
+ assingRules,
109
+ deleteShow,
110
+ getData: getData2
111
+ };
112
+ }
113
+ const { tableColumns, filterModel, filterColumns, searchArr, showAddRuleFenceDialog, getData } = useMixins({ tableRef }, [useTimingReturn]);
114
+ __expose({
115
+ getData
116
+ });
117
+ return (_ctx, _cache) => {
118
+ return openBlock(), createElementBlock("div", { class: "w-full h-full" }, [
119
+ createVNode(unref(HyTable), {
120
+ ref_key: "tableRef",
121
+ ref: tableRef,
122
+ controller: "rule",
123
+ "table-columns": unref(tableColumns),
124
+ "filter-model": unref(filterModel),
125
+ "filter-columns": unref(filterColumns),
126
+ "search-arr": unref(searchArr),
127
+ "show-editable": false
128
+ }, {
129
+ "operator-left-box": withCtx(() => [
130
+ createVNode(unref(HyTableActionButton), {
131
+ type: "success",
132
+ "svg-name": "ops-button-add",
133
+ label: "\u6DFB\u52A0",
134
+ "operate-list": [
135
+ {
136
+ children: [
137
+ {
138
+ label: "\u6DFB\u52A0\u7981\u5165\u89C4\u5219",
139
+ value: "showAddRuleFenceDialog",
140
+ altText: ``
141
+ }
142
+ ]
143
+ }
144
+ ],
145
+ onChange: ($event) => unref(showAddRuleFenceDialog)({ type: unref(filterModel).type })
146
+ }, null, 8, ["onChange"]),
147
+ createVNode(unref(ElPopover), {
148
+ placement: "bottom-start",
149
+ width: "200",
150
+ trigger: "hover"
151
+ }, {
152
+ reference: withCtx(() => [
153
+ createElementVNode("span", { class: "text-xs text-theme ml-2" }, [
154
+ createVNode(unref(HyIcon), {
155
+ "svg-name": "dispatch-share-v3-base-help",
156
+ class: "!w-3 !h-3 mr-1"
157
+ }),
158
+ createElementVNode(
159
+ "span",
160
+ null,
161
+ toDisplayString(unref($t)("hy.help")),
162
+ 1
163
+ /* TEXT */
164
+ )
165
+ ])
166
+ ]),
167
+ default: withCtx(() => [
168
+ createElementVNode("div", { class: "p-[10px_20px] text-xs" }, [
169
+ createElementVNode("div", { class: "mb-2 break-keep" }, "\u89C4\u5219\u4F7F\u7528\u8BF4\u660E\uFF1A"),
170
+ createElementVNode("ul", null, [
171
+ createElementVNode("li", { class: "flex mb_10" }, [
172
+ createElementVNode("span", null, "1\u3001"),
173
+ createElementVNode("span", null, "\u6DFB\u52A0\u89C4\u5219")
174
+ ]),
175
+ createElementVNode("li", { class: "flex mb_10" }, [
176
+ createElementVNode("span", null, "2\u3001"),
177
+ createElementVNode("span", null, "\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u7684\u89C4\u5219\u6761\u4EF6")
178
+ ]),
179
+ createElementVNode("li", { class: "flex mb_10" }, [
180
+ createElementVNode("span", null, "3\u3001"),
181
+ createElementVNode("span", null, "\u5E76\u628A\u9700\u8981\u6267\u884C\u6B64\u89C4\u5219\u7684\u4EBA\u5458\u6388\u6743\u7ED9\u5B83")
182
+ ])
183
+ ])
184
+ ])
185
+ ]),
186
+ _: 1
187
+ /* STABLE */
188
+ })
189
+ ]),
190
+ attendanceTime: withCtx(({ row }) => [
191
+ row.ruleDateType === 1 || !row.ruleDateType ? (openBlock(), createElementBlock("div", { key: 0 }, [
192
+ createTextVNode(
193
+ toDisplayString(unref($t)("ruleSetting.everyDay")) + " ",
194
+ 1
195
+ /* TEXT */
196
+ ),
197
+ createElementVNode(
198
+ "span",
199
+ { class: "text-auxiliary text-xs" },
200
+ "(" + toDisplayString(row.startDtm1) + "-" + toDisplayString(row.endDtm1) + ")",
201
+ 1
202
+ /* TEXT */
203
+ )
204
+ ])) : row.ruleDateType === 2 ? (openBlock(), createElementBlock("div", { key: 1 }, [
205
+ createTextVNode(
206
+ toDisplayString(unref(weekDateFn)(row.weekDate)) + " ",
207
+ 1
208
+ /* TEXT */
209
+ ),
210
+ createElementVNode(
211
+ "span",
212
+ { class: "text-auxiliary text-xs" },
213
+ "(" + toDisplayString(row.startDtm1) + "-" + toDisplayString(row.endDtm1) + "})",
214
+ 1
215
+ /* TEXT */
216
+ )
217
+ ])) : row.ruleDateType === 4 ? (openBlock(), createElementBlock("div", { key: 2 }, [
218
+ createTextVNode(
219
+ toDisplayString(row.apStartDtm.split(" 00:00:00")[0]) + " ~ " + toDisplayString(row.apEndDtm.split(" 00:00:00")[0]) + " ",
220
+ 1
221
+ /* TEXT */
222
+ ),
223
+ createElementVNode(
224
+ "span",
225
+ { class: "text-auxiliary text-xs" },
226
+ "(" + toDisplayString(row.startDtm1) + "-" + toDisplayString(row.endDtm1) + "})",
227
+ 1
228
+ /* TEXT */
229
+ )
230
+ ])) : createCommentVNode("v-if", true)
231
+ ]),
232
+ _: 1
233
+ /* STABLE */
234
+ }, 8, ["table-columns", "filter-model", "filter-columns", "search-arr"])
235
+ ]);
236
+ };
237
+ }
238
+ };
239
+
240
+ export { _sfc_main as default };
@@ -0,0 +1,15 @@
1
+ import '../../utils/index.mjs';
2
+ import _sfc_main from './ruleSetting.vue.mjs';
3
+ import _sfc_main$1 from './cpns/ruleAssignDialog/ruleAssignDialog.vue.mjs';
4
+ import _sfc_main$2 from './cpns/ruleFenceDialog/ruleFenceDialog.vue.mjs';
5
+ import _sfc_main$3 from './cpns/ruleSettingDialog/ruleSettingDialog.vue.mjs';
6
+ import _sfc_main$4 from './cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.mjs';
7
+ import { withInstall } from '../../utils/handler.mjs';
8
+
9
+ const HyRuleSetting = withInstall(_sfc_main);
10
+ const HyRuleAssignDialog = withInstall(_sfc_main$1);
11
+ const HyRuleFenceDialog = withInstall(_sfc_main$2);
12
+ const HyRuleSettingDialog = withInstall(_sfc_main$3);
13
+ const HySetRuleAggregationAlarmDialog = withInstall(_sfc_main$4);
14
+
15
+ export { HyRuleAssignDialog, HyRuleFenceDialog, HyRuleSetting, HyRuleSettingDialog, HySetRuleAggregationAlarmDialog, HyRuleSetting as default };
@@ -0,0 +1,65 @@
1
+ import '../../../hooks/index.mjs';
2
+ import { $t } from '../../../hooks/useLocale.mjs';
3
+
4
+ function getTabsList() {
5
+ let permissionIdList = window.sessionStorage.getItem("permissionIdList");
6
+ permissionIdList = JSON.parse(permissionIdList || "[]").reduce((obj, val) => {
7
+ obj[val] = true;
8
+ return obj;
9
+ }, {});
10
+ return [
11
+ {
12
+ name: $t("ruleSetting.noEntry"),
13
+ permission: "operator_ruleSetting_missionInRule"
14
+ },
15
+ {
16
+ name: $t("ruleSetting.noExit"),
17
+ permission: "operator_ruleSetting_missionOutRule"
18
+ },
19
+ {
20
+ name: $t("ruleSetting.silent"),
21
+ permission: "operator_ruleSetting_sedentary"
22
+ },
23
+ {
24
+ name: $t("ruleSetting.scheduledPhoto"),
25
+ permission: "operator_ruleSetting_timerCamera"
26
+ },
27
+ {
28
+ name: $t("ruleSetting.scheduledVideo"),
29
+ permission: "operator_ruleSetting_timedVideo"
30
+ },
31
+ {
32
+ name: $t("ruleSetting.scheduledFeedback"),
33
+ permission: "operator_ruleSetting_timingReturn"
34
+ },
35
+ {
36
+ name: $t("ruleSetting.gather"),
37
+ permission: "operator_ruleSetting_gatheringPeople"
38
+ }
39
+ ];
40
+ }
41
+ function weekDateFn(weekDate) {
42
+ weekDate = weekDate.split(",");
43
+ const data = [];
44
+ weekDate.forEach((v) => {
45
+ v -= 0;
46
+ if (v === 1) {
47
+ data.push($t("hy.monday"));
48
+ } else if (v === 2) {
49
+ data.push($t("hy.tuesday"));
50
+ } else if (v === 3) {
51
+ data.push($t("hy.wednesday"));
52
+ } else if (v === 4) {
53
+ data.push($t("hy.thursday"));
54
+ } else if (v === 5) {
55
+ data.push($t("hy.friday"));
56
+ } else if (v === 6) {
57
+ data.push($t("hy.saturday"));
58
+ } else if (v === 7) {
59
+ data.push($t("hy.sunday"));
60
+ }
61
+ });
62
+ return data.join(",");
63
+ }
64
+
65
+ export { getTabsList, weekDateFn };