bfg-common 1.4.731 → 1.4.732
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/assets/localization/local_be.json +1 -0
- package/assets/localization/local_en.json +1 -0
- package/assets/localization/local_hy.json +1 -0
- package/assets/localization/local_kk.json +1 -0
- package/assets/localization/local_ru.json +1 -0
- package/assets/localization/local_zh.json +1 -0
- package/assets/scss/common/normalize.scss +361 -361
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/modal/bySteps/BySteps.vue +253 -253
- package/components/atoms/select/TheSelect.vue +1 -10
- package/components/atoms/stack/StackBlock.vue +185 -185
- package/components/atoms/table/dataGrid/DataGrid.vue +1696 -1696
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +91 -91
- package/components/common/browse/BrowseNew.vue +237 -237
- package/components/common/browse/BrowseOld.vue +217 -217
- package/components/common/browse/blocks/contents/Files.vue +37 -37
- package/components/common/browse/blocks/contents/FilesOld.vue +72 -72
- package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +96 -96
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/{monitor/advanced/tools/chartOptionsModal → chartOptionsModal}/counters/timespan/form/Form.vue +544 -539
- package/components/common/{pages/hardwareHealth/historyTestimony/tools/chartOptionsModal → chartOptionsModal}/counters/timespan/form/lib/config/dateForm.ts +116 -115
- package/components/common/context/lib/models/interfaces.ts +30 -30
- package/components/common/context/recursion/Recursion.vue +86 -86
- package/components/common/context/recursion/RecursionOld.vue +213 -213
- package/components/common/layout/theHeader/helpMenu/About.vue +82 -82
- package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +103 -103
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +150 -150
- package/components/common/mainNavigationPanel/MainNavigationPanelOld.vue +300 -300
- package/components/common/modals/confirmByInput/ConfirmByInput.vue +206 -206
- package/components/common/modals/unsavedChanges/UnsavedChanges.vue +56 -56
- package/components/common/monitor/advanced/Advanced.vue +5 -0
- package/components/common/monitor/advanced/tools/Tools.vue +9 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +9 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +2 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +95 -93
- package/components/common/monitor/overview/filters/Filters.vue +3 -0
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +15 -5
- package/components/common/monitor/overview/filters/customIntervalModal/lib/config/dateChecker.ts +24 -14
- package/components/common/pages/hardwareHealth/HardwareHealth.vue +12 -5
- package/components/common/pages/hardwareHealth/historyTestimony/Graph.vue +456 -451
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +387 -380
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +13 -6
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/Counters.vue +94 -94
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/Timespan.vue +66 -66
- package/components/common/pages/home/StatusContent.vue +49 -49
- package/components/common/pages/home/headline/Headline.vue +44 -44
- package/components/common/pages/home/headline/HeadlineNew.vue +71 -71
- package/components/common/pages/home/lib/models/interfaces.ts +48 -48
- package/components/common/pages/home/widgets/Widgets.vue +49 -49
- package/components/common/pages/home/widgets/WidgetsNew.vue +86 -86
- package/components/common/pages/home/widgets/WidgetsOld.vue +34 -34
- package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
- package/components/common/pages/home/widgets/hosts/HostsNew.vue +100 -100
- package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
- package/components/common/pages/home/widgets/services/lib/config/config.ts +108 -108
- package/components/common/pages/home/widgets/vms/Vms.vue +26 -26
- package/components/common/pages/home/widgets/vms/VmsNew.vue +101 -101
- package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
- package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
- package/components/common/recursionTree/RecursionTree.vue +223 -223
- package/components/common/select/button/ButtonDropdown.vue +108 -108
- package/components/common/spiceConsole/Drawer.vue +370 -370
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/split/vertical/Vertical.vue +160 -160
- package/components/common/vm/actions/add/Add.vue +0 -2
- package/components/common/vm/actions/clone/Clone.vue +0 -2
- package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +0 -3
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +0 -2
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +0 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +1 -9
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +2 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +1 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +219 -219
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +117 -117
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +161 -161
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +165 -165
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +70 -70
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaOld.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +338 -338
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +4 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +220 -220
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +56 -56
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +281 -281
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +142 -184
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +5 -31
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +5 -31
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +35 -35
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +2 -9
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +48 -48
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/lib/config/options.ts +4 -11
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +104 -104
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +112 -112
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +102 -102
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordOld.vue +94 -94
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
- package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
- package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
- package/components/common/vm/actions/editSettings/EditSettings.vue +0 -3
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +0 -2
- package/components/common/vm/actions/editSettings/new/New.vue +0 -2
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/composables/productNameLocal.ts +30 -30
- package/composables/useAppVersion.ts +21 -21
- package/package.json +1 -1
- package/plugins/date.ts +233 -233
- package/plugins/recursion.ts +311 -311
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +383 -383
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
- package/store/tasks/mappers/recentTasks.ts +64 -64
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +0 -114
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/Form.vue +0 -539
package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue
CHANGED
|
@@ -1,93 +1,95 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="timespan-objects-section-direction">
|
|
3
|
-
<common-
|
|
4
|
-
:language="props.language"
|
|
5
|
-
:selected-chart-type="props.selectedChartType"
|
|
6
|
-
:selected-timespan-type="props.selectedTimespanType"
|
|
7
|
-
:units-count="props.unitsCount"
|
|
8
|
-
:period-type="props.periodType"
|
|
9
|
-
:selected-custom-time="props.selectedCustomTime"
|
|
10
|
-
:custom-date-from="props.customDateFrom"
|
|
11
|
-
:custom-date-to="props.customDateTo"
|
|
12
|
-
:custom-time-from="props.customTimeFrom"
|
|
13
|
-
:custom-time-to="props.customTimeTo"
|
|
14
|
-
|
|
15
|
-
@update-
|
|
16
|
-
@update-
|
|
17
|
-
@update-
|
|
18
|
-
@update-
|
|
19
|
-
@update-
|
|
20
|
-
@update-custom-date-
|
|
21
|
-
@update-custom-
|
|
22
|
-
@update-custom-time-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
:
|
|
27
|
-
:
|
|
28
|
-
:
|
|
29
|
-
:
|
|
30
|
-
:
|
|
31
|
-
:
|
|
32
|
-
:
|
|
33
|
-
:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
import type {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
(event: 'update-
|
|
73
|
-
(event: 'update-
|
|
74
|
-
(event: 'update-
|
|
75
|
-
(event: 'update-
|
|
76
|
-
(event: 'update-
|
|
77
|
-
(event: 'update-custom-
|
|
78
|
-
(event: 'update-custom-
|
|
79
|
-
(event: '
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="timespan-objects-section-direction">
|
|
3
|
+
<common-chart-options-modal-counters-timespan-form
|
|
4
|
+
:language="props.language"
|
|
5
|
+
:selected-chart-type="props.selectedChartType"
|
|
6
|
+
:selected-timespan-type="props.selectedTimespanType"
|
|
7
|
+
:units-count="props.unitsCount"
|
|
8
|
+
:period-type="props.periodType"
|
|
9
|
+
:selected-custom-time="props.selectedCustomTime"
|
|
10
|
+
:custom-date-from="props.customDateFrom"
|
|
11
|
+
:custom-date-to="props.customDateTo"
|
|
12
|
+
:custom-time-from="props.customTimeFrom"
|
|
13
|
+
:custom-time-to="props.customTimeTo"
|
|
14
|
+
:valid-date-end="props.validDateEnd"
|
|
15
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
16
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
17
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
18
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
19
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
20
|
+
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
21
|
+
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
22
|
+
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
23
|
+
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
24
|
+
/>
|
|
25
|
+
<common-monitor-advanced-tools-chart-options-modal-counters-timespan-object
|
|
26
|
+
:type="props.type"
|
|
27
|
+
:chart="props.chart"
|
|
28
|
+
:total-cores="props.totalCores"
|
|
29
|
+
:host-id="props.hostId"
|
|
30
|
+
:selected-metrics-keys="props.selectedMetricsKeys"
|
|
31
|
+
:total-metric-items="props.totalMetricItems"
|
|
32
|
+
:selected-objects="props.selectedObjects"
|
|
33
|
+
:loading="props.objectsLoading"
|
|
34
|
+
:current-items="props.objectsData"
|
|
35
|
+
@select-objects="emits('select-objects', $event)"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script setup lang="ts">
|
|
41
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
42
|
+
import type {
|
|
43
|
+
UI_T_ChartHost,
|
|
44
|
+
UI_T_ChartVm,
|
|
45
|
+
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
46
|
+
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
47
|
+
|
|
48
|
+
const props = defineProps<{
|
|
49
|
+
type: UI_T_AdvancedType
|
|
50
|
+
chart: UI_T_ChartHost | UI_T_ChartVm
|
|
51
|
+
language: string
|
|
52
|
+
selectedChartType: string
|
|
53
|
+
selectedTimespanType: string
|
|
54
|
+
unitsCount: number
|
|
55
|
+
periodType: string
|
|
56
|
+
selectedCustomTime: string
|
|
57
|
+
customDateFrom: string
|
|
58
|
+
customDateTo: string
|
|
59
|
+
customTimeFrom: string
|
|
60
|
+
customTimeTo: string
|
|
61
|
+
totalCores: number
|
|
62
|
+
hostId: string
|
|
63
|
+
selectedMetricsKeys: number[]
|
|
64
|
+
totalMetricItems: number
|
|
65
|
+
selectedObjects: string
|
|
66
|
+
objectsLoading: boolean
|
|
67
|
+
objectsData: UI_I_ObjectItem[]
|
|
68
|
+
validDateEnd: number
|
|
69
|
+
}>()
|
|
70
|
+
|
|
71
|
+
const emits = defineEmits<{
|
|
72
|
+
(event: 'update-chart-type', value: string): void
|
|
73
|
+
(event: 'update-custom-time', value: string): void
|
|
74
|
+
(event: 'update-timespan-type', value: string): void
|
|
75
|
+
(event: 'update-unit-count', value: number): void
|
|
76
|
+
(event: 'update-period-type', value: string): void
|
|
77
|
+
(event: 'update-custom-date-from', value: string): void
|
|
78
|
+
(event: 'update-custom-date-to', value: string): void
|
|
79
|
+
(event: 'update-custom-time-from', value: string): void
|
|
80
|
+
(event: 'update-custom-time-to', value: string): void
|
|
81
|
+
(event: 'select-objects', value: string): void
|
|
82
|
+
}>()
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<style scoped lang="scss">
|
|
86
|
+
.timespan-objects-section-direction {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: row;
|
|
89
|
+
}
|
|
90
|
+
@media (max-width: 1024px) {
|
|
91
|
+
.timespan-objects-section-direction {
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
</style>
|
|
@@ -51,10 +51,12 @@
|
|
|
51
51
|
</div>
|
|
52
52
|
|
|
53
53
|
<common-monitor-overview-filters-custom-interval-modal
|
|
54
|
+
v-if="props.validDateEnd"
|
|
54
55
|
v-show="isShowIntervalModal"
|
|
55
56
|
:selected-periods="props.selectedPeriods"
|
|
56
57
|
:format-date="props.formatDate"
|
|
57
58
|
:current-lang="props.currentLang"
|
|
59
|
+
:valid-date-end="props.validDateEnd"
|
|
58
60
|
@hide="onHideIntervalModal"
|
|
59
61
|
@submit="onSubmitIntervalModal"
|
|
60
62
|
/>
|
|
@@ -82,6 +84,7 @@ const props = defineProps<{
|
|
|
82
84
|
selectedPeriods: number[]
|
|
83
85
|
formatDate: string
|
|
84
86
|
currentLang: string
|
|
87
|
+
validDateEnd: number
|
|
85
88
|
formatTime?: string
|
|
86
89
|
}>()
|
|
87
90
|
|
package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue
CHANGED
|
@@ -113,6 +113,7 @@ const props = defineProps<{
|
|
|
113
113
|
formatDate: string
|
|
114
114
|
selectedPeriods: number[]
|
|
115
115
|
currentLang: string
|
|
116
|
+
validDateEnd: number
|
|
116
117
|
}>()
|
|
117
118
|
|
|
118
119
|
const emits = defineEmits<{
|
|
@@ -147,11 +148,10 @@ const currentTimeTo = ref<string>('')
|
|
|
147
148
|
const getCurrentTime = (): void => {
|
|
148
149
|
if (!props.selectedPeriods.length) {
|
|
149
150
|
currentDateFrom.value = $formattedDate(yesterday, props.formatDate)
|
|
150
|
-
currentDateTo.value = $formattedDate(
|
|
151
|
+
currentDateTo.value = $formattedDate(props.validDateEnd, props.formatDate)
|
|
151
152
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
currentTimeTo.value = currentTime
|
|
153
|
+
currentTimeFrom.value = format(new Date(), 'H:mm:ss')
|
|
154
|
+
currentTimeTo.value = format(props.validDateEnd, 'H:mm:ss')
|
|
155
155
|
|
|
156
156
|
return
|
|
157
157
|
}
|
|
@@ -204,7 +204,9 @@ const onSubmit = (): void => {
|
|
|
204
204
|
currentDateFrom.value,
|
|
205
205
|
currentDateTo.value,
|
|
206
206
|
currentTimeFrom.value,
|
|
207
|
-
currentTimeTo.value
|
|
207
|
+
currentTimeTo.value,
|
|
208
|
+
props.validDateEnd,
|
|
209
|
+
props.formatDate
|
|
208
210
|
)
|
|
209
211
|
|
|
210
212
|
if (typeof result === 'string') {
|
|
@@ -217,6 +219,14 @@ const onSubmit = (): void => {
|
|
|
217
219
|
onHide()
|
|
218
220
|
}
|
|
219
221
|
|
|
222
|
+
watch(
|
|
223
|
+
() => [props.selectedPeriods, props.currentLang],
|
|
224
|
+
(): void => {
|
|
225
|
+
getCurrentTime()
|
|
226
|
+
},
|
|
227
|
+
{ deep: true }
|
|
228
|
+
)
|
|
229
|
+
|
|
220
230
|
onMounted(() => {
|
|
221
231
|
selectedItem.value = location.hostname
|
|
222
232
|
getCurrentTime()
|
package/components/common/monitor/overview/filters/customIntervalModal/lib/config/dateChecker.ts
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
2
|
|
|
3
3
|
const isMoreThanOneMonth = (startDate: number, endDate: number): boolean => {
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
(yearDiff === 0 && monthDiff > 1) ||
|
|
12
|
-
(yearDiff === 0 && monthDiff === 1 && end.getDate() >= start.getDate())
|
|
13
|
-
)
|
|
4
|
+
const date1 = new Date(startDate)
|
|
5
|
+
const date2 = new Date(endDate)
|
|
6
|
+
|
|
7
|
+
const nextMonth = new Date(date1)
|
|
8
|
+
nextMonth.setMonth(date1.getMonth() + 1)
|
|
9
|
+
|
|
10
|
+
return nextMonth < date2
|
|
14
11
|
}
|
|
15
12
|
|
|
16
13
|
export const checkDateFunc = (
|
|
@@ -18,7 +15,9 @@ export const checkDateFunc = (
|
|
|
18
15
|
dateFrom: string,
|
|
19
16
|
dateTo: string,
|
|
20
17
|
timeFrom: string,
|
|
21
|
-
timeTo: string
|
|
18
|
+
timeTo: string,
|
|
19
|
+
unixValidEnd: number,
|
|
20
|
+
formatDate: string
|
|
22
21
|
): string | number[] => {
|
|
23
22
|
const { $isDate, $getUnixByDate } = useNuxtApp()
|
|
24
23
|
|
|
@@ -38,9 +37,20 @@ export const checkDateFunc = (
|
|
|
38
37
|
return result
|
|
39
38
|
}
|
|
40
39
|
|
|
41
|
-
if (unixEndDate >
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
if (unixEndDate > unixValidEnd) {
|
|
41
|
+
const { $formattedDatetime } = useNuxtApp()
|
|
42
|
+
|
|
43
|
+
const currentShowValidEnd = $formattedDatetime(
|
|
44
|
+
new Date(unixValidEnd),
|
|
45
|
+
formatDate,
|
|
46
|
+
true
|
|
47
|
+
)
|
|
48
|
+
result =
|
|
49
|
+
localization.inventoryMonitor.timeRangeShouldNotBeMoreThanValidTo.replace(
|
|
50
|
+
'{0}',
|
|
51
|
+
currentShowValidEnd
|
|
52
|
+
)
|
|
53
|
+
} else if (unixEndDate === unixStartDate)
|
|
44
54
|
result = localization.inventoryMonitor.timeToShouldBeLaterTimeFrom
|
|
45
55
|
else if (unixEndDate - unixStartDate <= 3600000)
|
|
46
56
|
result = localization.inventoryMonitor.timeRangeShouldNotBeSmallerThanHour
|
|
@@ -51,6 +51,8 @@
|
|
|
51
51
|
:is-dark-mode="props.isDarkMode"
|
|
52
52
|
:get-date-format="props.getDateFormat"
|
|
53
53
|
:main-selected-row="selectedRow"
|
|
54
|
+
:valid-date-end="props.validDateEnd"
|
|
55
|
+
:format-date="props.formatDate"
|
|
54
56
|
@update-tools="onUpdateHistoryTestimonyTools"
|
|
55
57
|
/>
|
|
56
58
|
|
|
@@ -76,12 +78,13 @@ import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/model
|
|
|
76
78
|
import type { UI_I_StorageSensorsAlert } from '~/components/common/pages/hardwareHealth/lib/models/interfaces'
|
|
77
79
|
import type { UI_T_HardwareHealthTabMode } from '~/components/common/pages/hardwareHealth/lib/models/types'
|
|
78
80
|
import { hardwareHealthTabsFunc } from '~/components/common/pages/hardwareHealth/lib/config/tabsPannel'
|
|
79
|
-
import type {
|
|
80
|
-
UI_I_HardwareHealthHistoryTestimonyTools
|
|
81
|
-
} from "~/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces";
|
|
81
|
+
import type { UI_I_HardwareHealthHistoryTestimonyTools } from '~/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces'
|
|
82
82
|
|
|
83
83
|
const emits = defineEmits<{
|
|
84
|
-
(
|
|
84
|
+
(
|
|
85
|
+
event: 'update-history-testimony-tools',
|
|
86
|
+
value: UI_I_HardwareHealthHistoryTestimonyTools
|
|
87
|
+
): void
|
|
85
88
|
}>()
|
|
86
89
|
const props = defineProps<{
|
|
87
90
|
data: UI_I_HardwareHealthSensors[]
|
|
@@ -94,6 +97,8 @@ const props = defineProps<{
|
|
|
94
97
|
formattedDatetime: any
|
|
95
98
|
getDateFormat: any
|
|
96
99
|
language: string
|
|
100
|
+
validDateEnd: number
|
|
101
|
+
formatDate: string
|
|
97
102
|
}>()
|
|
98
103
|
|
|
99
104
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
@@ -168,7 +173,9 @@ watch(activeTab, () => {
|
|
|
168
173
|
uniqueKey.value++
|
|
169
174
|
})
|
|
170
175
|
|
|
171
|
-
const onUpdateHistoryTestimonyTools = (
|
|
176
|
+
const onUpdateHistoryTestimonyTools = (
|
|
177
|
+
tools: UI_I_HardwareHealthHistoryTestimonyTools
|
|
178
|
+
): void => {
|
|
172
179
|
emits('update-history-testimony-tools', tools)
|
|
173
180
|
}
|
|
174
181
|
|