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.
- 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 +178 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +316 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.mjs +119 -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/hyElectronicFence/style/electronicFenceAssociatedUsersDialog.scss +25 -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 +75 -37
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
- package/es/components/hyForm/form.vue.mjs +58 -24
- package/es/components/hyForm/js/index.mjs +4 -8
- package/es/components/hyForm/js/useAppForm.mjs +5 -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 +6 -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 +3 -11
- 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} +81 -5
- package/es/locale/index.mjs +2 -2
- package/es/locale/zh_CN.mjs +81 -3
- package/es/style/tailwind.scss +7 -3
- package/es/utils/adaptive.mjs +1 -3
- package/es/utils/form.mjs +19 -12
- 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 +182 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +320 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.js +123 -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/hyElectronicFence/style/electronicFenceAssociatedUsersDialog.scss +25 -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 +76 -38
- package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
- package/lib/components/hyForm/form.vue.js +53 -19
- package/lib/components/hyForm/js/index.js +3 -7
- package/lib/components/hyForm/js/useAppForm.js +5 -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 +6 -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 +3 -11
- 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} +81 -5
- package/lib/locale/index.js +3 -3
- package/lib/locale/zh_CN.js +81 -3
- package/lib/style/tailwind.scss +7 -3
- package/lib/utils/adaptive.js +1 -3
- package/lib/utils/form.js +17 -10
- 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
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { defineComponent, useTemplateRef, ref, onMounted, onUnmounted, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, toDisplayString, createBlock } from 'vue';
|
|
2
|
+
import { ElMessage } from 'element-plus';
|
|
3
|
+
import { deleteBatchApi } from '../../api/index.mjs';
|
|
4
|
+
import '../../hooks/index.mjs';
|
|
5
|
+
import '../../components/index.mjs';
|
|
6
|
+
import { useCurrentBus } from '../../hooks/useCurrentBus.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 { useExportFile } from '../../hooks/useExportFile.mjs';
|
|
12
|
+
import { HyTable } from '../../components/hyTable/index.mjs';
|
|
13
|
+
import { HyTooltip } from '../../components/hyTooltip/index.mjs';
|
|
14
|
+
import { HyTableActionButton } from '../../components/hyTableActionButton/index.mjs';
|
|
15
|
+
|
|
16
|
+
import "./style/electronicFence.scss";
|
|
17
|
+
|
|
18
|
+
const __default__ = defineComponent({
|
|
19
|
+
name: "HyElectronicFence"
|
|
20
|
+
});
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
22
|
+
props: {},
|
|
23
|
+
emits: ["on-add", "on-edit", "on-associated-users", "on-batch-associated-users"],
|
|
24
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const emits = __emit;
|
|
27
|
+
const { currentBus } = useCurrentBus();
|
|
28
|
+
const tableRef = useTemplateRef("tableRef");
|
|
29
|
+
const addElectronicFence = useTemplateRef("addElectronicFence");
|
|
30
|
+
function useElectronicFence(hy) {
|
|
31
|
+
const { tableRef: tableRef2 } = hy;
|
|
32
|
+
const { tableColumns: tableColumns2, filterModel: filterModel2, filterColumns: filterColumns2 } = useAppTable({
|
|
33
|
+
columns: [
|
|
34
|
+
{
|
|
35
|
+
type: "selection"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
prop: "railName",
|
|
39
|
+
label: $t("electronicFence.electronicFenceName"),
|
|
40
|
+
isSearch: true,
|
|
41
|
+
editable: {
|
|
42
|
+
lock: true
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
prop: "orgName",
|
|
47
|
+
label: $t("bussiness.department"),
|
|
48
|
+
editable: {
|
|
49
|
+
lock: true
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
prop: "createUser",
|
|
54
|
+
label: $t("electronicFence.createInformation"),
|
|
55
|
+
slot: "createUser"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: "operator",
|
|
59
|
+
fixed: "right",
|
|
60
|
+
operator: [
|
|
61
|
+
{
|
|
62
|
+
label: $t("bussiness.edit"),
|
|
63
|
+
desc: $t("bussiness.edit"),
|
|
64
|
+
svgName: "ops-button-edit",
|
|
65
|
+
handler: ({ row }) => {
|
|
66
|
+
emits("on-edit", row);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: $t("bussiness.associate"),
|
|
71
|
+
desc: $t("electronicFence.associateUser"),
|
|
72
|
+
svgName: "ops-button-correlation",
|
|
73
|
+
handler: ({ row }) => {
|
|
74
|
+
emits("on-associated-users", { ...row, mapRailId: row.id });
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
desc: $t("bussiness.delete"),
|
|
79
|
+
label: $t("bussiness.delete"),
|
|
80
|
+
svgName: "ops-linear-delete",
|
|
81
|
+
className: "text-danger-2",
|
|
82
|
+
handler: ({ row }) => {
|
|
83
|
+
hy.deleteShow(row);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
filterColumns: [
|
|
90
|
+
{
|
|
91
|
+
type: "select",
|
|
92
|
+
prop: "showChildOrg",
|
|
93
|
+
label: "\u6570\u636E",
|
|
94
|
+
defaultValue: 0,
|
|
95
|
+
attrs: {
|
|
96
|
+
options: [
|
|
97
|
+
{ label: "\u4EC5\u5C55\u793A\u672C\u7EA7\u90E8\u95E8\u6570\u636E", value: 0 },
|
|
98
|
+
{ label: "\u5C55\u793A\u672C\u7EA7\u5305\u62EC\u4E0B\u7EA7\u6570\u636E", value: 1 }
|
|
99
|
+
],
|
|
100
|
+
clearable: false
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
type: "org-cascader",
|
|
105
|
+
prop: "orgId"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
filterModel: {}
|
|
109
|
+
});
|
|
110
|
+
const searchArr2 = ref([]);
|
|
111
|
+
const selectedList2 = ref([]);
|
|
112
|
+
function deleteShow(data) {
|
|
113
|
+
HyConfirmDialog.danger({
|
|
114
|
+
title: $t("bussiness.confirmDeletion"),
|
|
115
|
+
content: `<div><p>${$t("bussiness.deletingThisWillResultInIrrecoverableLossAreYouSureYouWantToDeleteThis", [$t("electronicFence.electronicFence")])}</p><p class="text-theme mt-1">"${data.railName}"</p></div>`,
|
|
116
|
+
onSubmit() {
|
|
117
|
+
return new Promise((resolve, reject) => {
|
|
118
|
+
deleteBatchApi("mapRail", data.id).then((res) => {
|
|
119
|
+
if (res.code === 200) {
|
|
120
|
+
ElMessage.success($t("bussiness.successfulDeletion"));
|
|
121
|
+
hy.getData();
|
|
122
|
+
resolve();
|
|
123
|
+
}
|
|
124
|
+
}).catch(() => {
|
|
125
|
+
reject();
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function handleCommand2(command) {
|
|
132
|
+
if (command === "addElectronicFence") {
|
|
133
|
+
emits("on-add");
|
|
134
|
+
} else if (command === "batchImportUser") {
|
|
135
|
+
emits("on-batch-associated-users");
|
|
136
|
+
} else if (command === "selectElectronic") {
|
|
137
|
+
if (!selectedList2.value?.length) {
|
|
138
|
+
return ElMessage.warning($t("electronicFence.pleaseSelectAGeofence"));
|
|
139
|
+
}
|
|
140
|
+
hy.customExportFilePostToFormFn($t("electronicFence.electronicFence"), "mapRail", {
|
|
141
|
+
idList: selectedList2.value.map((v) => v.id)
|
|
142
|
+
});
|
|
143
|
+
} else if (command === "allElectronic") {
|
|
144
|
+
const total = tableRef2.value.getTotalElements();
|
|
145
|
+
hy.customExportFilePostToFormFn($t("electronicFence.electronicFence"), "mapRail", {
|
|
146
|
+
...filterModel2.value,
|
|
147
|
+
page: 0,
|
|
148
|
+
size: total
|
|
149
|
+
});
|
|
150
|
+
} else if (command === "selectUserTemplate") {
|
|
151
|
+
if (!selectedList2.value?.length) {
|
|
152
|
+
return ElMessage.warning($t("electronicFence.pleaseSelectAGeofence"));
|
|
153
|
+
}
|
|
154
|
+
hy.customExportFilePostToFormFn($t("electronicFence.associateUser"), "mapRailUser", {
|
|
155
|
+
idList: selectedList2.value.map((v) => v.id)
|
|
156
|
+
});
|
|
157
|
+
} else if (command === "allUserTemplate") {
|
|
158
|
+
const total = tableRef2.value.getTotalElements();
|
|
159
|
+
hy.customExportFilePostToFormFn($t("electronicFence.associateUser"), "mapRailUser", {
|
|
160
|
+
...filterModel2.value,
|
|
161
|
+
page: 0,
|
|
162
|
+
size: total
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function onSelectCheckbox2(list) {
|
|
167
|
+
selectedList2.value = list;
|
|
168
|
+
}
|
|
169
|
+
function getData2(page = null) {
|
|
170
|
+
tableRef2.value.getData(page);
|
|
171
|
+
}
|
|
172
|
+
function electronicFenceCallback2(params) {
|
|
173
|
+
const { method, param } = params;
|
|
174
|
+
if (method === "onSubmit") {
|
|
175
|
+
hy.getData(param.page);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
// data
|
|
180
|
+
tableColumns: tableColumns2,
|
|
181
|
+
filterModel: filterModel2,
|
|
182
|
+
filterColumns: filterColumns2,
|
|
183
|
+
searchArr: searchArr2,
|
|
184
|
+
selectedList: selectedList2,
|
|
185
|
+
// methods
|
|
186
|
+
deleteShow,
|
|
187
|
+
handleCommand: handleCommand2,
|
|
188
|
+
onSelectCheckbox: onSelectCheckbox2,
|
|
189
|
+
electronicFenceCallback: electronicFenceCallback2,
|
|
190
|
+
getData: getData2
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
const {
|
|
194
|
+
tableColumns,
|
|
195
|
+
filterModel,
|
|
196
|
+
filterColumns,
|
|
197
|
+
searchArr,
|
|
198
|
+
selectedList,
|
|
199
|
+
handleCommand,
|
|
200
|
+
onSelectCheckbox,
|
|
201
|
+
electronicFenceCallback,
|
|
202
|
+
getData
|
|
203
|
+
} = useMixins({ tableRef, addElectronicFence }, [useExportFile, useElectronicFence]);
|
|
204
|
+
onMounted(() => {
|
|
205
|
+
currentBus.value.on("addElectronicFenceDialog", electronicFenceCallback);
|
|
206
|
+
currentBus.value.on("batchSetElectronicFenceUserDialog", electronicFenceCallback);
|
|
207
|
+
});
|
|
208
|
+
onUnmounted(() => {
|
|
209
|
+
currentBus.value.off("addElectronicFenceDialog", electronicFenceCallback);
|
|
210
|
+
currentBus.value.off("batchSetElectronicFenceUserDialog", electronicFenceCallback);
|
|
211
|
+
});
|
|
212
|
+
__expose({
|
|
213
|
+
getData
|
|
214
|
+
});
|
|
215
|
+
return (_ctx, _cache) => {
|
|
216
|
+
return openBlock(), createElementBlock("div", { class: "w-full h-full" }, [
|
|
217
|
+
createVNode(unref(HyTable), {
|
|
218
|
+
ref_key: "tableRef",
|
|
219
|
+
ref: tableRef,
|
|
220
|
+
controller: "mapRail",
|
|
221
|
+
"table-columns": unref(tableColumns),
|
|
222
|
+
"filter-model": unref(filterModel),
|
|
223
|
+
"filter-columns": unref(filterColumns),
|
|
224
|
+
"search-arr": unref(searchArr),
|
|
225
|
+
"show-editable": true,
|
|
226
|
+
onOnSelectCheckbox: unref(onSelectCheckbox)
|
|
227
|
+
}, {
|
|
228
|
+
"operator-left-box": withCtx(() => [
|
|
229
|
+
createVNode(unref(HyTableActionButton), {
|
|
230
|
+
type: "success",
|
|
231
|
+
"svg-name": "ops-button-add",
|
|
232
|
+
label: unref($t)("bussiness.add"),
|
|
233
|
+
"operate-list": [
|
|
234
|
+
{
|
|
235
|
+
children: [
|
|
236
|
+
{
|
|
237
|
+
label: unref($t)("electronicFence.addAnElectronicFence"),
|
|
238
|
+
value: "addElectronicFence",
|
|
239
|
+
altText: unref($t)("electronicFence.addASingleElectronicFence")
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
onChange: unref(handleCommand)
|
|
245
|
+
}, null, 8, ["label", "operate-list", "onChange"]),
|
|
246
|
+
createVNode(unref(HyTableActionButton), {
|
|
247
|
+
type: "success",
|
|
248
|
+
"svg-name": "ops-button-batch",
|
|
249
|
+
label: unref($t)("bussiness.importOperation"),
|
|
250
|
+
"operate-list": [
|
|
251
|
+
{
|
|
252
|
+
children: [
|
|
253
|
+
{
|
|
254
|
+
label: unref($t)("electronicFence.importAssociatedUsers"),
|
|
255
|
+
value: "batchImportUser",
|
|
256
|
+
altText: unref($t)(
|
|
257
|
+
"electronicFence.uploadTheAssociatedUserTemplateAndLinkTheUsersFilledInTheTemplateToTheCorrespondingFences"
|
|
258
|
+
)
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
onChange: unref(handleCommand)
|
|
264
|
+
}, null, 8, ["label", "operate-list", "onChange"]),
|
|
265
|
+
createVNode(unref(HyTableActionButton), {
|
|
266
|
+
type: "default",
|
|
267
|
+
"svg-name": "ops-button-export",
|
|
268
|
+
label: unref($t)("bussiness.exportOperation"),
|
|
269
|
+
"operate-list": [
|
|
270
|
+
{
|
|
271
|
+
title: unref($t)("electronicFence.exportFenceInformation"),
|
|
272
|
+
children: [
|
|
273
|
+
{
|
|
274
|
+
label: unref($t)("electronicFence.exportTheSelectedFenceInformation"),
|
|
275
|
+
value: "selectElectronic",
|
|
276
|
+
show: unref(selectedList).length !== 0,
|
|
277
|
+
altText: unref($t)(
|
|
278
|
+
"electronicFence.exportSelectedFenceInformationOnlyExportsTheSelectedFencesThatHaveBeenCheckedThisIsSuitableForTargetedVerification"
|
|
279
|
+
)
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
label: unref($t)("electronicFence.exportAllFenceInformation"),
|
|
283
|
+
value: "allElectronic",
|
|
284
|
+
altText: unref($t)("electronicFence.exportAllTheElectronicFenceInformationFromTheList")
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
title: unref($t)("electronicFence.exportTheAssociatedUserTemplate"),
|
|
290
|
+
children: [
|
|
291
|
+
{
|
|
292
|
+
label: unref($t)("electronicFence.exportTheSelectedAssociatedUserTemplate"),
|
|
293
|
+
value: "selectUserTemplate",
|
|
294
|
+
show: unref(selectedList).length !== 0,
|
|
295
|
+
altText: unref($t)(
|
|
296
|
+
"electronicFence.onlyForTheSelectedFencesGenerateTheAssociatedUserTemplateAfterFillingInUploadItThroughTheImportAssociatedUsersOption"
|
|
297
|
+
)
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
label: unref($t)("electronicFence.exportAllAssociatedUserTemplates"),
|
|
301
|
+
value: "allUserTemplate",
|
|
302
|
+
altText: unref($t)(
|
|
303
|
+
"electronicFence.downloadTheTemplateForAssociatingTheFenceWithUsersFillInTheBindingRelationshipBetweenTheFenceAndTheUsersAndThenUploadItThroughTheImportAssociatedUsersOption"
|
|
304
|
+
)
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
onChange: unref(handleCommand)
|
|
310
|
+
}, null, 8, ["label", "operate-list", "onChange"])
|
|
311
|
+
]),
|
|
312
|
+
createUser: withCtx(({ row }) => [
|
|
313
|
+
createElementVNode("div", { class: "w-full" }, [
|
|
314
|
+
createElementVNode("div", { class: "w-full flex items-center" }, [
|
|
315
|
+
createElementVNode(
|
|
316
|
+
"span",
|
|
317
|
+
{ class: "whitespace-nowrap text-auxiliary" },
|
|
318
|
+
toDisplayString(unref($t)("bussiness.creationPersonnel")) + "\uFF1A",
|
|
319
|
+
1
|
|
320
|
+
/* TEXT */
|
|
321
|
+
),
|
|
322
|
+
row.createUser ? (openBlock(), createBlock(unref(HyTooltip), {
|
|
323
|
+
key: 0,
|
|
324
|
+
"is-always": false,
|
|
325
|
+
content: row.createUser
|
|
326
|
+
}, null, 8, ["content"])) : (openBlock(), createElementBlock("span", {
|
|
327
|
+
key: 1,
|
|
328
|
+
class: "text-auxiliary"
|
|
329
|
+
}, "- -"))
|
|
330
|
+
]),
|
|
331
|
+
createElementVNode("div", { class: "w-full flex items-center" }, [
|
|
332
|
+
createElementVNode(
|
|
333
|
+
"span",
|
|
334
|
+
{ class: "whitespace-nowrap text-auxiliary" },
|
|
335
|
+
toDisplayString(unref($t)("bussiness.creationTime")) + "\uFF1A",
|
|
336
|
+
1
|
|
337
|
+
/* TEXT */
|
|
338
|
+
),
|
|
339
|
+
row.createDtm ? (openBlock(), createBlock(unref(HyTooltip), {
|
|
340
|
+
key: 0,
|
|
341
|
+
"is-always": false,
|
|
342
|
+
content: row.createDtm
|
|
343
|
+
}, null, 8, ["content"])) : (openBlock(), createElementBlock("span", {
|
|
344
|
+
key: 1,
|
|
345
|
+
class: "text-auxiliary"
|
|
346
|
+
}, "- -"))
|
|
347
|
+
])
|
|
348
|
+
])
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
/* STABLE */
|
|
352
|
+
}, 8, ["table-columns", "filter-model", "filter-columns", "search-arr", "onOnSelectCheckbox"])
|
|
353
|
+
]);
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '../../utils/index.mjs';
|
|
2
|
+
import _sfc_main from './electronicFence.vue.mjs';
|
|
3
|
+
import _sfc_main$1 from './cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs';
|
|
4
|
+
import _sfc_main$2 from './cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs';
|
|
5
|
+
import _sfc_main$3 from './cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.mjs';
|
|
6
|
+
import { withInstall } from '../../utils/handler.mjs';
|
|
7
|
+
|
|
8
|
+
const HyElectronicFence = withInstall(_sfc_main);
|
|
9
|
+
const HyAddElectronicFenceDialog = withInstall(_sfc_main$1);
|
|
10
|
+
const HyElectronicFenceAssociatedUsersDialog = withInstall(_sfc_main$2);
|
|
11
|
+
const HyBatchSetElectronicFenceUserDialog = withInstall(_sfc_main$3);
|
|
12
|
+
|
|
13
|
+
export { HyAddElectronicFenceDialog, HyBatchSetElectronicFenceUserDialog, HyElectronicFence, HyElectronicFenceAssociatedUsersDialog, HyElectronicFence as default };
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.hy-electronic-fence-associated-users-dialog {
|
|
2
|
+
.tree-box {
|
|
3
|
+
border: 1px solid rgba(var(--hy-border));
|
|
4
|
+
border-radius: 4px;
|
|
5
|
+
box-shadow:
|
|
6
|
+
0px 2px 4px 0px rgba(0, 0, 0, 0.5),
|
|
7
|
+
inset 0px 0px 10px 0px #1f4b77;
|
|
8
|
+
backdrop-filter: blur(5px);
|
|
9
|
+
}
|
|
10
|
+
li {
|
|
11
|
+
&:hover {
|
|
12
|
+
box-shadow:
|
|
13
|
+
inset 0px 0px 50px 0px rgba(var(--hy-theme), 0.2),
|
|
14
|
+
inset 0px 0px 0px 1px rgba(var(--hy-theme), 0.5);
|
|
15
|
+
.delete {
|
|
16
|
+
opacity: 1;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.delete {
|
|
20
|
+
transition: 1s;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
color: rgba(var(--hy-danger-2));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -5,7 +5,6 @@ import '../../hooks/index.mjs';
|
|
|
5
5
|
import '../../components/index.mjs';
|
|
6
6
|
import { useMapAearchPlace } from './js/index.mjs';
|
|
7
7
|
import _sfc_main$1 from './mapAearchPlaceItem.vue.mjs';
|
|
8
|
-
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
9
8
|
import { useMixins } from '../../hooks/useMixins.mjs';
|
|
10
9
|
import { HyTooltip } from '../../components/hyTooltip/index.mjs';
|
|
11
10
|
import { HyInput } from '../../components/hyInput/index.mjs';
|
|
@@ -53,7 +52,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
53
52
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
54
53
|
const props = __props;
|
|
55
54
|
const emits = __emit;
|
|
56
|
-
const { t } = useLocale();
|
|
57
55
|
const {
|
|
58
56
|
searchAddressTypeList,
|
|
59
57
|
nextPageParams,
|
|
@@ -99,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
99
97
|
patrolPointFn,
|
|
100
98
|
titleFn,
|
|
101
99
|
placeholderFn
|
|
102
|
-
} = useMixins({ props, emits
|
|
100
|
+
} = useMixins({ props, emits }, [useMapAearchPlace]);
|
|
103
101
|
watch(
|
|
104
102
|
() => searchAddressTypeList.value,
|
|
105
103
|
() => {
|
|
@@ -223,7 +221,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
223
221
|
}, [
|
|
224
222
|
createVNode(unref(HyIcon), {
|
|
225
223
|
"svg-name": __props.searchSvgName,
|
|
226
|
-
|
|
224
|
+
class: "w-[18px] h-[18px] text-main"
|
|
227
225
|
}, null, 8, ["svg-name"])
|
|
228
226
|
], 8, ["onClick"])
|
|
229
227
|
]),
|
|
@@ -349,11 +347,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
349
347
|
unref(loading) ? (openBlock(), createElementBlock("p", {
|
|
350
348
|
key: 1,
|
|
351
349
|
class: "leading-[32px] flex items-center text-main text-xs"
|
|
352
|
-
}, "
|
|
350
|
+
}, "\u52A0\u8F7D\u4E2D...")) : createCommentVNode("v-if", true),
|
|
353
351
|
unref(noMore) ? (openBlock(), createElementBlock("p", {
|
|
354
352
|
key: 2,
|
|
355
353
|
class: "leading-[32px] flex items-center text-main text-xs"
|
|
356
|
-
}, "
|
|
354
|
+
}, "\u6CA1\u6709\u66F4\u591A\u4E86")) : createCommentVNode("v-if", true)
|
|
357
355
|
])
|
|
358
356
|
],
|
|
359
357
|
2
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.hy-map-aearch-place-input {
|
|
28
|
-
|
|
29
28
|
.hy-el-input__inner::placeholder {
|
|
30
29
|
font-size: 12px;
|
|
31
30
|
}
|
|
@@ -35,6 +34,7 @@
|
|
|
35
34
|
background-color: transparent !important;
|
|
36
35
|
box-shadow: none;
|
|
37
36
|
border: none;
|
|
37
|
+
box-sizing: border-box;
|
|
38
38
|
}
|
|
39
39
|
.hy-el-input-group__append {
|
|
40
40
|
color: rgb(var(--hy-main));
|
|
@@ -42,10 +42,11 @@
|
|
|
42
42
|
box-shadow: none;
|
|
43
43
|
padding: 4px;
|
|
44
44
|
min-height: 100%;
|
|
45
|
+
box-sizing: border-box;
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
&.is-focus .hy-map-aearch-place-container{
|
|
49
|
+
&.is-focus .hy-map-aearch-place-container {
|
|
49
50
|
border: 1px solid rgba(var(--hy-theme));
|
|
50
51
|
}
|
|
51
52
|
}
|
|
@@ -68,4 +69,4 @@
|
|
|
68
69
|
100% {
|
|
69
70
|
opacity: 1;
|
|
70
71
|
}
|
|
71
|
-
}
|
|
72
|
+
}
|