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,316 @@
|
|
|
1
|
+
import { defineComponent, useTemplateRef, ref, nextTick, openBlock, createBlock, unref, isRef, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, createElementBlock, createCommentVNode } from 'vue';
|
|
2
|
+
import { ElMessage, ElAutoResizer } from 'element-plus';
|
|
3
|
+
import VirtualList from 'vue3-virtual-scroll-list';
|
|
4
|
+
import { saveFnApi, findAllApi } from '../../../../api/index.mjs';
|
|
5
|
+
import { orgTreeApi } from '../../../../api/organization.mjs';
|
|
6
|
+
import '../../../../hooks/index.mjs';
|
|
7
|
+
import '../../../../components/index.mjs';
|
|
8
|
+
import _sfc_main$1 from './electronicFenceAssociatedUsersItem.vue.mjs';
|
|
9
|
+
import { $t } from '../../../../hooks/useLocale.mjs';
|
|
10
|
+
import { useMixins } from '../../../../hooks/useMixins.mjs';
|
|
11
|
+
import { useDialog } from '../../../../hooks/useDialog.mjs';
|
|
12
|
+
import { HyDialog } from '../../../../components/hyDialog/index.mjs';
|
|
13
|
+
import { HyTree } from '../../../../components/hyTree/index.mjs';
|
|
14
|
+
import { HyButton } from '../../../../components/hyButton/index.mjs';
|
|
15
|
+
import { HyInputSearch } from '../../../../components/hyInput/index.mjs';
|
|
16
|
+
import { HyIcon } from '../../../../components/hyIcon/index.mjs';
|
|
17
|
+
|
|
18
|
+
import "../../style/electronicFenceAssociatedUsersDialog.scss";
|
|
19
|
+
|
|
20
|
+
const __default__ = defineComponent({
|
|
21
|
+
name: "HyElectronicFenceAssociatedUsersDialog"
|
|
22
|
+
});
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
24
|
+
props: {
|
|
25
|
+
ifDraggable: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false
|
|
28
|
+
},
|
|
29
|
+
ifShrink: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: ["onSubmit"],
|
|
35
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
36
|
+
const props = __props;
|
|
37
|
+
const emits = __emit;
|
|
38
|
+
const useElectronicFenceAssociatedUsersDialog = (hy) => {
|
|
39
|
+
const HyDialogRef2 = useTemplateRef("HyDialogRef");
|
|
40
|
+
const treeRef2 = useTemplateRef("treeRef");
|
|
41
|
+
const dialogVisible2 = ref(false);
|
|
42
|
+
const loading2 = ref(false);
|
|
43
|
+
const mapRailId2 = ref(null);
|
|
44
|
+
const filterValue2 = ref();
|
|
45
|
+
const selectedList2 = ref([]);
|
|
46
|
+
const filterSelectedList2 = ref([]);
|
|
47
|
+
const titleBasicInfoList2 = ref([]);
|
|
48
|
+
async function show2(data) {
|
|
49
|
+
hy.setDragLevelIndex("HyDialogRef");
|
|
50
|
+
hy.dialogVisible.value = true;
|
|
51
|
+
hy.loading.value = true;
|
|
52
|
+
hy.mapRailId.value = data.mapRailId;
|
|
53
|
+
hy.titleBasicInfoList.value = [
|
|
54
|
+
{ label: "\u56F4\u680F\u540D\u79F0", value: data.railName },
|
|
55
|
+
{ label: "\u56F4\u680FID", value: data.id }
|
|
56
|
+
];
|
|
57
|
+
await hy.getMapRailUser();
|
|
58
|
+
hy.getTreeData();
|
|
59
|
+
}
|
|
60
|
+
async function onSubmit2() {
|
|
61
|
+
try {
|
|
62
|
+
const res = await saveFnApi("mapRail/mapRailUser", {
|
|
63
|
+
mapRailId: hy.mapRailId.value,
|
|
64
|
+
userIdList: hy.selectedList.value.map((v) => v.id)
|
|
65
|
+
});
|
|
66
|
+
if (res.code === 200) {
|
|
67
|
+
ElMessage.success($t("bussiness.operationSuccessful"));
|
|
68
|
+
hy.emits("onSubmit");
|
|
69
|
+
} else {
|
|
70
|
+
ElMessage.error(res.msg);
|
|
71
|
+
return Promise.reject();
|
|
72
|
+
}
|
|
73
|
+
} catch (err) {
|
|
74
|
+
console.error(err);
|
|
75
|
+
return Promise.reject();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
async function getMapRailUser2() {
|
|
79
|
+
try {
|
|
80
|
+
const res = await findAllApi("mapRail/mapRailUser", {
|
|
81
|
+
mapRailId: hy.mapRailId.value,
|
|
82
|
+
showChildOrg: 1
|
|
83
|
+
});
|
|
84
|
+
hy.selectedList.value = (res.data || []).map((v) => ({
|
|
85
|
+
...v,
|
|
86
|
+
id: v.userId,
|
|
87
|
+
devName: v.name
|
|
88
|
+
}));
|
|
89
|
+
hy.filterSelectedHandler();
|
|
90
|
+
} catch (err) {
|
|
91
|
+
console.error(err);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
async function getTreeData2() {
|
|
95
|
+
if (!hy.dialogVisible.value) return;
|
|
96
|
+
const res = await orgTreeApi({
|
|
97
|
+
showDevice: false,
|
|
98
|
+
showGroup: false
|
|
99
|
+
});
|
|
100
|
+
await nextTick();
|
|
101
|
+
const data = res.data;
|
|
102
|
+
hy.treeRef.value.getData(data || []).then(() => {
|
|
103
|
+
hy.loading.value = false;
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function filterSelectedHandler2() {
|
|
107
|
+
if (!hy.filterValue.value) {
|
|
108
|
+
hy.filterSelectedList.value = [...hy.selectedList.value];
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
hy.filterSelectedList.value = hy.selectedList.value.filter((item) => {
|
|
112
|
+
return item.devName && item.devName.includes(hy.filterValue.value) || item.orgName && item.orgName.includes(hy.filterValue.value);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function onCheckTree2(dataList = []) {
|
|
116
|
+
hy.selectedList.value = dataList;
|
|
117
|
+
hy.filterSelectedHandler();
|
|
118
|
+
}
|
|
119
|
+
function onDeleteSelected2(item, index) {
|
|
120
|
+
if (hy.loading.value) return;
|
|
121
|
+
const findIndex = hy.selectedList.value.findIndex((v) => item.id === v.id);
|
|
122
|
+
if (findIndex !== -1) {
|
|
123
|
+
hy.selectedList.value.splice(findIndex, 1);
|
|
124
|
+
}
|
|
125
|
+
hy.filterSelectedList.value.splice(index, 1);
|
|
126
|
+
hy.treeRef.value.singleRemovalFn(item);
|
|
127
|
+
}
|
|
128
|
+
function clearSelected2() {
|
|
129
|
+
if (!hy.selectedList.value.length || hy.loading.value) return;
|
|
130
|
+
HyConfirmDialog.confirm({
|
|
131
|
+
content: `<div><p>\u786E\u5B9A\u6E05\u7A7A\u9009\u4E2D\u7684\u5173\u8054\u7528\u6237\u5417\uFF1F</p></div>`,
|
|
132
|
+
onSubmit: () => {
|
|
133
|
+
hy.selectedList.value = [];
|
|
134
|
+
hy.treeRef.value.setCheckedKeys([]);
|
|
135
|
+
hy.filterSelectedHandler();
|
|
136
|
+
ElMessage.success($t("bussiness.operationSuccessful"));
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
return {
|
|
141
|
+
HyDialogRef: HyDialogRef2,
|
|
142
|
+
treeRef: treeRef2,
|
|
143
|
+
dialogVisible: dialogVisible2,
|
|
144
|
+
loading: loading2,
|
|
145
|
+
mapRailId: mapRailId2,
|
|
146
|
+
filterValue: filterValue2,
|
|
147
|
+
selectedList: selectedList2,
|
|
148
|
+
filterSelectedList: filterSelectedList2,
|
|
149
|
+
titleBasicInfoList: titleBasicInfoList2,
|
|
150
|
+
show: show2,
|
|
151
|
+
onSubmit: onSubmit2,
|
|
152
|
+
getMapRailUser: getMapRailUser2,
|
|
153
|
+
getTreeData: getTreeData2,
|
|
154
|
+
filterSelectedHandler: filterSelectedHandler2,
|
|
155
|
+
onCheckTree: onCheckTree2,
|
|
156
|
+
onDeleteSelected: onDeleteSelected2,
|
|
157
|
+
clearSelected: clearSelected2
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
const {
|
|
161
|
+
minimizedShow,
|
|
162
|
+
setDragLevelIndex,
|
|
163
|
+
onMinimized,
|
|
164
|
+
HyDialogRef,
|
|
165
|
+
treeRef,
|
|
166
|
+
dialogVisible,
|
|
167
|
+
loading,
|
|
168
|
+
mapRailId,
|
|
169
|
+
filterValue,
|
|
170
|
+
selectedList,
|
|
171
|
+
filterSelectedList,
|
|
172
|
+
titleBasicInfoList,
|
|
173
|
+
show,
|
|
174
|
+
onSubmit,
|
|
175
|
+
getMapRailUser,
|
|
176
|
+
getTreeData,
|
|
177
|
+
filterSelectedHandler,
|
|
178
|
+
onCheckTree,
|
|
179
|
+
onDeleteSelected,
|
|
180
|
+
clearSelected
|
|
181
|
+
} = useMixins({ emits }, [useDialog, useElectronicFenceAssociatedUsersDialog]);
|
|
182
|
+
__expose({
|
|
183
|
+
show,
|
|
184
|
+
setDragLevelIndex
|
|
185
|
+
});
|
|
186
|
+
return (_ctx, _cache) => {
|
|
187
|
+
return openBlock(), createBlock(unref(HyDialog), {
|
|
188
|
+
ref_key: "HyDialogRef",
|
|
189
|
+
ref: HyDialogRef,
|
|
190
|
+
modelValue: unref(dialogVisible),
|
|
191
|
+
"onUpdate:modelValue": ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : null,
|
|
192
|
+
loading: unref(loading),
|
|
193
|
+
"onUpdate:loading": ($event) => isRef(loading) ? loading.value = $event : null,
|
|
194
|
+
title: unref($t)("electronicFence.associateUser"),
|
|
195
|
+
"title-basic-info-list": unref(titleBasicInfoList),
|
|
196
|
+
width: "920",
|
|
197
|
+
"dialog-type": "right",
|
|
198
|
+
"show-operate": true,
|
|
199
|
+
"if-draggable": __props.ifDraggable,
|
|
200
|
+
"if-shrink": __props.ifShrink,
|
|
201
|
+
"on-submit": unref(onSubmit),
|
|
202
|
+
onOnMinimized: unref(onMinimized),
|
|
203
|
+
onOnDialogMousedown: ($event) => unref(setDragLevelIndex)("HyDialogRef")
|
|
204
|
+
}, {
|
|
205
|
+
default: withCtx(() => [
|
|
206
|
+
createElementVNode("div", { class: "hy-electronic-fence-associated-users-dialog flex w-full h-full" }, [
|
|
207
|
+
createElementVNode("div", { class: "w-1/2 h-full flex flex-col mr-5 text-xs" }, [
|
|
208
|
+
createElementVNode("div", { class: "tree-box h-0 flex-1 flex flex-col box-border pb-2" }, [
|
|
209
|
+
createVNode(unref(ElAutoResizer), null, {
|
|
210
|
+
default: withCtx(({ height }) => [
|
|
211
|
+
createVNode(unref(HyTree), {
|
|
212
|
+
ref_key: "treeRef",
|
|
213
|
+
ref: treeRef,
|
|
214
|
+
"tree-type": "user",
|
|
215
|
+
"tree-height": height,
|
|
216
|
+
placeholder: unref($t)("electronicFence.employeeIDAccountNameDepartmentNameToFilter"),
|
|
217
|
+
"show-checkbox": true,
|
|
218
|
+
"show-singlebox": false,
|
|
219
|
+
"tree-filter-param": [],
|
|
220
|
+
"clear-empty-business": true,
|
|
221
|
+
"check-strictly": false,
|
|
222
|
+
"selected-by-default": unref(selectedList),
|
|
223
|
+
onOnRefreshData: unref(getTreeData),
|
|
224
|
+
onOnCheckTree: unref(onCheckTree)
|
|
225
|
+
}, null, 8, ["tree-height", "placeholder", "selected-by-default", "onOnRefreshData", "onOnCheckTree"])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
/* STABLE */
|
|
229
|
+
})
|
|
230
|
+
])
|
|
231
|
+
]),
|
|
232
|
+
createElementVNode("div", { class: "w-1/2 h-full flex flex-col mr-5" }, [
|
|
233
|
+
createElementVNode("div", {
|
|
234
|
+
class: "flex items-center justify-between pt-[7px] pb-3",
|
|
235
|
+
style: { "justify-content": "space-between" }
|
|
236
|
+
}, [
|
|
237
|
+
createVNode(unref(HyButton), {
|
|
238
|
+
type: "danger",
|
|
239
|
+
size: "small",
|
|
240
|
+
onClick: unref(clearSelected)
|
|
241
|
+
}, {
|
|
242
|
+
default: withCtx(() => [
|
|
243
|
+
createTextVNode(
|
|
244
|
+
toDisplayString(unref($t)("bussiness.clear")),
|
|
245
|
+
1
|
|
246
|
+
/* TEXT */
|
|
247
|
+
)
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
/* STABLE */
|
|
251
|
+
}, 8, ["onClick"]),
|
|
252
|
+
createElementVNode("span", { class: "inline-flex items-center" }, [
|
|
253
|
+
createElementVNode("span", { class: "text-theme" }, "\u5DF2\u5173\u8054\u7528\u6237\uFF1A"),
|
|
254
|
+
unref(selectedList) && unref(selectedList).length ? (openBlock(), createElementBlock(
|
|
255
|
+
"span",
|
|
256
|
+
{
|
|
257
|
+
key: 0,
|
|
258
|
+
class: "text-theme"
|
|
259
|
+
},
|
|
260
|
+
toDisplayString(unref(selectedList).length),
|
|
261
|
+
1
|
|
262
|
+
/* TEXT */
|
|
263
|
+
)) : createCommentVNode("v-if", true)
|
|
264
|
+
])
|
|
265
|
+
]),
|
|
266
|
+
createElementVNode("div", { class: "tree-box h-0 flex-1 flex flex-col pos_r" }, [
|
|
267
|
+
unref(selectedList).length ? (openBlock(), createElementBlock("div", {
|
|
268
|
+
key: 0,
|
|
269
|
+
class: "p-2 pb-2.5"
|
|
270
|
+
}, [
|
|
271
|
+
createVNode(unref(HyInputSearch), {
|
|
272
|
+
modelValue: unref(filterValue),
|
|
273
|
+
"onUpdate:modelValue": ($event) => isRef(filterValue) ? filterValue.value = $event : null,
|
|
274
|
+
placeholder: "\u641C\u7D22 \u8BBE\u5907\u540D\u79F0\u3001\u90E8\u95E8\u540D\u79F0 \u53EF\u641C\u7D22",
|
|
275
|
+
onSearch: unref(filterSelectedHandler)
|
|
276
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onSearch"])
|
|
277
|
+
])) : createCommentVNode("v-if", true),
|
|
278
|
+
unref(filterSelectedList).length ? (openBlock(), createBlock(unref(VirtualList), {
|
|
279
|
+
key: 1,
|
|
280
|
+
class: "w-full h-0 flex-1 border-t border-border overflow-auto box-border",
|
|
281
|
+
"data-key": "id",
|
|
282
|
+
"data-sources": unref(filterSelectedList),
|
|
283
|
+
"data-component": _sfc_main$1,
|
|
284
|
+
keeps: 30,
|
|
285
|
+
"estimate-size": 34,
|
|
286
|
+
"extra-props": {
|
|
287
|
+
deleteFn: unref(onDeleteSelected)
|
|
288
|
+
}
|
|
289
|
+
}, null, 8, ["data-sources", "extra-props"])) : (openBlock(), createElementBlock("div", {
|
|
290
|
+
key: 2,
|
|
291
|
+
class: "h-full flex flex-col items-center justify-center text-xs text-auxiliary"
|
|
292
|
+
}, [
|
|
293
|
+
createVNode(unref(HyIcon), {
|
|
294
|
+
"svg-name": "ops-Empty-alarm-not-data",
|
|
295
|
+
class: "!w-[80px] !h-[80px]"
|
|
296
|
+
}),
|
|
297
|
+
unref(selectedList).length ? (openBlock(), createElementBlock("div", {
|
|
298
|
+
key: 0,
|
|
299
|
+
class: "mt-[10px]"
|
|
300
|
+
}, "\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E")) : (openBlock(), createElementBlock("div", {
|
|
301
|
+
key: 1,
|
|
302
|
+
class: "mt-[10px]"
|
|
303
|
+
}, "\u8BF7\u5728\u5DE6\u4FA7\u9009\u62E9\u9700\u8981\u5173\u8054\u7684\u7528\u6237"))
|
|
304
|
+
]))
|
|
305
|
+
])
|
|
306
|
+
])
|
|
307
|
+
])
|
|
308
|
+
]),
|
|
309
|
+
_: 1
|
|
310
|
+
/* STABLE */
|
|
311
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "loading", "onUpdate:loading", "title", "title-basic-info-list", "if-draggable", "if-shrink", "on-submit", "onOnMinimized", "onOnDialogMousedown"]);
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
|
|
316
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, createElementBlock, createCommentVNode } from 'vue';
|
|
2
|
+
import '../../../../hooks/index.mjs';
|
|
3
|
+
import '../../../../components/index.mjs';
|
|
4
|
+
import { HyTooltip } from '../../../../components/hyTooltip/index.mjs';
|
|
5
|
+
import { HyIcon } from '../../../../components/hyIcon/index.mjs';
|
|
6
|
+
import { $t } from '../../../../hooks/useLocale.mjs';
|
|
7
|
+
|
|
8
|
+
const _sfc_main = {
|
|
9
|
+
__name: "electronicFenceAssociatedUsersItem",
|
|
10
|
+
props: {
|
|
11
|
+
source: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: () => ({})
|
|
14
|
+
},
|
|
15
|
+
index: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: () => null
|
|
18
|
+
},
|
|
19
|
+
deleteFn: {
|
|
20
|
+
type: Function,
|
|
21
|
+
default: () => {
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createBlock(unref(HyTooltip), {
|
|
29
|
+
placement: "top",
|
|
30
|
+
"show-after": 500,
|
|
31
|
+
"popper-class": "popover_table_clsss",
|
|
32
|
+
trigger: "hover"
|
|
33
|
+
}, {
|
|
34
|
+
content: withCtx(() => [
|
|
35
|
+
createElementVNode("div", null, [
|
|
36
|
+
createElementVNode("div", { class: "flex items-center" }, [
|
|
37
|
+
createElementVNode(
|
|
38
|
+
"span",
|
|
39
|
+
{ class: "text-auxiliary whitespace-nowrap" },
|
|
40
|
+
toDisplayString(unref($t)("currentUser")) + "\uFF1A",
|
|
41
|
+
1
|
|
42
|
+
/* TEXT */
|
|
43
|
+
),
|
|
44
|
+
__props.source.name ? (openBlock(), createElementBlock(
|
|
45
|
+
"span",
|
|
46
|
+
{ key: 0 },
|
|
47
|
+
toDisplayString(__props.source.name),
|
|
48
|
+
1
|
|
49
|
+
/* TEXT */
|
|
50
|
+
)) : (openBlock(), createElementBlock("span", {
|
|
51
|
+
key: 1,
|
|
52
|
+
class: "text-auxiliary"
|
|
53
|
+
}, "- -"))
|
|
54
|
+
]),
|
|
55
|
+
createElementVNode("div", { class: "flex items-center" }, [
|
|
56
|
+
createElementVNode(
|
|
57
|
+
"span",
|
|
58
|
+
{ class: "text-auxiliary whitespace-nowrap" },
|
|
59
|
+
toDisplayString(unref($t)("userID")) + "\uFF1A",
|
|
60
|
+
1
|
|
61
|
+
/* TEXT */
|
|
62
|
+
),
|
|
63
|
+
__props.source.jobNum ? (openBlock(), createElementBlock(
|
|
64
|
+
"span",
|
|
65
|
+
{ key: 0 },
|
|
66
|
+
toDisplayString(__props.source.jobNum),
|
|
67
|
+
1
|
|
68
|
+
/* TEXT */
|
|
69
|
+
)) : (openBlock(), createElementBlock("span", {
|
|
70
|
+
key: 1,
|
|
71
|
+
class: "text-auxiliary"
|
|
72
|
+
}, "- -"))
|
|
73
|
+
])
|
|
74
|
+
])
|
|
75
|
+
]),
|
|
76
|
+
default: withCtx(() => [
|
|
77
|
+
createElementVNode("li", { class: "w-full h-[52px] border-b border-border flex items-center justify-between bg-background pl-5 pr-2.5 box-border" }, [
|
|
78
|
+
createElementVNode("div", { class: "w-0 flex-1 flex items-center gap-2 ellipsis" }, [
|
|
79
|
+
createVNode(unref(HyIcon), {
|
|
80
|
+
"svg-name": "map-tree-personnel",
|
|
81
|
+
class: "flex-grow-0"
|
|
82
|
+
}),
|
|
83
|
+
createElementVNode("div", { class: "over_one_line" }, [
|
|
84
|
+
createTextVNode(
|
|
85
|
+
toDisplayString(__props.source.name) + " ",
|
|
86
|
+
1
|
|
87
|
+
/* TEXT */
|
|
88
|
+
),
|
|
89
|
+
__props.source.jobNum ? (openBlock(), createElementBlock(
|
|
90
|
+
"span",
|
|
91
|
+
{
|
|
92
|
+
key: 0,
|
|
93
|
+
class: "text-auxiliary"
|
|
94
|
+
},
|
|
95
|
+
"\uFF08" + toDisplayString(__props.source.jobNum) + "\uFF09",
|
|
96
|
+
1
|
|
97
|
+
/* TEXT */
|
|
98
|
+
)) : createCommentVNode("v-if", true)
|
|
99
|
+
])
|
|
100
|
+
]),
|
|
101
|
+
createElementVNode("div", {
|
|
102
|
+
class: "flex-shrink ml_10 centerBox c_dangerv2 clickBox",
|
|
103
|
+
onClick: ($event) => __props.deleteFn(__props.source, __props.index)
|
|
104
|
+
}, [
|
|
105
|
+
createVNode(unref(HyIcon), {
|
|
106
|
+
"svg-name": "ops-button-delete",
|
|
107
|
+
class: "delete"
|
|
108
|
+
})
|
|
109
|
+
], 8, ["onClick"])
|
|
110
|
+
])
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
/* STABLE */
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export { _sfc_main as default };
|