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,364 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var elementPlus = require('element-plus');
|
|
7
|
+
var index = require('../../../../api/index.js');
|
|
8
|
+
var rule = require('../../../../api/rule.js');
|
|
9
|
+
require('../../../../hooks/index.js');
|
|
10
|
+
require('../../../../components/index.js');
|
|
11
|
+
var index$1 = require('../../../../components/hyConfirmDialog/index.js');
|
|
12
|
+
var useMixins = require('../../../../hooks/useMixins.js');
|
|
13
|
+
var useDialog = require('../../../../hooks/useDialog.js');
|
|
14
|
+
var index$2 = require('../../../../components/hyDialog/index.js');
|
|
15
|
+
var index$3 = require('../../../../components/hyButton/index.js');
|
|
16
|
+
var index$4 = require('../../../../components/hyInput/index.js');
|
|
17
|
+
var useLocale = require('../../../../hooks/useLocale.js');
|
|
18
|
+
var index$5 = require('../../../../components/hyIconBox/index.js');
|
|
19
|
+
|
|
20
|
+
const _sfc_main = {
|
|
21
|
+
__name: "setRuleAggregationAlarmDialog",
|
|
22
|
+
props: {
|
|
23
|
+
ifDraggable: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
ifShrink: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
setup(__props, { expose: __expose }) {
|
|
33
|
+
const props = __props;
|
|
34
|
+
const useSetRuleAggregationAlarmDialog = (hy) => {
|
|
35
|
+
const HyDialogRef2 = vue.useTemplateRef("HyDialogRef");
|
|
36
|
+
const dialogVisible2 = vue.ref(false);
|
|
37
|
+
const loading2 = vue.ref(false);
|
|
38
|
+
const tableData2 = vue.ref([]);
|
|
39
|
+
async function show2() {
|
|
40
|
+
if (hy.loading.value) {
|
|
41
|
+
elementPlus.ElMessage.error("\u6570\u636E\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u70B9\u51FB");
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
await hy.watchPause();
|
|
45
|
+
hy.loading.value = true;
|
|
46
|
+
hy.tableData.value = [];
|
|
47
|
+
await hy.getData();
|
|
48
|
+
hy.dialogVisible.value = true;
|
|
49
|
+
hy.loading.value = false;
|
|
50
|
+
hy.watchResume();
|
|
51
|
+
}
|
|
52
|
+
async function onSubmit2() {
|
|
53
|
+
const isValidate = hy.checkData();
|
|
54
|
+
if (!isValidate) {
|
|
55
|
+
elementPlus.ElMessage.warning(`\u8BF7\u68C0\u67E5\u8F93\u5165\u7684\u6570\u636E`);
|
|
56
|
+
return Promise.reject();
|
|
57
|
+
}
|
|
58
|
+
const form = {
|
|
59
|
+
gatherRuleDictList: hy.tableData.value.map((v) => ({
|
|
60
|
+
gatherMin: v.gatherMin,
|
|
61
|
+
gatherMax: v.gatherMax,
|
|
62
|
+
gatherColor: v.gatherColor
|
|
63
|
+
}))
|
|
64
|
+
};
|
|
65
|
+
const res = await rule.ruleDictSaveApi(form);
|
|
66
|
+
if (res.code === 200) {
|
|
67
|
+
elementPlus.ElMessage.success("\u4FDD\u5B58\u6210\u529F");
|
|
68
|
+
} else {
|
|
69
|
+
elementPlus.ElMessage.error(res.msg);
|
|
70
|
+
return Promise.reject();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const getData2 = async () => {
|
|
74
|
+
try {
|
|
75
|
+
const res = await index.findAllApi("rule/ruleDict");
|
|
76
|
+
if (res.code === 200) {
|
|
77
|
+
hy.tableData.value = res.data ? res.data.map((v) => ({
|
|
78
|
+
...hy.createEmptyRow(),
|
|
79
|
+
gatherMin: v.gatherMin,
|
|
80
|
+
gatherMax: v.gatherMax,
|
|
81
|
+
gatherColor: v.gatherColor
|
|
82
|
+
})) : [];
|
|
83
|
+
}
|
|
84
|
+
} catch (err) {
|
|
85
|
+
hy.tableData.value = [];
|
|
86
|
+
console.error(err);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const createEmptyRow2 = () => {
|
|
90
|
+
return {
|
|
91
|
+
gatherMin: "",
|
|
92
|
+
gatherMax: "",
|
|
93
|
+
gatherColor: "",
|
|
94
|
+
isNoData: false,
|
|
95
|
+
isNoColor: false,
|
|
96
|
+
isNumber: false,
|
|
97
|
+
isCompare: false,
|
|
98
|
+
isOverlap: false,
|
|
99
|
+
isColor: false
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
function enterTheMumber2(data, key) {
|
|
103
|
+
data[key] = data[key].replace(/[^\d]/g, "");
|
|
104
|
+
}
|
|
105
|
+
const setNormalData2 = () => {
|
|
106
|
+
index$1.HyConfirmDialog.confirm({
|
|
107
|
+
content: `<div><p>\u786E\u5B9A\u4F7F\u7528\u7CFB\u7EDF\u9ED8\u8BA4\u8BBE\u7F6E\uFF1F</p></div>`,
|
|
108
|
+
onSubmit: () => {
|
|
109
|
+
hy.tableData.value = [
|
|
110
|
+
{
|
|
111
|
+
...hy.createEmptyRow(),
|
|
112
|
+
gatherMin: "3",
|
|
113
|
+
gatherMax: "3",
|
|
114
|
+
gatherColor: "#ffff00"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
...hy.createEmptyRow(),
|
|
118
|
+
gatherMin: "4",
|
|
119
|
+
gatherMax: "6",
|
|
120
|
+
gatherColor: "#ffa500"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
...hy.createEmptyRow(),
|
|
124
|
+
gatherMin: "7",
|
|
125
|
+
gatherMax: "9999",
|
|
126
|
+
gatherColor: "#ff0000"
|
|
127
|
+
}
|
|
128
|
+
];
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
const addData2 = () => {
|
|
133
|
+
if (hy.tableData.value.length === 5) {
|
|
134
|
+
return elementPlus.ElMessage.warning(`\u6700\u591A\u53EA\u80FD\u8BBE\u7F6E5\u4E2A\u7B49\u7EA7`);
|
|
135
|
+
}
|
|
136
|
+
hy.tableData.value.push(hy.createEmptyRow());
|
|
137
|
+
};
|
|
138
|
+
const deleteFn2 = (index) => {
|
|
139
|
+
hy.tableData.value.splice(index, 1);
|
|
140
|
+
};
|
|
141
|
+
const checkData2 = () => {
|
|
142
|
+
let isValidate = true;
|
|
143
|
+
hy.tableData.value.forEach((v, index) => {
|
|
144
|
+
const gatherMin = parseInt(v.gatherMin);
|
|
145
|
+
const gatherMax = parseInt(v.gatherMax);
|
|
146
|
+
if (v.gatherMin === "" || v.gatherMax === "") {
|
|
147
|
+
hy.tableData.value[index].isNoData = true;
|
|
148
|
+
isValidate = false;
|
|
149
|
+
} else {
|
|
150
|
+
hy.tableData.value[index].isNoData = false;
|
|
151
|
+
}
|
|
152
|
+
if (!v.gatherColor) {
|
|
153
|
+
hy.tableData.value[index].isNoColor = true;
|
|
154
|
+
isValidate = false;
|
|
155
|
+
} else {
|
|
156
|
+
hy.tableData.value[index].isNoColor = false;
|
|
157
|
+
}
|
|
158
|
+
if (gatherMin > 9999 || gatherMax > 9999) {
|
|
159
|
+
hy.tableData.value[index].isNumber = true;
|
|
160
|
+
isValidate = false;
|
|
161
|
+
} else {
|
|
162
|
+
hy.tableData.value[index].isNumber = false;
|
|
163
|
+
}
|
|
164
|
+
if (gatherMin > gatherMax) {
|
|
165
|
+
hy.tableData.value[index].isCompare = true;
|
|
166
|
+
isValidate = false;
|
|
167
|
+
} else {
|
|
168
|
+
hy.tableData.value[index].isCompare = false;
|
|
169
|
+
}
|
|
170
|
+
const isOverlap = hy.tableData.value.every((item, vIndex) => {
|
|
171
|
+
if (vIndex === index) return true;
|
|
172
|
+
return hy.checkOverlap(
|
|
173
|
+
{ gatherMin, gatherMax },
|
|
174
|
+
{
|
|
175
|
+
gatherMin: parseInt(item.gatherMin),
|
|
176
|
+
gatherMax: parseInt(item.gatherMax)
|
|
177
|
+
}
|
|
178
|
+
);
|
|
179
|
+
});
|
|
180
|
+
if (!isOverlap) {
|
|
181
|
+
hy.tableData.value[index].isOverlap = true;
|
|
182
|
+
isValidate = false;
|
|
183
|
+
} else {
|
|
184
|
+
hy.tableData.value[index].isOverlap = false;
|
|
185
|
+
}
|
|
186
|
+
const isColor = hy.tableData.value.every((item, vIndex) => {
|
|
187
|
+
if (vIndex === index) return true;
|
|
188
|
+
return item.gatherColor !== v.gatherColor;
|
|
189
|
+
});
|
|
190
|
+
if (!isColor) {
|
|
191
|
+
hy.tableData.value[index].isColor = true;
|
|
192
|
+
isValidate = false;
|
|
193
|
+
} else {
|
|
194
|
+
hy.tableData.value[index].isColor = false;
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
return isValidate;
|
|
198
|
+
};
|
|
199
|
+
const checkOverlap2 = (range1, range2) => {
|
|
200
|
+
if (!Number.isInteger(range1.gatherMax) || !Number.isInteger(range1.gatherMin) || !Number.isInteger(range2.gatherMax) || !Number.isInteger(range2.gatherMin)) {
|
|
201
|
+
return true;
|
|
202
|
+
}
|
|
203
|
+
if (range1.gatherMax > range2.gatherMax && range1.gatherMin > range2.gatherMax) {
|
|
204
|
+
return true;
|
|
205
|
+
}
|
|
206
|
+
if (range2.gatherMax > range1.gatherMax && range2.gatherMin > range1.gatherMax) {
|
|
207
|
+
return true;
|
|
208
|
+
}
|
|
209
|
+
return false;
|
|
210
|
+
};
|
|
211
|
+
return {
|
|
212
|
+
HyDialogRef: HyDialogRef2,
|
|
213
|
+
dialogVisible: dialogVisible2,
|
|
214
|
+
loading: loading2,
|
|
215
|
+
tableData: tableData2,
|
|
216
|
+
show: show2,
|
|
217
|
+
onSubmit: onSubmit2,
|
|
218
|
+
getData: getData2,
|
|
219
|
+
createEmptyRow: createEmptyRow2,
|
|
220
|
+
enterTheMumber: enterTheMumber2,
|
|
221
|
+
setNormalData: setNormalData2,
|
|
222
|
+
addData: addData2,
|
|
223
|
+
deleteFn: deleteFn2,
|
|
224
|
+
checkData: checkData2,
|
|
225
|
+
checkOverlap: checkOverlap2
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
const {
|
|
229
|
+
onMinimized,
|
|
230
|
+
setDragLevelIndex,
|
|
231
|
+
HyDialogRef,
|
|
232
|
+
dialogVisible,
|
|
233
|
+
loading,
|
|
234
|
+
tableData,
|
|
235
|
+
show,
|
|
236
|
+
onSubmit,
|
|
237
|
+
getData,
|
|
238
|
+
createEmptyRow,
|
|
239
|
+
enterTheMumber,
|
|
240
|
+
setNormalData,
|
|
241
|
+
addData,
|
|
242
|
+
deleteFn,
|
|
243
|
+
checkData,
|
|
244
|
+
checkOverlap
|
|
245
|
+
} = useMixins.useMixins({}, [useDialog.useDialog, useDialog.useDialogIsEdit, useSetRuleAggregationAlarmDialog]);
|
|
246
|
+
__expose({
|
|
247
|
+
show,
|
|
248
|
+
setDragLevelIndex
|
|
249
|
+
});
|
|
250
|
+
return (_ctx, _cache) => {
|
|
251
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$2.HyDialog), {
|
|
252
|
+
ref_key: "HyDialogRef",
|
|
253
|
+
ref: HyDialogRef,
|
|
254
|
+
modelValue: vue.unref(dialogVisible),
|
|
255
|
+
"onUpdate:modelValue": ($event) => vue.isRef(dialogVisible) ? dialogVisible.value = $event : null,
|
|
256
|
+
loading: vue.unref(loading),
|
|
257
|
+
"onUpdate:loading": ($event) => vue.isRef(loading) ? loading.value = $event : null,
|
|
258
|
+
title: "\u544A\u8B66\u7B49\u7EA7\u8BBE\u7F6E",
|
|
259
|
+
width: "700",
|
|
260
|
+
"dialog-type": "default",
|
|
261
|
+
"show-operate": true,
|
|
262
|
+
"if-draggable": __props.ifDraggable,
|
|
263
|
+
"if-shrink": __props.ifShrink,
|
|
264
|
+
"on-submit": vue.unref(onSubmit),
|
|
265
|
+
onOnMinimized: vue.unref(onMinimized),
|
|
266
|
+
onOnDialogMousedown: ($event) => vue.unref(setDragLevelIndex)("HyDialogRef")
|
|
267
|
+
}, {
|
|
268
|
+
default: vue.withCtx(() => [
|
|
269
|
+
vue.createElementVNode("div", { class: "w-full" }, [
|
|
270
|
+
vue.createElementVNode("div", { class: "flex justify-end" }, [
|
|
271
|
+
vue.createVNode(vue.unref(index$3.HyButton), {
|
|
272
|
+
type: "default",
|
|
273
|
+
onClick: vue.unref(setNormalData)
|
|
274
|
+
}, {
|
|
275
|
+
default: vue.withCtx(() => [
|
|
276
|
+
vue.createTextVNode("\u4F7F\u7528\u7CFB\u7EDF\u9ED8\u8BA4\u8BBE\u7F6E")
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
/* STABLE */
|
|
280
|
+
}, 8, ["onClick"]),
|
|
281
|
+
vue.createVNode(vue.unref(index$3.HyButton), {
|
|
282
|
+
type: "success",
|
|
283
|
+
onClick: vue.unref(addData)
|
|
284
|
+
}, {
|
|
285
|
+
default: vue.withCtx(() => [
|
|
286
|
+
vue.createTextVNode("\u6DFB\u52A0\u544A\u8B66\u7B49\u7EA7")
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
/* STABLE */
|
|
290
|
+
}, 8, ["onClick"])
|
|
291
|
+
]),
|
|
292
|
+
vue.createElementVNode("div", { class: "min-h-40 flex flex-col gap-4 mt-4" }, [
|
|
293
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
294
|
+
vue.Fragment,
|
|
295
|
+
null,
|
|
296
|
+
vue.renderList(vue.unref(tableData), (data, index) => {
|
|
297
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
298
|
+
key: `tableData${index}`,
|
|
299
|
+
class: "w-full h-12 rounded bg-background-2 flex items-center box-border px-3 relative"
|
|
300
|
+
}, [
|
|
301
|
+
vue.createElementVNode("span", null, "\u544A\u8B66\u4EBA\u5458\u6570\u91CF\uFF1A"),
|
|
302
|
+
vue.createVNode(vue.unref(index$4.HyInput), {
|
|
303
|
+
modelValue: data.gatherMin,
|
|
304
|
+
"onUpdate:modelValue": ($event) => data.gatherMin = $event,
|
|
305
|
+
size: "small",
|
|
306
|
+
class: "w-[100px]",
|
|
307
|
+
placeholder: "\u6700\u5C11\u4EBA\u6570",
|
|
308
|
+
onInput: ($event) => vue.unref(enterTheMumber)(data, "gatherMin")
|
|
309
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"]),
|
|
310
|
+
vue.createElementVNode(
|
|
311
|
+
"span",
|
|
312
|
+
{ class: "mx-2" },
|
|
313
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("hy.to")),
|
|
314
|
+
1
|
|
315
|
+
/* TEXT */
|
|
316
|
+
),
|
|
317
|
+
vue.createVNode(vue.unref(index$4.HyInput), {
|
|
318
|
+
modelValue: data.gatherMax,
|
|
319
|
+
"onUpdate:modelValue": ($event) => data.gatherMax = $event,
|
|
320
|
+
size: "small",
|
|
321
|
+
class: "w-[100px]",
|
|
322
|
+
placeholder: "\u6700\u591A\u4EBA\u6570",
|
|
323
|
+
onInput: ($event) => vue.unref(enterTheMumber)(data, "gatherMax")
|
|
324
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"]),
|
|
325
|
+
vue.createElementVNode("span", { class: "ml-16" }, "\u544A\u8B66\u989C\u8272\uFF1A"),
|
|
326
|
+
vue.createVNode(vue.unref(elementPlus.ElColorPicker), {
|
|
327
|
+
modelValue: data.gatherColor,
|
|
328
|
+
"onUpdate:modelValue": ($event) => data.gatherColor = $event,
|
|
329
|
+
"color-format": "hex",
|
|
330
|
+
size: "small",
|
|
331
|
+
predefine: ["#008c00", "#1900ff", "#feff00", "#ffb000", "#ff1100"]
|
|
332
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
333
|
+
vue.createVNode(vue.unref(index$5.HyIconBox), {
|
|
334
|
+
"alt-text": vue.unref(useLocale.$t)("bussiness.delete"),
|
|
335
|
+
"svg-name": "ops-linear-delete",
|
|
336
|
+
"class-name": "!text-danger-2 !bg-background",
|
|
337
|
+
class: "ml-auto",
|
|
338
|
+
onClick: ($event) => vue.unref(deleteFn)(index)
|
|
339
|
+
}, null, 8, ["alt-text", "onClick"]),
|
|
340
|
+
vue.createElementVNode("div", { class: "absolute w-full left-0 -bottom-4 flex text-dangerv2 truncate" }, [
|
|
341
|
+
data.isNoData ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, "\u8BF7\u8F93\u5165\u5B8C\u6574\u6570\u636E")) : data.isNumber ? (vue.openBlock(), vue.createElementBlock("span", { key: 1 }, "\u8BF7\u8F93\u5165 0-9999 \u6B63\u786E\u4EBA\u5458\u6570\u91CF")) : data.isNoColor ? (vue.openBlock(), vue.createElementBlock("span", { key: 2 }, "\u8BF7\u9009\u62E9\u544A\u8B66\u989C\u8272")) : data.isCompare ? (vue.openBlock(), vue.createElementBlock("span", { key: 3 }, "\u5DE6\u8FB9\u8F93\u5165\u6846\u6570\u5B57\u5927\u5C0F\u5E94\u8BE5\u5C0F\u4E8E\u6216\u7B49\u4E8E\u53F3\u8FB9")) : data.isOverlap ? (vue.openBlock(), vue.createElementBlock("span", { key: 4 }, "\u4E0E\u5176\u4ED6\u8BBE\u7F6E\u9879\u4EBA\u6570\u6570\u91CF\u91CD\u53E0")) : data.isColor ? (vue.openBlock(), vue.createElementBlock("span", { key: 5 }, "\u6B64\u544A\u8B66\u989C\u8272\u5DF2\u88AB\u4F7F\u7528\uFF0C\u8BF7\u9009\u62E9\u65B0\u7684\u544A\u8B66\u989C\u8272")) : vue.createCommentVNode("v-if", true)
|
|
342
|
+
])
|
|
343
|
+
]);
|
|
344
|
+
}),
|
|
345
|
+
128
|
|
346
|
+
/* KEYED_FRAGMENT */
|
|
347
|
+
)),
|
|
348
|
+
!vue.unref(tableData).length ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
349
|
+
key: 0,
|
|
350
|
+
class: "w-full h-0 flex-grow flex flex-col justify-center items-center"
|
|
351
|
+
}, [
|
|
352
|
+
vue.createElementVNode("span", { class: "text-auxiliary text-base" }, "\u6682\u65E0\u7B49\u7EA7\u8BBE\u7F6E")
|
|
353
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
354
|
+
])
|
|
355
|
+
])
|
|
356
|
+
]),
|
|
357
|
+
_: 1
|
|
358
|
+
/* STABLE */
|
|
359
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "loading", "onUpdate:loading", "if-draggable", "if-shrink", "on-submit", "onOnMinimized", "onOnDialogMousedown"]);
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var elementPlus = require('element-plus');
|
|
7
|
+
var index$1 = require('../../../../api/index.js');
|
|
8
|
+
require('../../../../hooks/index.js');
|
|
9
|
+
var ruleSetting = require('../../js/ruleSetting.js');
|
|
10
|
+
require('../../../../components/index.js');
|
|
11
|
+
var useAppTable = require('../../../../components/hyTable/js/useAppTable.js');
|
|
12
|
+
var useLocale = require('../../../../hooks/useLocale.js');
|
|
13
|
+
var index = require('../../../../components/hyConfirmDialog/index.js');
|
|
14
|
+
var useMixins = require('../../../../hooks/useMixins.js');
|
|
15
|
+
var index$2 = require('../../../../components/hyTable/index.js');
|
|
16
|
+
var index$3 = require('../../../../components/hyTableActionButton/index.js');
|
|
17
|
+
var index$4 = require('../../../../components/hyIcon/index.js');
|
|
18
|
+
|
|
19
|
+
const _sfc_main = {
|
|
20
|
+
__name: "timedVideo",
|
|
21
|
+
emits: ["on-add", "on-edit", "on-rule-assign"],
|
|
22
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
23
|
+
const emits = __emit;
|
|
24
|
+
const tableRef = vue.useTemplateRef("tableRef");
|
|
25
|
+
function useTimedVideo(hy) {
|
|
26
|
+
const { tableRef: tableRef2 } = hy;
|
|
27
|
+
const { tableColumns: tableColumns2, filterModel: filterModel2, filterColumns: filterColumns2 } = useAppTable.useAppTable({
|
|
28
|
+
columns: [
|
|
29
|
+
{
|
|
30
|
+
prop: "ruleName",
|
|
31
|
+
label: useLocale.$t("ruleSetting.ruleName"),
|
|
32
|
+
isSearch: true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
prop: "attendanceTime",
|
|
36
|
+
label: useLocale.$t("ruleSetting.workingHours"),
|
|
37
|
+
slot: "attendanceTime"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
type: "operator",
|
|
41
|
+
operator: [
|
|
42
|
+
{
|
|
43
|
+
label: useLocale.$t("ruleSetting.distribution"),
|
|
44
|
+
desc: useLocale.$t("ruleSetting.assignRules"),
|
|
45
|
+
svgName: "ops-linear-fen-pei",
|
|
46
|
+
handler: ({ row }) => {
|
|
47
|
+
hy.assingRules(row);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: useLocale.$t("bussiness.edit"),
|
|
52
|
+
desc: useLocale.$t("bussiness.edit"),
|
|
53
|
+
svgName: "ops-button-edit",
|
|
54
|
+
handler: ({ row }) => {
|
|
55
|
+
emits("on-edit", row);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
desc: useLocale.$t("bussiness.delete"),
|
|
60
|
+
label: useLocale.$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: 5
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
const searchArr2 = vue.ref([]);
|
|
76
|
+
function showAddRuleSettingDialog2(row) {
|
|
77
|
+
emits("on-add", row);
|
|
78
|
+
}
|
|
79
|
+
function assingRules(row) {
|
|
80
|
+
emits("on-rule-assign", row);
|
|
81
|
+
}
|
|
82
|
+
function deleteShow(data) {
|
|
83
|
+
index.HyConfirmDialog.danger({
|
|
84
|
+
title: "\u786E\u8BA4\u5220\u9664",
|
|
85
|
+
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>`,
|
|
86
|
+
onSubmit() {
|
|
87
|
+
return new Promise((resolve, reject) => {
|
|
88
|
+
index$1.deleteBatchApi("rule", data.id).then((res) => {
|
|
89
|
+
if (res.code === 200) {
|
|
90
|
+
elementPlus.ElMessage.success(useLocale.$t("bussiness.successfulDeletion"));
|
|
91
|
+
hy.getData();
|
|
92
|
+
resolve();
|
|
93
|
+
}
|
|
94
|
+
}).catch(() => {
|
|
95
|
+
reject();
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function getData2(page = null) {
|
|
102
|
+
tableRef2.value.getData(page);
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
// data
|
|
106
|
+
tableColumns: tableColumns2,
|
|
107
|
+
filterModel: filterModel2,
|
|
108
|
+
filterColumns: filterColumns2,
|
|
109
|
+
searchArr: searchArr2,
|
|
110
|
+
// methods
|
|
111
|
+
assingRules,
|
|
112
|
+
showAddRuleSettingDialog: showAddRuleSettingDialog2,
|
|
113
|
+
deleteShow,
|
|
114
|
+
getData: getData2
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
const { tableColumns, filterModel, filterColumns, searchArr, showAddRuleSettingDialog, getData } = useMixins.useMixins({ tableRef }, [useTimedVideo]);
|
|
118
|
+
__expose({
|
|
119
|
+
getData
|
|
120
|
+
});
|
|
121
|
+
return (_ctx, _cache) => {
|
|
122
|
+
return vue.openBlock(), vue.createElementBlock("div", { class: "w-full h-full" }, [
|
|
123
|
+
vue.createVNode(vue.unref(index$2.HyTable), {
|
|
124
|
+
ref_key: "tableRef",
|
|
125
|
+
ref: tableRef,
|
|
126
|
+
controller: "rule",
|
|
127
|
+
"table-columns": vue.unref(tableColumns),
|
|
128
|
+
"filter-model": vue.unref(filterModel),
|
|
129
|
+
"filter-columns": vue.unref(filterColumns),
|
|
130
|
+
"search-arr": vue.unref(searchArr),
|
|
131
|
+
"show-editable": false
|
|
132
|
+
}, {
|
|
133
|
+
"operator-left-box": vue.withCtx(() => [
|
|
134
|
+
vue.createVNode(vue.unref(index$3.HyTableActionButton), {
|
|
135
|
+
type: "success",
|
|
136
|
+
"svg-name": "ops-button-add",
|
|
137
|
+
label: "\u6DFB\u52A0",
|
|
138
|
+
"operate-list": [
|
|
139
|
+
{
|
|
140
|
+
children: [
|
|
141
|
+
{
|
|
142
|
+
label: "\u6DFB\u52A0\u5B9A\u65F6\u5F55\u50CF",
|
|
143
|
+
value: "showAddRuleSettingDialog",
|
|
144
|
+
altText: ``
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
onChange: ($event) => vue.unref(showAddRuleSettingDialog)({ type: vue.unref(filterModel).type })
|
|
150
|
+
}, null, 8, ["onChange"]),
|
|
151
|
+
vue.createVNode(vue.unref(elementPlus.ElPopover), {
|
|
152
|
+
placement: "bottom-start",
|
|
153
|
+
width: "200",
|
|
154
|
+
trigger: "hover"
|
|
155
|
+
}, {
|
|
156
|
+
reference: vue.withCtx(() => [
|
|
157
|
+
vue.createElementVNode("span", { class: "text-xs text-theme ml-2" }, [
|
|
158
|
+
vue.createVNode(vue.unref(index$4.HyIcon), {
|
|
159
|
+
"svg-name": "dispatch-share-v3-base-help",
|
|
160
|
+
class: "!w-3 !h-3 mr-1"
|
|
161
|
+
}),
|
|
162
|
+
vue.createElementVNode(
|
|
163
|
+
"span",
|
|
164
|
+
null,
|
|
165
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("hy.help")),
|
|
166
|
+
1
|
|
167
|
+
/* TEXT */
|
|
168
|
+
)
|
|
169
|
+
])
|
|
170
|
+
]),
|
|
171
|
+
default: vue.withCtx(() => [
|
|
172
|
+
vue.createElementVNode("div", { class: "p-[10px_20px] text-xs" }, [
|
|
173
|
+
vue.createElementVNode("div", { class: "mb-2 break-keep" }, "\u89C4\u5219\u4F7F\u7528\u8BF4\u660E\uFF1A"),
|
|
174
|
+
vue.createElementVNode("ul", null, [
|
|
175
|
+
vue.createElementVNode("li", { class: "flex mb_10" }, [
|
|
176
|
+
vue.createElementVNode("span", null, "1\u3001"),
|
|
177
|
+
vue.createElementVNode("span", null, "\u6DFB\u52A0\u89C4\u5219")
|
|
178
|
+
]),
|
|
179
|
+
vue.createElementVNode("li", { class: "flex mb_10" }, [
|
|
180
|
+
vue.createElementVNode("span", null, "2\u3001"),
|
|
181
|
+
vue.createElementVNode("span", null, "\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u7684\u89C4\u5219\u6761\u4EF6")
|
|
182
|
+
]),
|
|
183
|
+
vue.createElementVNode("li", { class: "flex mb_10" }, [
|
|
184
|
+
vue.createElementVNode("span", null, "3\u3001"),
|
|
185
|
+
vue.createElementVNode("span", null, "\u5E76\u628A\u9700\u8981\u6267\u884C\u6B64\u89C4\u5219\u7684\u4EBA\u5458\u6388\u6743\u7ED9\u5B83")
|
|
186
|
+
])
|
|
187
|
+
])
|
|
188
|
+
])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
/* STABLE */
|
|
192
|
+
})
|
|
193
|
+
]),
|
|
194
|
+
attendanceTime: vue.withCtx(({ row }) => [
|
|
195
|
+
row.ruleDateType === 1 || !row.ruleDateType ? (vue.openBlock(), vue.createElementBlock("div", { key: 0 }, [
|
|
196
|
+
vue.createTextVNode(
|
|
197
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("ruleSetting.everyDay")) + " ",
|
|
198
|
+
1
|
|
199
|
+
/* TEXT */
|
|
200
|
+
),
|
|
201
|
+
vue.createElementVNode(
|
|
202
|
+
"span",
|
|
203
|
+
{ class: "text-auxiliary text-xs" },
|
|
204
|
+
"(" + vue.toDisplayString(row.startDtm1) + "-" + vue.toDisplayString(row.endDtm1) + ")",
|
|
205
|
+
1
|
|
206
|
+
/* TEXT */
|
|
207
|
+
)
|
|
208
|
+
])) : row.ruleDateType === 2 ? (vue.openBlock(), vue.createElementBlock("div", { key: 1 }, [
|
|
209
|
+
vue.createTextVNode(
|
|
210
|
+
vue.toDisplayString(vue.unref(ruleSetting.weekDateFn)(row.weekDate)) + " ",
|
|
211
|
+
1
|
|
212
|
+
/* TEXT */
|
|
213
|
+
),
|
|
214
|
+
vue.createElementVNode(
|
|
215
|
+
"span",
|
|
216
|
+
{ class: "text-auxiliary text-xs" },
|
|
217
|
+
"(" + vue.toDisplayString(row.startDtm1) + "-" + vue.toDisplayString(row.endDtm1) + "})",
|
|
218
|
+
1
|
|
219
|
+
/* TEXT */
|
|
220
|
+
)
|
|
221
|
+
])) : row.ruleDateType === 4 ? (vue.openBlock(), vue.createElementBlock("div", { key: 2 }, [
|
|
222
|
+
vue.createTextVNode(
|
|
223
|
+
vue.toDisplayString(row.apStartDtm.split(" 00:00:00")[0]) + " ~ " + vue.toDisplayString(row.apEndDtm.split(" 00:00:00")[0]) + " ",
|
|
224
|
+
1
|
|
225
|
+
/* TEXT */
|
|
226
|
+
),
|
|
227
|
+
vue.createElementVNode(
|
|
228
|
+
"span",
|
|
229
|
+
{ class: "text-auxiliary text-xs" },
|
|
230
|
+
"(" + vue.toDisplayString(row.startDtm1) + "-" + vue.toDisplayString(row.endDtm1) + "})",
|
|
231
|
+
1
|
|
232
|
+
/* TEXT */
|
|
233
|
+
)
|
|
234
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
/* STABLE */
|
|
238
|
+
}, 8, ["table-columns", "filter-model", "filter-columns", "search-arr"])
|
|
239
|
+
]);
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
exports.default = _sfc_main;
|