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