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,251 @@
|
|
|
1
|
+
import { useTemplateRef, ref, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode, toDisplayString, createElementVNode, createCommentVNode } from 'vue';
|
|
2
|
+
import { ElMessage, ElPopover } from 'element-plus';
|
|
3
|
+
import { deleteBatchApi } from '../../../../api/index.mjs';
|
|
4
|
+
import '../../../../hooks/index.mjs';
|
|
5
|
+
import { weekDateFn } from '../../js/ruleSetting.mjs';
|
|
6
|
+
import '../../../../components/index.mjs';
|
|
7
|
+
import { useAppTable } from '../../../../components/hyTable/js/useAppTable.mjs';
|
|
8
|
+
import { $t } from '../../../../hooks/useLocale.mjs';
|
|
9
|
+
import { HyConfirmDialog } from '../../../../components/hyConfirmDialog/index.mjs';
|
|
10
|
+
import { useMixins } from '../../../../hooks/useMixins.mjs';
|
|
11
|
+
import { HyTable } from '../../../../components/hyTable/index.mjs';
|
|
12
|
+
import { HyTableActionButton } from '../../../../components/hyTableActionButton/index.mjs';
|
|
13
|
+
import { HyIcon } from '../../../../components/hyIcon/index.mjs';
|
|
14
|
+
|
|
15
|
+
const _sfc_main = {
|
|
16
|
+
__name: "missionOutRule",
|
|
17
|
+
emits: ["on-add", "on-edit", "on-rule-assign"],
|
|
18
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
19
|
+
const emits = __emit;
|
|
20
|
+
const tableRef = useTemplateRef("tableRef");
|
|
21
|
+
function useMissionOutRule(hy) {
|
|
22
|
+
const { tableRef: tableRef2 } = hy;
|
|
23
|
+
const { tableColumns: tableColumns2, filterModel: filterModel2, filterColumns: filterColumns2 } = useAppTable({
|
|
24
|
+
columns: [
|
|
25
|
+
{
|
|
26
|
+
prop: "ruleName",
|
|
27
|
+
label: $t("ruleSetting.ruleName"),
|
|
28
|
+
isSearch: true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
prop: "railName",
|
|
32
|
+
label: $t("ruleSetting.areaName")
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
prop: "attendanceTime",
|
|
36
|
+
label: $t("ruleSetting.executionTime"),
|
|
37
|
+
slot: "attendanceTime"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
type: "operator",
|
|
41
|
+
operator: [
|
|
42
|
+
{
|
|
43
|
+
label: $t("ruleSetting.distribution"),
|
|
44
|
+
desc: $t("ruleSetting.assignRules"),
|
|
45
|
+
svgName: "ops-linear-fen-pei",
|
|
46
|
+
handler: ({ row }) => {
|
|
47
|
+
hy.assingRules(row);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: $t("bussiness.edit"),
|
|
52
|
+
desc: $t("bussiness.edit"),
|
|
53
|
+
svgName: "ops-button-edit",
|
|
54
|
+
handler: ({ row }) => {
|
|
55
|
+
emits("on-edit", row);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
desc: $t("bussiness.delete"),
|
|
60
|
+
label: $t("bussiness.delete"),
|
|
61
|
+
svgName: "ops-linear-delete",
|
|
62
|
+
className: "text-danger-2",
|
|
63
|
+
handler: ({ row }) => {
|
|
64
|
+
hy.deleteShow(row);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
filterColumns: [],
|
|
71
|
+
filterModel: {
|
|
72
|
+
type: 2
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
const searchArr2 = ref([
|
|
76
|
+
{
|
|
77
|
+
label: $t("ruleSetting.userName")
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: $t("ruleSetting.deviceIMEI")
|
|
81
|
+
}
|
|
82
|
+
]);
|
|
83
|
+
function showAddRuleFenceDialog2(row) {
|
|
84
|
+
emits("on-add", row);
|
|
85
|
+
}
|
|
86
|
+
function assingRules(row) {
|
|
87
|
+
emits("on-rule-assign", row);
|
|
88
|
+
}
|
|
89
|
+
function deleteShow(data) {
|
|
90
|
+
HyConfirmDialog.danger({
|
|
91
|
+
title: "\u786E\u8BA4\u5220\u9664",
|
|
92
|
+
content: `<div><p>\u5220\u9664\u540E\u65E0\u6CD5\u8FD8\u539F\uFF0C\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u89C4\u5219\uFF1F</p><p class="text-theme mt-1">"${data.ruleName}"</p></div>`,
|
|
93
|
+
onSubmit() {
|
|
94
|
+
return new Promise((resolve, reject) => {
|
|
95
|
+
deleteBatchApi("rule", data.id).then((res) => {
|
|
96
|
+
if (res.code === 200) {
|
|
97
|
+
ElMessage.success($t("bussiness.successfulDeletion"));
|
|
98
|
+
hy.getData();
|
|
99
|
+
resolve();
|
|
100
|
+
}
|
|
101
|
+
}).catch(() => {
|
|
102
|
+
reject();
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function getData2(page = null) {
|
|
109
|
+
tableRef2.value.getData(page);
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
// data
|
|
113
|
+
tableColumns: tableColumns2,
|
|
114
|
+
filterModel: filterModel2,
|
|
115
|
+
filterColumns: filterColumns2,
|
|
116
|
+
searchArr: searchArr2,
|
|
117
|
+
// methods
|
|
118
|
+
showAddRuleFenceDialog: showAddRuleFenceDialog2,
|
|
119
|
+
assingRules,
|
|
120
|
+
deleteShow,
|
|
121
|
+
getData: getData2
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
const { tableColumns, filterModel, filterColumns, searchArr, showAddRuleFenceDialog, getData } = useMixins({ tableRef }, [useMissionOutRule]);
|
|
125
|
+
__expose({
|
|
126
|
+
getData
|
|
127
|
+
});
|
|
128
|
+
return (_ctx, _cache) => {
|
|
129
|
+
return openBlock(), createElementBlock("div", { class: "w-full h-full" }, [
|
|
130
|
+
createVNode(unref(HyTable), {
|
|
131
|
+
ref_key: "tableRef",
|
|
132
|
+
ref: tableRef,
|
|
133
|
+
controller: "rule",
|
|
134
|
+
"table-columns": unref(tableColumns),
|
|
135
|
+
"filter-model": unref(filterModel),
|
|
136
|
+
"filter-columns": unref(filterColumns),
|
|
137
|
+
"search-arr": unref(searchArr),
|
|
138
|
+
"show-editable": false
|
|
139
|
+
}, {
|
|
140
|
+
"operator-left-box": withCtx(() => [
|
|
141
|
+
createVNode(unref(HyTableActionButton), {
|
|
142
|
+
type: "success",
|
|
143
|
+
"svg-name": "ops-button-add",
|
|
144
|
+
label: "\u6DFB\u52A0",
|
|
145
|
+
"operate-list": [
|
|
146
|
+
{
|
|
147
|
+
children: [
|
|
148
|
+
{
|
|
149
|
+
label: "\u6DFB\u52A0\u7981\u51FA\u89C4\u5219",
|
|
150
|
+
value: "showAddRuleFenceDialog",
|
|
151
|
+
altText: `\u8BBE\u7F6E\u7981\u6B62\u79BB\u5F00\u7684\u56F4\u680F\u533A\u57DF\uFF0C\u4EBA\u5458\u79BB\u5F00\u65F6\u89E6\u53D1\u544A\u8B66\u3002`
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
onChange: ($event) => unref(showAddRuleFenceDialog)({ type: unref(filterModel).type })
|
|
157
|
+
}, null, 8, ["onChange"]),
|
|
158
|
+
createVNode(unref(ElPopover), {
|
|
159
|
+
placement: "bottom-start",
|
|
160
|
+
width: "200",
|
|
161
|
+
trigger: "hover"
|
|
162
|
+
}, {
|
|
163
|
+
reference: withCtx(() => [
|
|
164
|
+
createElementVNode("span", { class: "text-xs text-theme ml-2" }, [
|
|
165
|
+
createVNode(unref(HyIcon), {
|
|
166
|
+
"svg-name": "dispatch-share-v3-base-help",
|
|
167
|
+
class: "!w-3 !h-3 mr-1"
|
|
168
|
+
}),
|
|
169
|
+
createElementVNode(
|
|
170
|
+
"span",
|
|
171
|
+
null,
|
|
172
|
+
toDisplayString(unref($t)("hy.help")),
|
|
173
|
+
1
|
|
174
|
+
/* TEXT */
|
|
175
|
+
)
|
|
176
|
+
])
|
|
177
|
+
]),
|
|
178
|
+
default: withCtx(() => [
|
|
179
|
+
createElementVNode("div", { class: "p-[10px_20px] text-xs" }, [
|
|
180
|
+
createElementVNode("div", { class: "mb-2 break-keep" }, "\u89C4\u5219\u4F7F\u7528\u8BF4\u660E\uFF1A"),
|
|
181
|
+
createElementVNode("ul", null, [
|
|
182
|
+
createElementVNode("li", { class: "flex mb_10" }, [
|
|
183
|
+
createElementVNode("span", null, "1\u3001"),
|
|
184
|
+
createElementVNode("span", null, "\u6DFB\u52A0\u89C4\u5219")
|
|
185
|
+
]),
|
|
186
|
+
createElementVNode("li", { class: "flex mb_10" }, [
|
|
187
|
+
createElementVNode("span", null, "2\u3001"),
|
|
188
|
+
createElementVNode("span", null, "\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u7684\u89C4\u5219\u6761\u4EF6")
|
|
189
|
+
]),
|
|
190
|
+
createElementVNode("li", { class: "flex mb_10" }, [
|
|
191
|
+
createElementVNode("span", null, "3\u3001"),
|
|
192
|
+
createElementVNode("span", null, "\u5E76\u628A\u9700\u8981\u6267\u884C\u6B64\u89C4\u5219\u7684\u4EBA\u5458\u6388\u6743\u7ED9\u5B83")
|
|
193
|
+
])
|
|
194
|
+
])
|
|
195
|
+
])
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
/* STABLE */
|
|
199
|
+
})
|
|
200
|
+
]),
|
|
201
|
+
attendanceTime: withCtx(({ row }) => [
|
|
202
|
+
row.ruleDateType === 1 || !row.ruleDateType ? (openBlock(), createElementBlock("div", { key: 0 }, [
|
|
203
|
+
createTextVNode(
|
|
204
|
+
toDisplayString(unref($t)("ruleSetting.everyDay")) + " ",
|
|
205
|
+
1
|
|
206
|
+
/* TEXT */
|
|
207
|
+
),
|
|
208
|
+
createElementVNode(
|
|
209
|
+
"span",
|
|
210
|
+
{ class: "text-auxiliary text-xs" },
|
|
211
|
+
"(" + toDisplayString(row.startDtm1) + "-" + toDisplayString(row.endDtm1) + ")",
|
|
212
|
+
1
|
|
213
|
+
/* TEXT */
|
|
214
|
+
)
|
|
215
|
+
])) : row.ruleDateType === 2 ? (openBlock(), createElementBlock("div", { key: 1 }, [
|
|
216
|
+
createTextVNode(
|
|
217
|
+
toDisplayString(unref(weekDateFn)(row.weekDate)) + " ",
|
|
218
|
+
1
|
|
219
|
+
/* TEXT */
|
|
220
|
+
),
|
|
221
|
+
createElementVNode(
|
|
222
|
+
"span",
|
|
223
|
+
{ class: "text-auxiliary text-xs" },
|
|
224
|
+
"(" + toDisplayString(row.startDtm1) + "-" + toDisplayString(row.endDtm1) + "})",
|
|
225
|
+
1
|
|
226
|
+
/* TEXT */
|
|
227
|
+
)
|
|
228
|
+
])) : row.ruleDateType === 4 ? (openBlock(), createElementBlock("div", { key: 2 }, [
|
|
229
|
+
createTextVNode(
|
|
230
|
+
toDisplayString(row.apStartDtm.split(" 00:00:00")[0]) + " ~ " + toDisplayString(row.apEndDtm.split(" 00:00:00")[0]) + " ",
|
|
231
|
+
1
|
|
232
|
+
/* TEXT */
|
|
233
|
+
),
|
|
234
|
+
createElementVNode(
|
|
235
|
+
"span",
|
|
236
|
+
{ class: "text-auxiliary text-xs" },
|
|
237
|
+
"(" + toDisplayString(row.startDtm1) + "-" + toDisplayString(row.endDtm1) + "})",
|
|
238
|
+
1
|
|
239
|
+
/* TEXT */
|
|
240
|
+
)
|
|
241
|
+
])) : createCommentVNode("v-if", true)
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
/* STABLE */
|
|
245
|
+
}, 8, ["table-columns", "filter-model", "filter-columns", "search-arr"])
|
|
246
|
+
]);
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { useTemplateRef, ref, nextTick, openBlock, createBlock, unref, isRef, withCtx, createElementVNode, createVNode, createElementBlock, Fragment, renderList, withModifiers, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
2
|
+
import { ElMessage, ElTabs, ElTabPane, ElDivider } from 'element-plus';
|
|
3
|
+
import { assignedApi } from '../../../../api/rule.mjs';
|
|
4
|
+
import '../../../../hooks/index.mjs';
|
|
5
|
+
import '../../../../components/index.mjs';
|
|
6
|
+
import { useAppTable } from '../../../../components/hyTable/js/useAppTable.mjs';
|
|
7
|
+
import { $t } from '../../../../hooks/useLocale.mjs';
|
|
8
|
+
import { useMixins } from '../../../../hooks/useMixins.mjs';
|
|
9
|
+
import { useDialog } from '../../../../hooks/useDialog.mjs';
|
|
10
|
+
import { HyDialog } from '../../../../components/hyDialog/index.mjs';
|
|
11
|
+
import { HyTable } from '../../../../components/hyTable/index.mjs';
|
|
12
|
+
import { HyButton } from '../../../../components/hyButton/index.mjs';
|
|
13
|
+
import { HyTooltip } from '../../../../components/hyTooltip/index.mjs';
|
|
14
|
+
|
|
15
|
+
const _sfc_main = {
|
|
16
|
+
__name: "ruleAssignDialog",
|
|
17
|
+
props: {
|
|
18
|
+
ifDraggable: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: false
|
|
21
|
+
},
|
|
22
|
+
ifShrink: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(__props, { expose: __expose }) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const useRuleAssignDialog = (hy) => {
|
|
30
|
+
const HyDialogRef = useTemplateRef("HyDialogRef");
|
|
31
|
+
const tableRef2 = useTemplateRef("tableRef");
|
|
32
|
+
const dialogVisible2 = ref(false);
|
|
33
|
+
const { tableColumns: tableColumns2, filterModel: filterModel2, filterColumns: filterColumns2 } = useAppTable({
|
|
34
|
+
columns: [
|
|
35
|
+
{
|
|
36
|
+
type: "selection"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
prop: "name",
|
|
40
|
+
label: "\u7528\u6237",
|
|
41
|
+
isSearch: true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
prop: "orgName",
|
|
45
|
+
label: $t("bussiness.department")
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
prop: "IMEI",
|
|
49
|
+
label: "IMEI",
|
|
50
|
+
slot: "imeiList",
|
|
51
|
+
width: 300
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
prop: "operator",
|
|
55
|
+
label: $t("table.operation"),
|
|
56
|
+
slot: "operator",
|
|
57
|
+
fixed: "right",
|
|
58
|
+
width: 140
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
filterColumns: [],
|
|
62
|
+
filterModel: {
|
|
63
|
+
ruleId: null,
|
|
64
|
+
assigned: "1"
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
const searchArr2 = ref([{ label: "\u7528\u6237\u540D\u79F0" }, { label: "\u8D26\u53F7" }, { label: "\u5DE5\u53F7" }]);
|
|
68
|
+
const assignStatusList2 = ref([
|
|
69
|
+
{
|
|
70
|
+
label: "\u672A\u5206\u914D",
|
|
71
|
+
value: "1"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: "\u5DF2\u5206\u914D",
|
|
75
|
+
value: "2"
|
|
76
|
+
}
|
|
77
|
+
]);
|
|
78
|
+
const titleBasicInfoList2 = ref([]);
|
|
79
|
+
async function show2(data) {
|
|
80
|
+
hy.setDragLevelIndex("HyDialogRef");
|
|
81
|
+
dialogVisible2.value = true;
|
|
82
|
+
hy.filterModel.value.ruleId = data.id;
|
|
83
|
+
hy.filterModel.value.assigned = "1";
|
|
84
|
+
hy.titleBasicInfoList.value = [
|
|
85
|
+
{ label: "\u89C4\u5219\u540D\u79F0", value: data.ruleName },
|
|
86
|
+
{ label: "\u89C4\u5219ID", value: data.id }
|
|
87
|
+
];
|
|
88
|
+
hy.resetFn();
|
|
89
|
+
hy.clearSelectedList();
|
|
90
|
+
}
|
|
91
|
+
function onTabsChange2() {
|
|
92
|
+
hy.getData(1);
|
|
93
|
+
hy.clearSelectedList();
|
|
94
|
+
}
|
|
95
|
+
function assignDevice2(row, type) {
|
|
96
|
+
assignedApi({
|
|
97
|
+
deviceUserIdList: [row.deviceUserId],
|
|
98
|
+
type,
|
|
99
|
+
ruleId: hy.filterModel.value.ruleId
|
|
100
|
+
}).then((_) => {
|
|
101
|
+
hy.getData();
|
|
102
|
+
ElMessage.success($t("bussiness.operationSuccessful"));
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function assignedBatch2(type) {
|
|
106
|
+
const selectList = hy.tableRef.value.getSelectedList();
|
|
107
|
+
if (!selectList.length) {
|
|
108
|
+
ElMessage.error($t("ruleSetting.pleaseSelectTheUser"));
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
const deviceUserIdList = selectList.map((item) => item.deviceUserId);
|
|
112
|
+
assignedApi({
|
|
113
|
+
deviceUserIdList,
|
|
114
|
+
type,
|
|
115
|
+
ruleId: hy.filterModel.value.ruleId
|
|
116
|
+
}).then((_) => {
|
|
117
|
+
hy.getData();
|
|
118
|
+
ElMessage.success($t("bussiness.operationSuccessful"));
|
|
119
|
+
hy.tableRef.value.clearSelectedList();
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
async function getData(page) {
|
|
123
|
+
await nextTick();
|
|
124
|
+
hy.tableRef.value.getData(page);
|
|
125
|
+
}
|
|
126
|
+
async function resetFn() {
|
|
127
|
+
await nextTick();
|
|
128
|
+
hy.tableRef.value.resetFn();
|
|
129
|
+
}
|
|
130
|
+
async function clearSelectedList() {
|
|
131
|
+
await nextTick();
|
|
132
|
+
hy.tableRef.value.clearSelectedList();
|
|
133
|
+
}
|
|
134
|
+
return {
|
|
135
|
+
HyDialogRef,
|
|
136
|
+
tableRef: tableRef2,
|
|
137
|
+
dialogVisible: dialogVisible2,
|
|
138
|
+
tableColumns: tableColumns2,
|
|
139
|
+
filterModel: filterModel2,
|
|
140
|
+
filterColumns: filterColumns2,
|
|
141
|
+
searchArr: searchArr2,
|
|
142
|
+
assignStatusList: assignStatusList2,
|
|
143
|
+
titleBasicInfoList: titleBasicInfoList2,
|
|
144
|
+
show: show2,
|
|
145
|
+
onTabsChange: onTabsChange2,
|
|
146
|
+
assignDevice: assignDevice2,
|
|
147
|
+
assignedBatch: assignedBatch2,
|
|
148
|
+
getData,
|
|
149
|
+
resetFn,
|
|
150
|
+
clearSelectedList
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
const {
|
|
154
|
+
onMinimized,
|
|
155
|
+
setDragLevelIndex,
|
|
156
|
+
tableRef,
|
|
157
|
+
dialogVisible,
|
|
158
|
+
tableColumns,
|
|
159
|
+
filterModel,
|
|
160
|
+
filterColumns,
|
|
161
|
+
searchArr,
|
|
162
|
+
assignStatusList,
|
|
163
|
+
titleBasicInfoList,
|
|
164
|
+
show,
|
|
165
|
+
onTabsChange,
|
|
166
|
+
assignDevice,
|
|
167
|
+
assignedBatch
|
|
168
|
+
} = useMixins({}, [useDialog, useRuleAssignDialog]);
|
|
169
|
+
__expose({
|
|
170
|
+
show,
|
|
171
|
+
setDragLevelIndex
|
|
172
|
+
});
|
|
173
|
+
return (_ctx, _cache) => {
|
|
174
|
+
return openBlock(), createBlock(unref(HyDialog), {
|
|
175
|
+
ref: "HyDialogRef",
|
|
176
|
+
modelValue: unref(dialogVisible),
|
|
177
|
+
"onUpdate:modelValue": ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : null,
|
|
178
|
+
title: unref($t)("ruleSetting.assignRules"),
|
|
179
|
+
"title-basic-info-list": unref(titleBasicInfoList),
|
|
180
|
+
width: "920",
|
|
181
|
+
"dialog-type": "right",
|
|
182
|
+
"show-operate": false,
|
|
183
|
+
"if-draggable": __props.ifDraggable,
|
|
184
|
+
"if-shrink": __props.ifShrink,
|
|
185
|
+
onOnMinimized: unref(onMinimized),
|
|
186
|
+
onOnDialogMousedown: ($event) => unref(setDragLevelIndex)("HyDialogRef")
|
|
187
|
+
}, {
|
|
188
|
+
default: withCtx(() => [
|
|
189
|
+
createElementVNode("div", { class: "h-full flex flex-col" }, [
|
|
190
|
+
createVNode(unref(ElTabs), {
|
|
191
|
+
modelValue: unref(filterModel).assigned,
|
|
192
|
+
"onUpdate:modelValue": ($event) => unref(filterModel).assigned = $event,
|
|
193
|
+
class: "mb-4",
|
|
194
|
+
onTabChange: unref(onTabsChange)
|
|
195
|
+
}, {
|
|
196
|
+
default: withCtx(() => [
|
|
197
|
+
(openBlock(true), createElementBlock(
|
|
198
|
+
Fragment,
|
|
199
|
+
null,
|
|
200
|
+
renderList(unref(assignStatusList), (item) => {
|
|
201
|
+
return openBlock(), createBlock(unref(ElTabPane), {
|
|
202
|
+
key: item.value,
|
|
203
|
+
label: item.label,
|
|
204
|
+
name: item.value
|
|
205
|
+
}, null, 8, ["label", "name"]);
|
|
206
|
+
}),
|
|
207
|
+
128
|
|
208
|
+
/* KEYED_FRAGMENT */
|
|
209
|
+
))
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
/* STABLE */
|
|
213
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "onTabChange"]),
|
|
214
|
+
createVNode(unref(HyTable), {
|
|
215
|
+
ref_key: "tableRef",
|
|
216
|
+
ref: tableRef,
|
|
217
|
+
controller: "rule/assign",
|
|
218
|
+
"row-key": "deviceUserId",
|
|
219
|
+
"table-columns": unref(tableColumns),
|
|
220
|
+
"filter-model": unref(filterModel),
|
|
221
|
+
"filter-columns": unref(filterColumns),
|
|
222
|
+
"search-arr": unref(searchArr),
|
|
223
|
+
"show-editable": false,
|
|
224
|
+
"default-get-data": false,
|
|
225
|
+
"pager-count": 5,
|
|
226
|
+
class: "h-0 flex-1"
|
|
227
|
+
}, {
|
|
228
|
+
"operator-left-box": withCtx(() => [
|
|
229
|
+
unref(filterModel).assigned === "1" ? (openBlock(), createBlock(unref(HyButton), {
|
|
230
|
+
key: 0,
|
|
231
|
+
type: "success",
|
|
232
|
+
"svg-name": "ops-button-icon-batch-2",
|
|
233
|
+
onClick: ($event) => unref(assignedBatch)(1)
|
|
234
|
+
}, {
|
|
235
|
+
default: withCtx(() => [
|
|
236
|
+
createTextVNode("\u6279\u91CF\u5206\u914D\u89C4\u5219")
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
/* STABLE */
|
|
240
|
+
}, 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
241
|
+
unref(filterModel).assigned === "2" ? (openBlock(), createBlock(unref(HyButton), {
|
|
242
|
+
key: 1,
|
|
243
|
+
type: "danger",
|
|
244
|
+
"svg-name": "ops-button-icon-batch-2",
|
|
245
|
+
onClick: ($event) => unref(assignedBatch)(2)
|
|
246
|
+
}, {
|
|
247
|
+
default: withCtx(() => [
|
|
248
|
+
createTextVNode("\u6279\u91CF\u89E3\u9664\u5206\u914D")
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
/* STABLE */
|
|
252
|
+
}, 8, ["onClick"])) : createCommentVNode("v-if", true)
|
|
253
|
+
]),
|
|
254
|
+
imeiList: withCtx(({ row }) => [
|
|
255
|
+
row.deviceList && row.deviceList.length ? (openBlock(), createElementBlock("div", {
|
|
256
|
+
key: 0,
|
|
257
|
+
class: "w-full"
|
|
258
|
+
}, [
|
|
259
|
+
createElementVNode("div", { class: "w-full flex items-center" }, [
|
|
260
|
+
createElementVNode("span", { class: "whitespace-nowrap text-auxiliary" }, "\u8BBE\u5907\u540D\u79F0\uFF1A"),
|
|
261
|
+
row.deviceList && row.deviceList[0] && row.deviceList[0].devName ? (openBlock(), createBlock(unref(HyTooltip), {
|
|
262
|
+
key: 0,
|
|
263
|
+
"is-always": false,
|
|
264
|
+
content: row.deviceList[0].devName
|
|
265
|
+
}, null, 8, ["content"])) : (openBlock(), createElementBlock("span", {
|
|
266
|
+
key: 1,
|
|
267
|
+
class: "text-auxiliary"
|
|
268
|
+
}, "- -"))
|
|
269
|
+
]),
|
|
270
|
+
createElementVNode("div", { class: "w-full flex items-center" }, [
|
|
271
|
+
createElementVNode("span", { class: "whitespace-nowrap text-auxiliary" }, "IMEI\uFF1A"),
|
|
272
|
+
row.deviceList && row.deviceList[0] && row.deviceList[0].imei ? (openBlock(), createBlock(unref(HyTooltip), {
|
|
273
|
+
key: 0,
|
|
274
|
+
"is-always": false,
|
|
275
|
+
content: row.deviceList[0].imei
|
|
276
|
+
}, null, 8, ["content"])) : (openBlock(), createElementBlock("span", {
|
|
277
|
+
key: 1,
|
|
278
|
+
class: "text-auxiliary"
|
|
279
|
+
}, "- -")),
|
|
280
|
+
createVNode(
|
|
281
|
+
unref(HyTooltip),
|
|
282
|
+
{ "popper-class": "px-0" },
|
|
283
|
+
{
|
|
284
|
+
content: withCtx(() => [
|
|
285
|
+
(openBlock(true), createElementBlock(
|
|
286
|
+
Fragment,
|
|
287
|
+
null,
|
|
288
|
+
renderList(row.deviceList, (item, index) => {
|
|
289
|
+
return openBlock(), createElementBlock(
|
|
290
|
+
Fragment,
|
|
291
|
+
{ key: index },
|
|
292
|
+
[
|
|
293
|
+
index !== 0 ? (openBlock(), createBlock(unref(ElDivider), {
|
|
294
|
+
key: 0,
|
|
295
|
+
class: "border-t-border my-1"
|
|
296
|
+
})) : createCommentVNode("v-if", true),
|
|
297
|
+
createElementVNode("div", { class: "flex items-center px-2" }, [
|
|
298
|
+
createElementVNode("span", { class: "whitespace-nowrap text-auxiliary" }, "\u8BBE\u5907\u540D\u79F0\uFF1A"),
|
|
299
|
+
item.devName ? (openBlock(), createElementBlock(
|
|
300
|
+
"span",
|
|
301
|
+
{ key: 0 },
|
|
302
|
+
toDisplayString(item.devName),
|
|
303
|
+
1
|
|
304
|
+
/* TEXT */
|
|
305
|
+
)) : (openBlock(), createElementBlock("span", {
|
|
306
|
+
key: 1,
|
|
307
|
+
class: "text-auxiliary"
|
|
308
|
+
}, "- -"))
|
|
309
|
+
]),
|
|
310
|
+
createElementVNode("div", { class: "w-full flex items-center px-2" }, [
|
|
311
|
+
createElementVNode("span", { class: "whitespace-nowrap text-auxiliary" }, "IMEI\uFF1A"),
|
|
312
|
+
item.imei ? (openBlock(), createElementBlock(
|
|
313
|
+
"span",
|
|
314
|
+
{ key: 0 },
|
|
315
|
+
toDisplayString(item.imei),
|
|
316
|
+
1
|
|
317
|
+
/* TEXT */
|
|
318
|
+
)) : (openBlock(), createElementBlock("span", {
|
|
319
|
+
key: 1,
|
|
320
|
+
class: "text-auxiliary"
|
|
321
|
+
}, "- -"))
|
|
322
|
+
])
|
|
323
|
+
],
|
|
324
|
+
64
|
|
325
|
+
/* STABLE_FRAGMENT */
|
|
326
|
+
);
|
|
327
|
+
}),
|
|
328
|
+
128
|
|
329
|
+
/* KEYED_FRAGMENT */
|
|
330
|
+
))
|
|
331
|
+
]),
|
|
332
|
+
default: withCtx(() => [
|
|
333
|
+
createElementVNode(
|
|
334
|
+
"span",
|
|
335
|
+
{ class: "text-theme whitespace-nowrap ml-1" },
|
|
336
|
+
"\uFF08" + toDisplayString(row.deviceList && row.deviceList.length) + "\u53F0\uFF09",
|
|
337
|
+
1
|
|
338
|
+
/* TEXT */
|
|
339
|
+
)
|
|
340
|
+
]),
|
|
341
|
+
_: 2
|
|
342
|
+
/* DYNAMIC */
|
|
343
|
+
},
|
|
344
|
+
1024
|
|
345
|
+
/* DYNAMIC_SLOTS */
|
|
346
|
+
)
|
|
347
|
+
])
|
|
348
|
+
])) : (openBlock(), createElementBlock("span", {
|
|
349
|
+
key: 1,
|
|
350
|
+
class: "text-auxiliary"
|
|
351
|
+
}, "- -"))
|
|
352
|
+
]),
|
|
353
|
+
operator: withCtx(({ row }) => [
|
|
354
|
+
unref(filterModel).assigned === "1" ? (openBlock(), createBlock(unref(HyButton), {
|
|
355
|
+
key: 0,
|
|
356
|
+
type: "default",
|
|
357
|
+
class: "w-full",
|
|
358
|
+
onClick: withModifiers(($event) => unref(assignDevice)(row, "1"), ["stop"])
|
|
359
|
+
}, {
|
|
360
|
+
default: withCtx(() => [
|
|
361
|
+
createTextVNode(
|
|
362
|
+
toDisplayString(unref($t)("ruleSetting.assignRules")),
|
|
363
|
+
1
|
|
364
|
+
/* TEXT */
|
|
365
|
+
)
|
|
366
|
+
]),
|
|
367
|
+
_: 1
|
|
368
|
+
/* STABLE */
|
|
369
|
+
}, 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
370
|
+
unref(filterModel).assigned === "2" ? (openBlock(), createBlock(unref(HyButton), {
|
|
371
|
+
key: 1,
|
|
372
|
+
type: "danger",
|
|
373
|
+
class: "w-full",
|
|
374
|
+
onClick: withModifiers(($event) => unref(assignDevice)(row, "2"), ["stop"])
|
|
375
|
+
}, {
|
|
376
|
+
default: withCtx(() => [
|
|
377
|
+
createTextVNode("\u89E3\u9664\u5206\u914D")
|
|
378
|
+
]),
|
|
379
|
+
_: 1
|
|
380
|
+
/* STABLE */
|
|
381
|
+
}, 8, ["onClick"])) : createCommentVNode("v-if", true)
|
|
382
|
+
]),
|
|
383
|
+
_: 1
|
|
384
|
+
/* STABLE */
|
|
385
|
+
}, 8, ["table-columns", "filter-model", "filter-columns", "search-arr"])
|
|
386
|
+
])
|
|
387
|
+
]),
|
|
388
|
+
_: 1
|
|
389
|
+
/* STABLE */
|
|
390
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "title", "title-basic-info-list", "if-draggable", "if-shrink", "onOnMinimized", "onOnDialogMousedown"]);
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
export { _sfc_main as default };
|