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
|
@@ -0,0 +1,651 @@
|
|
|
1
|
+
import { useTemplateRef, ref, computed, nextTick, openBlock, createBlock, unref, isRef, withCtx, createElementVNode, createVNode, mergeProps, createElementBlock, createCommentVNode, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { ElMessage } from 'element-plus';
|
|
3
|
+
import { selectApi, saveApi, pageApi } from '../../../../api/index.mjs';
|
|
4
|
+
import '../../../../hooks/index.mjs';
|
|
5
|
+
import '../../../../components/index.mjs';
|
|
6
|
+
import { useAppForm } from '../../../../components/hyForm/js/useAppForm.mjs';
|
|
7
|
+
import { $t } from '../../../../hooks/useLocale.mjs';
|
|
8
|
+
import { useAppSearch } from '../../../../components/hySearch/js/useAppSearch.mjs';
|
|
9
|
+
import { useAppTable } from '../../../../components/hyTable/js/useAppTable.mjs';
|
|
10
|
+
import { useMixins } from '../../../../hooks/useMixins.mjs';
|
|
11
|
+
import { useDialog, useDialogIsEdit } from '../../../../hooks/useDialog.mjs';
|
|
12
|
+
import { HyDialog } from '../../../../components/hyDialog/index.mjs';
|
|
13
|
+
import { HyForm } from '../../../../components/hyForm/index.mjs';
|
|
14
|
+
import { HyInput, HyInputSearch } from '../../../../components/hyInput/index.mjs';
|
|
15
|
+
import { HyIcon } from '../../../../components/hyIcon/index.mjs';
|
|
16
|
+
import { HySearch } from '../../../../components/hySearch/index.mjs';
|
|
17
|
+
import { HyTable } from '../../../../components/hyTable/index.mjs';
|
|
18
|
+
import { HyButton } from '../../../../components/hyButton/index.mjs';
|
|
19
|
+
import { HyTooltip } from '../../../../components/hyTooltip/index.mjs';
|
|
20
|
+
|
|
21
|
+
const _sfc_main = {
|
|
22
|
+
__name: "ruleFenceDialog",
|
|
23
|
+
props: {
|
|
24
|
+
ifDraggable: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false
|
|
27
|
+
},
|
|
28
|
+
ifShrink: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["onSubmit"],
|
|
34
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
35
|
+
const props = __props;
|
|
36
|
+
const emits = __emit;
|
|
37
|
+
const useRuleFenceDialog = (hy) => {
|
|
38
|
+
const { emits: emits2 } = hy;
|
|
39
|
+
const HyDialogRef = useTemplateRef("HyDialogRef");
|
|
40
|
+
const dialogVisible2 = ref(false);
|
|
41
|
+
const loading2 = ref(false);
|
|
42
|
+
const title2 = computed(() => {
|
|
43
|
+
switch (hy.formModel.value.type) {
|
|
44
|
+
case 1:
|
|
45
|
+
return isAdd.value ? "\u6DFB\u52A0\u7981\u5165\u89C4\u5219" : "\u7F16\u8F91\u7981\u5165\u89C4\u5219";
|
|
46
|
+
case 2:
|
|
47
|
+
return isAdd.value ? "\u6DFB\u52A0\u7981\u51FA\u89C4\u5219" : "\u7F16\u8F91\u7981\u51FA\u89C4\u5219";
|
|
48
|
+
case 3:
|
|
49
|
+
return isAdd.value ? "\u6DFB\u52A0\u9759\u9ED8\u8BBE\u7F6E" : "\u7F16\u8F91\u9759\u9ED8\u8BBE\u7F6E";
|
|
50
|
+
case 4:
|
|
51
|
+
return isAdd.value ? "\u6DFB\u52A0\u5B9A\u65F6\u62CD\u7167" : "\u7F16\u8F91\u5B9A\u65F6\u62CD\u7167";
|
|
52
|
+
case 5:
|
|
53
|
+
return isAdd.value ? "\u6DFB\u52A0\u5B9A\u65F6\u5F55\u50CF" : "\u7F16\u8F91\u5B9A\u65F6\u5F55\u50CF";
|
|
54
|
+
case 6:
|
|
55
|
+
return isAdd.value ? "\u6DFB\u52A0\u5B9A\u65F6\u56DE\u4F20" : "\u7F16\u8F91\u5B9A\u65F6\u56DE\u4F20";
|
|
56
|
+
case 7:
|
|
57
|
+
return isAdd.value ? "\u6DFB\u52A0\u805A\u96C6\u89C4\u5219" : "\u7F16\u8F91\u805A\u96C6\u89C4\u5219";
|
|
58
|
+
}
|
|
59
|
+
return "\u6DFB\u52A0\u89C4\u5219";
|
|
60
|
+
});
|
|
61
|
+
const isAdd = computed(() => !hy.formModel.value.id);
|
|
62
|
+
const { formModel: formModel2, formColumns: formColumns2 } = useAppForm(
|
|
63
|
+
[
|
|
64
|
+
{
|
|
65
|
+
type: "input",
|
|
66
|
+
prop: "ruleName",
|
|
67
|
+
label: "\u89C4\u5219\u540D\u79F0",
|
|
68
|
+
required: true,
|
|
69
|
+
attrs: {
|
|
70
|
+
clearable: true
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
type: "input",
|
|
75
|
+
prop: "stopHour",
|
|
76
|
+
label: "\u505C\u7559\u65F6\u95F4\uFF08\u5206\u949F\uFF09",
|
|
77
|
+
required: true,
|
|
78
|
+
show: (column, model) => {
|
|
79
|
+
return model.type === 3;
|
|
80
|
+
},
|
|
81
|
+
attrs: {
|
|
82
|
+
type: "number",
|
|
83
|
+
min: 0
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: "input",
|
|
88
|
+
prop: "gatherLimit",
|
|
89
|
+
label: "\u4EBA\u5458\u95F4\u9694\u9608\u503C",
|
|
90
|
+
slot: "gatherLimit",
|
|
91
|
+
required: true,
|
|
92
|
+
show: (column, model) => {
|
|
93
|
+
return model.type === 7;
|
|
94
|
+
},
|
|
95
|
+
attrs: {
|
|
96
|
+
type: "number",
|
|
97
|
+
min: 0
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
type: "radio-group",
|
|
102
|
+
prop: "ruleDateType",
|
|
103
|
+
label: "\u89C4\u5219\u6267\u884C\u65E5\u671F",
|
|
104
|
+
required: true,
|
|
105
|
+
rules: [
|
|
106
|
+
{
|
|
107
|
+
validator: (rule, value, callback) => {
|
|
108
|
+
if (value === 2) {
|
|
109
|
+
if (!hy.formModel.value.weekDate.length) {
|
|
110
|
+
callback(new Error("\u8BF7\u9009\u62E9\u6307\u5B9A\u661F\u671F"));
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
callback();
|
|
115
|
+
},
|
|
116
|
+
trigger: ["change", "blur"]
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
attrs: {
|
|
120
|
+
options: [
|
|
121
|
+
{ label: "\u6BCF\u65E5", value: 1 },
|
|
122
|
+
{ label: "\u6307\u5B9A\u661F\u671F", value: 2 },
|
|
123
|
+
{ label: "\u6307\u5B9A\u65E5\u671F", value: 4 }
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
type: "checkbox-group",
|
|
129
|
+
prop: "weekDate",
|
|
130
|
+
label: "\u9009\u62E9\u89E6\u53D1\u7684\u661F\u671F",
|
|
131
|
+
required: true,
|
|
132
|
+
show: (column, model) => model.ruleDateType === 2,
|
|
133
|
+
attrs: {
|
|
134
|
+
options: [
|
|
135
|
+
{ label: $t("hy.monday"), value: "1" },
|
|
136
|
+
{ label: $t("hy.tuesday"), value: "2" },
|
|
137
|
+
{ label: $t("hy.wednesday"), value: "3" },
|
|
138
|
+
{ label: $t("hy.thursday"), value: "4" },
|
|
139
|
+
{ label: $t("hy.friday"), value: "5" },
|
|
140
|
+
{ label: $t("hy.saturday"), value: "6" },
|
|
141
|
+
{ label: $t("hy.sunday"), value: "7" }
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
type: "date-picker",
|
|
147
|
+
prop: ["apStartDtm", "apEndDtm"],
|
|
148
|
+
label: "\u6307\u5B9A\u65E5\u671F\u8303\u56F4",
|
|
149
|
+
required: true,
|
|
150
|
+
timeRangeFill: true,
|
|
151
|
+
show: (column, model) => {
|
|
152
|
+
return model.ruleDateType === 4;
|
|
153
|
+
},
|
|
154
|
+
attrs: {
|
|
155
|
+
type: "daterange",
|
|
156
|
+
isRange: true,
|
|
157
|
+
timeRangeFill: true,
|
|
158
|
+
clearable: true
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
type: "time-picker",
|
|
163
|
+
prop: ["startDtm1", "endDtm1"],
|
|
164
|
+
label: "\u89C4\u5219\u751F\u6548\u65F6\u95F4",
|
|
165
|
+
required: true,
|
|
166
|
+
attrs: {
|
|
167
|
+
isRange: true,
|
|
168
|
+
clearable: true
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
{
|
|
173
|
+
type: 1,
|
|
174
|
+
mapRailId: null
|
|
175
|
+
}
|
|
176
|
+
);
|
|
177
|
+
const { filterModel: filterModel2, filterColumns: filterColumns2 } = useAppSearch(
|
|
178
|
+
[
|
|
179
|
+
{
|
|
180
|
+
type: "org-cascader",
|
|
181
|
+
prop: "orgId",
|
|
182
|
+
required: true,
|
|
183
|
+
width: 200
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
type: "select",
|
|
187
|
+
prop: "showChildOrg",
|
|
188
|
+
label: "\u6570\u636E",
|
|
189
|
+
defaultValue: 0,
|
|
190
|
+
width: 200,
|
|
191
|
+
attrs: {
|
|
192
|
+
options: [
|
|
193
|
+
{ label: "\u4EC5\u5C55\u793A\u672C\u7EA7\u90E8\u95E8\u6570\u636E", value: 0 },
|
|
194
|
+
{ label: "\u5C55\u793A\u672C\u7EA7\u5305\u62EC\u4E0B\u7EA7\u6570\u636E", value: 1 }
|
|
195
|
+
],
|
|
196
|
+
clearable: false
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
{
|
|
201
|
+
page: 0,
|
|
202
|
+
size: 1e4
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
const { tableColumns: tableColumns2 } = useAppTable({
|
|
206
|
+
columns: [
|
|
207
|
+
{
|
|
208
|
+
prop: "railName",
|
|
209
|
+
label: "\u7535\u5B50\u56F4\u680F\u540D\u79F0",
|
|
210
|
+
slot: "railName"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
prop: "operator",
|
|
214
|
+
label: "\u64CD\u4F5C",
|
|
215
|
+
slot: "operator",
|
|
216
|
+
width: 110
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
});
|
|
220
|
+
const rules2 = ref({});
|
|
221
|
+
async function show2(data) {
|
|
222
|
+
if (hy.loading.value) {
|
|
223
|
+
ElMessage.error("\u6570\u636E\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u70B9\u51FB");
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
await hy.watchPause();
|
|
227
|
+
hy.loading.value = true;
|
|
228
|
+
if (data && data.id) {
|
|
229
|
+
try {
|
|
230
|
+
const res = await selectApi("rule", data.id);
|
|
231
|
+
if (res.code === 200) {
|
|
232
|
+
const data2 = res.data || {};
|
|
233
|
+
hy.formModel.value = {
|
|
234
|
+
...data2,
|
|
235
|
+
ruleDateType: data2.ruleDateType || 1,
|
|
236
|
+
weekDate: data2.weekDate ? data2.weekDate.split(",") : []
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
} catch (err) {
|
|
240
|
+
console.error(err);
|
|
241
|
+
}
|
|
242
|
+
} else {
|
|
243
|
+
hy.formModel.value = {
|
|
244
|
+
ruleName: null,
|
|
245
|
+
stopHour: null,
|
|
246
|
+
gatherLimit: null,
|
|
247
|
+
ruleDateType: 1,
|
|
248
|
+
apStartDtm: null,
|
|
249
|
+
apEndDtm: null,
|
|
250
|
+
startDtm1: null,
|
|
251
|
+
endDtm1: null,
|
|
252
|
+
weekDate: [],
|
|
253
|
+
mapRailId: null,
|
|
254
|
+
...data || {}
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
hy.setDragLevelIndex("HyDialogRef");
|
|
258
|
+
hy.dialogVisible.value = true;
|
|
259
|
+
hy.filterModel.value = {
|
|
260
|
+
orgId: null,
|
|
261
|
+
showChildOrg: 0,
|
|
262
|
+
query: null,
|
|
263
|
+
page: 0,
|
|
264
|
+
size: 1e4
|
|
265
|
+
};
|
|
266
|
+
hy.getMapRail();
|
|
267
|
+
await nextTick();
|
|
268
|
+
hy.formRef.value.clearValidate();
|
|
269
|
+
hy.loading.value = false;
|
|
270
|
+
hy.watchResume();
|
|
271
|
+
}
|
|
272
|
+
async function onSubmit2() {
|
|
273
|
+
await hy.formRef.value.validate();
|
|
274
|
+
const form = { ...hy.formModel.value };
|
|
275
|
+
if (hy.formModel.value.type !== 3 && !form.mapRailId) {
|
|
276
|
+
ElMessage.error("\u8BF7\u9009\u62E9\u7535\u5B50\u56F4\u680F");
|
|
277
|
+
return Promise.reject();
|
|
278
|
+
}
|
|
279
|
+
if (form.ruleDateType === 2) {
|
|
280
|
+
form.weekDate = form.weekDate.join(",");
|
|
281
|
+
form.apStartDtm = null;
|
|
282
|
+
form.apEndDtm = null;
|
|
283
|
+
} else if (form.ruleDateType === 4) {
|
|
284
|
+
form.weekDate = null;
|
|
285
|
+
} else {
|
|
286
|
+
form.weekDate = null;
|
|
287
|
+
form.apStartDtm = null;
|
|
288
|
+
form.apEndDtm = null;
|
|
289
|
+
}
|
|
290
|
+
const res = await saveApi("rule", form);
|
|
291
|
+
if (res.code === 200) {
|
|
292
|
+
ElMessage.success("\u64CD\u4F5C\u6210\u529F");
|
|
293
|
+
emits2("onSubmit", form.id ? null : 1);
|
|
294
|
+
} else {
|
|
295
|
+
return Promise.reject();
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
const formRef2 = useTemplateRef("formRef");
|
|
299
|
+
function setWeekDate2(week) {
|
|
300
|
+
const index = hy.formModel.value.weekDate?.indexOf(week);
|
|
301
|
+
if (index === -1) {
|
|
302
|
+
hy.formModel.value.weekDate.push(week);
|
|
303
|
+
} else {
|
|
304
|
+
hy.formModel.value.weekDate.splice(index, 1);
|
|
305
|
+
}
|
|
306
|
+
hy.formRef.value.validate(["ruleDateType"]);
|
|
307
|
+
}
|
|
308
|
+
const tableRef2 = useTemplateRef("tableRef");
|
|
309
|
+
const mapRailMap2 = ref({});
|
|
310
|
+
const tableLoading2 = ref(false);
|
|
311
|
+
function getMapRail2() {
|
|
312
|
+
hy.tableLoading.value = true;
|
|
313
|
+
pageApi("mapRail", hy.filterModel.value).then(async (res) => {
|
|
314
|
+
const data = res.data || [];
|
|
315
|
+
await nextTick();
|
|
316
|
+
hy.tableRef.value.setData(data.content);
|
|
317
|
+
hy.mapRailMap.value = (data.content || []).reduce((obj, item) => {
|
|
318
|
+
obj[item.id] = item.railName;
|
|
319
|
+
return obj;
|
|
320
|
+
}, {});
|
|
321
|
+
}).finally(() => {
|
|
322
|
+
hy.tableLoading.value = false;
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
function setMapRail2(item) {
|
|
326
|
+
if (hy.formModel.value.mapRailId === item.id) {
|
|
327
|
+
hy.formModel.value.mapRailId = null;
|
|
328
|
+
} else {
|
|
329
|
+
hy.formModel.value.mapRailId = item.id;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return {
|
|
333
|
+
HyDialogRef,
|
|
334
|
+
dialogVisible: dialogVisible2,
|
|
335
|
+
loading: loading2,
|
|
336
|
+
title: title2,
|
|
337
|
+
isAdd,
|
|
338
|
+
formModel: formModel2,
|
|
339
|
+
formColumns: formColumns2,
|
|
340
|
+
filterModel: filterModel2,
|
|
341
|
+
filterColumns: filterColumns2,
|
|
342
|
+
tableColumns: tableColumns2,
|
|
343
|
+
rules: rules2,
|
|
344
|
+
show: show2,
|
|
345
|
+
onSubmit: onSubmit2,
|
|
346
|
+
formRef: formRef2,
|
|
347
|
+
setWeekDate: setWeekDate2,
|
|
348
|
+
tableRef: tableRef2,
|
|
349
|
+
mapRailMap: mapRailMap2,
|
|
350
|
+
tableLoading: tableLoading2,
|
|
351
|
+
getMapRail: getMapRail2,
|
|
352
|
+
setMapRail: setMapRail2
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
const {
|
|
356
|
+
onMinimized,
|
|
357
|
+
setDragLevelIndex,
|
|
358
|
+
dialogVisible,
|
|
359
|
+
loading,
|
|
360
|
+
title,
|
|
361
|
+
formModel,
|
|
362
|
+
formColumns,
|
|
363
|
+
filterModel,
|
|
364
|
+
filterColumns,
|
|
365
|
+
tableColumns,
|
|
366
|
+
rules,
|
|
367
|
+
show,
|
|
368
|
+
onSubmit,
|
|
369
|
+
formRef,
|
|
370
|
+
setWeekDate,
|
|
371
|
+
tableRef,
|
|
372
|
+
mapRailMap,
|
|
373
|
+
tableLoading,
|
|
374
|
+
getMapRail,
|
|
375
|
+
setMapRail
|
|
376
|
+
} = useMixins(
|
|
377
|
+
{
|
|
378
|
+
emits
|
|
379
|
+
},
|
|
380
|
+
[useDialog, useDialogIsEdit, useRuleFenceDialog]
|
|
381
|
+
);
|
|
382
|
+
__expose({
|
|
383
|
+
show,
|
|
384
|
+
setDragLevelIndex
|
|
385
|
+
});
|
|
386
|
+
return (_ctx, _cache) => {
|
|
387
|
+
return openBlock(), createBlock(unref(HyDialog), {
|
|
388
|
+
ref: "HyDialogRef",
|
|
389
|
+
modelValue: unref(dialogVisible),
|
|
390
|
+
"onUpdate:modelValue": ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : null,
|
|
391
|
+
loading: unref(loading),
|
|
392
|
+
"onUpdate:loading": ($event) => isRef(loading) ? loading.value = $event : null,
|
|
393
|
+
title: unref(title),
|
|
394
|
+
width: "1000",
|
|
395
|
+
"dialog-type": "right",
|
|
396
|
+
"show-operate": true,
|
|
397
|
+
"if-draggable": __props.ifDraggable,
|
|
398
|
+
"if-shrink": __props.ifShrink,
|
|
399
|
+
"on-submit": unref(onSubmit),
|
|
400
|
+
onOnMinimized: unref(onMinimized),
|
|
401
|
+
onOnDialogMousedown: ($event) => unref(setDragLevelIndex)("HyDialogRef")
|
|
402
|
+
}, {
|
|
403
|
+
default: withCtx(() => [
|
|
404
|
+
createElementVNode("div", { class: "w-full h-full flex gap-1" }, [
|
|
405
|
+
createElementVNode("div", { class: "w-1/2 h-full flex flex-col" }, [
|
|
406
|
+
createElementVNode("div", { class: "text-xs text-auxiliary font-bold mb-1" }, "\u89C4\u5219\u57FA\u7840\u4FE1\u606F"),
|
|
407
|
+
createElementVNode("div", {
|
|
408
|
+
class: "w-full h-0 flex-1 bg-background border border-border rounded p-4 box-border",
|
|
409
|
+
style: { "box-shadow": "0px 2px 4px 0px rgba(0, 0, 0, 0.5),\n inset 0px 0px 10px 0px #1f4b77" }
|
|
410
|
+
}, [
|
|
411
|
+
createVNode(unref(HyForm), {
|
|
412
|
+
ref_key: "formRef",
|
|
413
|
+
ref: formRef,
|
|
414
|
+
model: unref(formModel),
|
|
415
|
+
columns: unref(formColumns),
|
|
416
|
+
rules: unref(rules),
|
|
417
|
+
"column-num": 1
|
|
418
|
+
}, {
|
|
419
|
+
gatherLimit: withCtx(({ column }) => [
|
|
420
|
+
createVNode(unref(HyInput), mergeProps({
|
|
421
|
+
modelValue: unref(formModel).gatherLimit,
|
|
422
|
+
"onUpdate:modelValue": ($event) => unref(formModel).gatherLimit = $event
|
|
423
|
+
}, column.attrs), {
|
|
424
|
+
suffix: withCtx(() => [
|
|
425
|
+
createElementVNode("span", { class: "text-main" }, "\u7C73")
|
|
426
|
+
]),
|
|
427
|
+
_: 1
|
|
428
|
+
/* STABLE */
|
|
429
|
+
}, 16, ["modelValue", "onUpdate:modelValue"])
|
|
430
|
+
]),
|
|
431
|
+
_: 1
|
|
432
|
+
/* STABLE */
|
|
433
|
+
}, 8, ["model", "columns", "rules"]),
|
|
434
|
+
unref(formModel).type !== 3 ? (openBlock(), createElementBlock("div", {
|
|
435
|
+
key: 0,
|
|
436
|
+
class: "flex items-center gap-2 text-sm text-auxiliary px-2"
|
|
437
|
+
}, [
|
|
438
|
+
createCommentVNode(" \u9759\u9ED8\u89C4\u5219\u7684\u5E94\u7528\u533A\u57DF\u4E0D\u5FC5\u586B "),
|
|
439
|
+
createVNode(unref(HyIcon), {
|
|
440
|
+
"svg-name": "dispatch-share1-prompt",
|
|
441
|
+
class: "!w-3 !h-3"
|
|
442
|
+
}),
|
|
443
|
+
createElementVNode("span", null, "\u586B\u5199\u5B8C\u6210\u540E\u8BF7\u5728\u53F3\u4FA7\u9009\u62E9\u5E94\u7528\u7684\u533A\u57DF")
|
|
444
|
+
])) : createCommentVNode("v-if", true)
|
|
445
|
+
])
|
|
446
|
+
]),
|
|
447
|
+
createElementVNode("div", { class: "w-1/2 h-full flex flex-col" }, [
|
|
448
|
+
createElementVNode("div", { class: "text-xs text-auxiliary font-bold mb-1" }, "\u9009\u62E9\u56F4\u680F\u533A\u57DF"),
|
|
449
|
+
createElementVNode("div", {
|
|
450
|
+
class: "w-full h-0 flex-1 flex flex-col bg-background border border-border rounded p-1.5 box-border",
|
|
451
|
+
style: { "box-shadow": "0px 2px 4px 0px rgba(0, 0, 0, 0.5),\n inset 0px 0px 10px 0px #1f4b77" }
|
|
452
|
+
}, [
|
|
453
|
+
createVNode(unref(HySearch), {
|
|
454
|
+
model: unref(filterModel),
|
|
455
|
+
columns: unref(filterColumns),
|
|
456
|
+
disabled: unref(tableLoading),
|
|
457
|
+
onSearch: unref(getMapRail)
|
|
458
|
+
}, null, 8, ["model", "columns", "disabled", "onSearch"]),
|
|
459
|
+
createElementVNode("div", { class: "my-2" }, [
|
|
460
|
+
createVNode(unref(HyInputSearch), {
|
|
461
|
+
modelValue: unref(filterModel).query,
|
|
462
|
+
"onUpdate:modelValue": ($event) => unref(filterModel).query = $event,
|
|
463
|
+
placeholder: "\u641C\u7D22\u7535\u5B50\u56F4\u680F\u540D\u79F0\u3001\u521B\u5EFA\u4EBA\u5458\u540D\u79F0",
|
|
464
|
+
disabled: unref(tableLoading),
|
|
465
|
+
onSearch: unref(getMapRail)
|
|
466
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "onSearch"])
|
|
467
|
+
]),
|
|
468
|
+
createVNode(unref(HyTable), {
|
|
469
|
+
ref_key: "tableRef",
|
|
470
|
+
ref: tableRef,
|
|
471
|
+
loading: unref(tableLoading),
|
|
472
|
+
"onUpdate:loading": ($event) => isRef(tableLoading) ? tableLoading.value = $event : null,
|
|
473
|
+
"row-key": "id",
|
|
474
|
+
type: "virtual",
|
|
475
|
+
"table-columns": unref(tableColumns),
|
|
476
|
+
"show-editable": false,
|
|
477
|
+
"default-get-data": false,
|
|
478
|
+
"show-operate": false,
|
|
479
|
+
"show-pagination": false,
|
|
480
|
+
class: "h-0 flex-1"
|
|
481
|
+
}, {
|
|
482
|
+
railName: withCtx(({ row }) => [
|
|
483
|
+
createElementVNode("div", { class: "w-full flex items-center" }, [
|
|
484
|
+
createVNode(unref(HyTooltip), {
|
|
485
|
+
"is-always": false,
|
|
486
|
+
class: "text-sm text-main truncate",
|
|
487
|
+
content: row.railName
|
|
488
|
+
}, null, 8, ["content"]),
|
|
489
|
+
createVNode(
|
|
490
|
+
unref(HyTooltip),
|
|
491
|
+
{ "show-after": 300 },
|
|
492
|
+
{
|
|
493
|
+
content: withCtx(() => [
|
|
494
|
+
createElementVNode("div", { class: "flex flex-col gap-1 text-xs text-main" }, [
|
|
495
|
+
createElementVNode("div", null, [
|
|
496
|
+
createElementVNode(
|
|
497
|
+
"span",
|
|
498
|
+
{ class: "text-auxiliary font-bold" },
|
|
499
|
+
toDisplayString(unref($t)("ruleSetting.railName")) + "\uFF1A",
|
|
500
|
+
1
|
|
501
|
+
/* TEXT */
|
|
502
|
+
),
|
|
503
|
+
createElementVNode(
|
|
504
|
+
"span",
|
|
505
|
+
null,
|
|
506
|
+
toDisplayString(row.railName),
|
|
507
|
+
1
|
|
508
|
+
/* TEXT */
|
|
509
|
+
)
|
|
510
|
+
]),
|
|
511
|
+
createElementVNode("div", null, [
|
|
512
|
+
createElementVNode(
|
|
513
|
+
"span",
|
|
514
|
+
{ class: "text-auxiliary font-bold" },
|
|
515
|
+
toDisplayString(unref($t)("bussiness.department")) + "\uFF1A",
|
|
516
|
+
1
|
|
517
|
+
/* TEXT */
|
|
518
|
+
),
|
|
519
|
+
createElementVNode(
|
|
520
|
+
"span",
|
|
521
|
+
null,
|
|
522
|
+
toDisplayString(row.orgName),
|
|
523
|
+
1
|
|
524
|
+
/* TEXT */
|
|
525
|
+
)
|
|
526
|
+
]),
|
|
527
|
+
createElementVNode("div", null, [
|
|
528
|
+
createElementVNode(
|
|
529
|
+
"span",
|
|
530
|
+
{ class: "text-auxiliary font-bold" },
|
|
531
|
+
toDisplayString(unref($t)("bussiness.creator")) + "\uFF1A",
|
|
532
|
+
1
|
|
533
|
+
/* TEXT */
|
|
534
|
+
),
|
|
535
|
+
createElementVNode(
|
|
536
|
+
"span",
|
|
537
|
+
null,
|
|
538
|
+
toDisplayString(row.createUser),
|
|
539
|
+
1
|
|
540
|
+
/* TEXT */
|
|
541
|
+
)
|
|
542
|
+
]),
|
|
543
|
+
createElementVNode("div", null, [
|
|
544
|
+
createElementVNode(
|
|
545
|
+
"span",
|
|
546
|
+
{ class: "text-auxiliary font-bold" },
|
|
547
|
+
toDisplayString(unref($t)("bussiness.creationTime")) + "\uFF1A",
|
|
548
|
+
1
|
|
549
|
+
/* TEXT */
|
|
550
|
+
),
|
|
551
|
+
createElementVNode(
|
|
552
|
+
"span",
|
|
553
|
+
null,
|
|
554
|
+
toDisplayString(row.createDtm),
|
|
555
|
+
1
|
|
556
|
+
/* TEXT */
|
|
557
|
+
)
|
|
558
|
+
])
|
|
559
|
+
])
|
|
560
|
+
]),
|
|
561
|
+
default: withCtx(() => [
|
|
562
|
+
createElementVNode("div", { class: "flex-shrink-0 flex items-center ml-2" }, [
|
|
563
|
+
createVNode(unref(HyIcon), {
|
|
564
|
+
"svg-name": "dispatch-linear-v3-task-management-details",
|
|
565
|
+
class: "!w-3 !h-3 text-theme mr-1"
|
|
566
|
+
}),
|
|
567
|
+
createElementVNode("span", { class: "text-xs text-theme whitespace-nowrap" }, toDisplayString("\u8BE6\u60C5"))
|
|
568
|
+
])
|
|
569
|
+
]),
|
|
570
|
+
_: 2
|
|
571
|
+
/* DYNAMIC */
|
|
572
|
+
},
|
|
573
|
+
1024
|
|
574
|
+
/* DYNAMIC_SLOTS */
|
|
575
|
+
)
|
|
576
|
+
])
|
|
577
|
+
]),
|
|
578
|
+
operator: withCtx(({ row }) => [
|
|
579
|
+
createElementVNode("div", { class: "py-1 w-full" }, [
|
|
580
|
+
unref(formModel).mapRailId === row.id ? (openBlock(), createBlock(unref(HyButton), {
|
|
581
|
+
key: 0,
|
|
582
|
+
type: "danger",
|
|
583
|
+
onClick: ($event) => unref(setMapRail)(row)
|
|
584
|
+
}, {
|
|
585
|
+
default: withCtx(() => [
|
|
586
|
+
createTextVNode("\u53D6\u6D88\u9009\u62E9")
|
|
587
|
+
]),
|
|
588
|
+
_: 1
|
|
589
|
+
/* STABLE */
|
|
590
|
+
}, 8, ["onClick"])) : (openBlock(), createBlock(unref(HyButton), {
|
|
591
|
+
key: 1,
|
|
592
|
+
type: "default",
|
|
593
|
+
onClick: ($event) => unref(setMapRail)(row)
|
|
594
|
+
}, {
|
|
595
|
+
default: withCtx(() => [
|
|
596
|
+
createTextVNode("\u70B9\u51FB\u9009\u62E9")
|
|
597
|
+
]),
|
|
598
|
+
_: 1
|
|
599
|
+
/* STABLE */
|
|
600
|
+
}, 8, ["onClick"]))
|
|
601
|
+
])
|
|
602
|
+
]),
|
|
603
|
+
_: 1
|
|
604
|
+
/* STABLE */
|
|
605
|
+
}, 8, ["loading", "onUpdate:loading", "table-columns"]),
|
|
606
|
+
unref(formModel).mapRailId ? (openBlock(), createElementBlock("div", {
|
|
607
|
+
key: 0,
|
|
608
|
+
class: "w-full h-[48px] bg-background-3 rounded-[0_0_4px_4px] flex items-center justify-between gap-2 box-border px-3"
|
|
609
|
+
}, [
|
|
610
|
+
createElementVNode("div", { class: "w-0 flex-1 text-sm flex items-center" }, [
|
|
611
|
+
createElementVNode("span", { class: "flex-shrink-0" }, "\u5DF2\u9009\u62E9\uFF1A"),
|
|
612
|
+
createVNode(unref(HyTooltip), {
|
|
613
|
+
"is-always": false,
|
|
614
|
+
content: unref(mapRailMap)[unref(formModel).mapRailId]
|
|
615
|
+
}, {
|
|
616
|
+
default: withCtx(() => [
|
|
617
|
+
createElementVNode(
|
|
618
|
+
"span",
|
|
619
|
+
{ class: "text-theme font-bold" },
|
|
620
|
+
toDisplayString(unref(mapRailMap)[unref(formModel).mapRailId]),
|
|
621
|
+
1
|
|
622
|
+
/* TEXT */
|
|
623
|
+
)
|
|
624
|
+
]),
|
|
625
|
+
_: 1
|
|
626
|
+
/* STABLE */
|
|
627
|
+
}, 8, ["content"])
|
|
628
|
+
]),
|
|
629
|
+
createVNode(unref(HyButton), {
|
|
630
|
+
type: "default",
|
|
631
|
+
onClick: ($event) => unref(setMapRail)({ id: unref(formModel).mapRailId })
|
|
632
|
+
}, {
|
|
633
|
+
default: withCtx(() => [
|
|
634
|
+
createTextVNode("\u53D6\u6D88")
|
|
635
|
+
]),
|
|
636
|
+
_: 1
|
|
637
|
+
/* STABLE */
|
|
638
|
+
}, 8, ["onClick"])
|
|
639
|
+
])) : createCommentVNode("v-if", true)
|
|
640
|
+
])
|
|
641
|
+
])
|
|
642
|
+
])
|
|
643
|
+
]),
|
|
644
|
+
_: 1
|
|
645
|
+
/* STABLE */
|
|
646
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "loading", "onUpdate:loading", "title", "if-draggable", "if-shrink", "on-submit", "onOnMinimized", "onOnDialogMousedown"]);
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
export { _sfc_main as default };
|