bfg-common 1.4.884 → 1.4.886
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 +3025 -3018
- package/assets/localization/local_en.json +3029 -3022
- package/assets/localization/local_hy.json +3029 -3022
- package/assets/localization/local_kk.json +8 -1
- package/assets/localization/local_ru.json +8 -1
- package/assets/localization/local_zh.json +8 -2
- package/components/common/graph/GraphNew.vue +179 -178
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +106 -106
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsNew.vue +1 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +28 -25
- package/components/common/monitor/overview/Overview.vue +132 -224
- package/components/common/monitor/overview/OverviewNew.vue +120 -142
- package/components/common/monitor/overview/filters/Filters.vue +169 -166
- package/components/common/monitor/overview/filters/FiltersNew.vue +183 -172
- package/components/common/monitor/overview/filters/FiltersOld.vue +2 -0
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +173 -175
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModalNew.vue +209 -186
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModalOld.vue +2 -2
- package/package.json +2 -2
|
@@ -1,142 +1,120 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="charts-view">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
//.content-global-loading {
|
|
124
|
-
// width: 100%;
|
|
125
|
-
// height: 100%;
|
|
126
|
-
// display: flex;
|
|
127
|
-
// align-items: center;
|
|
128
|
-
// justify-content: center;
|
|
129
|
-
// color: var(--global-font-color);
|
|
130
|
-
//}
|
|
131
|
-
}
|
|
132
|
-
@media (min-width: 1280px) {
|
|
133
|
-
.charts-view .chart-container {
|
|
134
|
-
width: 50%;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
@media (min-height: 800px) {
|
|
138
|
-
.charts-view .chart-container {
|
|
139
|
-
height: 50%;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div ref="chartsView" :class="['charts-view', { 'has-scroll': isHasScroll }]">
|
|
3
|
+
<template v-for="(chartData, key) in props.allData" :key="chartData.title">
|
|
4
|
+
<div :class="['chart-container', `graph-${chartData.title}`]">
|
|
5
|
+
<ui-skeleton-long-metric v-if="chartData.loader" height="336px" />
|
|
6
|
+
<common-graph
|
|
7
|
+
v-else-if="chartData.data"
|
|
8
|
+
:data="chartData.data"
|
|
9
|
+
:chart="props.charts[key]"
|
|
10
|
+
:update="props.updateHelper"
|
|
11
|
+
/>
|
|
12
|
+
<div v-else class="graph-empty-block">
|
|
13
|
+
<div class="title">{{ chartData.title }}</div>
|
|
14
|
+
<div class="body-block">
|
|
15
|
+
{{ localization.common.emptyGraphText }}
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script setup lang="ts">
|
|
24
|
+
import { useElementSize } from '@vueuse/core'
|
|
25
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
26
|
+
import type { UI_I_GraphDataSettingItem } from '~/components/common/monitor/lib/models/interfaces'
|
|
27
|
+
|
|
28
|
+
const props = defineProps<{
|
|
29
|
+
charts: (UI_I_GraphDataSettingItem | null)[]
|
|
30
|
+
allData: UI_I_GraphDataSettingItem[]
|
|
31
|
+
updateHelper: number
|
|
32
|
+
}>()
|
|
33
|
+
|
|
34
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
35
|
+
|
|
36
|
+
const chartsView = ref<HTMLElement | null>(null)
|
|
37
|
+
const { width, height } = useElementSize(chartsView)
|
|
38
|
+
const isHasScroll = ref<boolean>(false)
|
|
39
|
+
const isScrollVisible = (element: HTMLElement): boolean =>
|
|
40
|
+
element.scrollHeight > element.clientHeight &&
|
|
41
|
+
getComputedStyle(element).overflowY !== 'hidden'
|
|
42
|
+
|
|
43
|
+
watch([width, height], () => {
|
|
44
|
+
if (!chartsView.value) return
|
|
45
|
+
|
|
46
|
+
isHasScroll.value = isScrollVisible(chartsView.value)
|
|
47
|
+
})
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<style scoped lang="scss">
|
|
51
|
+
.charts-view {
|
|
52
|
+
position: relative;
|
|
53
|
+
display: grid;
|
|
54
|
+
overflow: auto;
|
|
55
|
+
height: 100%;
|
|
56
|
+
gap: 12px;
|
|
57
|
+
padding: 4px 16px 16px 16px;
|
|
58
|
+
grid-template-rows: 400px;
|
|
59
|
+
|
|
60
|
+
&.has-scroll {
|
|
61
|
+
padding-right: 3px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:has(.chart-container:nth-child(4)),
|
|
65
|
+
&:has(.chart-container:nth-child(3)):not(:has(.chart-container:nth-child(4))),
|
|
66
|
+
&:has(.chart-container:nth-child(2)):not(:has(.chart-container:nth-child(3))) {
|
|
67
|
+
grid-template-columns: 1fr 1fr;
|
|
68
|
+
}
|
|
69
|
+
&:has(.chart-container:nth-child(1)):not(:has(.chart-container:nth-child(2))) {
|
|
70
|
+
grid-template-columns: 1fr;
|
|
71
|
+
}
|
|
72
|
+
&:has(.chart-container:nth-child(3)):not(:has(.chart-container:nth-child(4)))
|
|
73
|
+
.chart-container:nth-child(3) {
|
|
74
|
+
grid-column: 1 / -1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.graph-empty-block {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
height: 100%;
|
|
81
|
+
background-color: var(--overview-chart-loader-bg-color);
|
|
82
|
+
border-radius: 8px;
|
|
83
|
+
|
|
84
|
+
.title {
|
|
85
|
+
text-align: center;
|
|
86
|
+
font-size: 18px;
|
|
87
|
+
margin-top: 10px;
|
|
88
|
+
color: var(--global-font-color);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.body-block {
|
|
92
|
+
height: 100%;
|
|
93
|
+
display: flex;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
text-align: center;
|
|
96
|
+
align-items: center;
|
|
97
|
+
color: var(--global-font-color);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.chart-container {
|
|
102
|
+
position: relative;
|
|
103
|
+
width: 100%;
|
|
104
|
+
min-width: 300px;
|
|
105
|
+
height: 100%;
|
|
106
|
+
min-height: 300px;
|
|
107
|
+
flex-grow: 1;
|
|
108
|
+
box-sizing: border-box;
|
|
109
|
+
|
|
110
|
+
:deep(svg > .skeleton-metric__line) {
|
|
111
|
+
display: none;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
@container (max-width: 920px) {
|
|
116
|
+
.charts-view {
|
|
117
|
+
grid-template-columns: 1fr !important;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
</style>
|
|
@@ -1,166 +1,169 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<common-monitor-overview-filters-new
|
|
3
|
-
v-if="isNewView"
|
|
4
|
-
v-model:selected-period="selectedPeriod"
|
|
5
|
-
v-model:selected-view="selectedView"
|
|
6
|
-
:disabled-period-options="disabledPeriodOptions"
|
|
7
|
-
:period-options="periodOptions"
|
|
8
|
-
:is-show-custom-interval-button="isShowCustomIntervalButton"
|
|
9
|
-
:chart-title-date="chartTitleDate"
|
|
10
|
-
:view-options="viewOptions"
|
|
11
|
-
:valid-date-end="props.validDateEnd"
|
|
12
|
-
:is-show-interval-modal="isShowIntervalModal"
|
|
13
|
-
:selected-periods="props.selectedPeriods"
|
|
14
|
-
:format-date="props.formatDate"
|
|
15
|
-
:current-lang="props.currentLang"
|
|
16
|
-
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
v-
|
|
23
|
-
v-model:selected-
|
|
24
|
-
:
|
|
25
|
-
:period-options="
|
|
26
|
-
:
|
|
27
|
-
:
|
|
28
|
-
:
|
|
29
|
-
:
|
|
30
|
-
:
|
|
31
|
-
:
|
|
32
|
-
:
|
|
33
|
-
:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
@
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
import type {
|
|
44
|
-
import type {
|
|
45
|
-
import {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
)
|
|
77
|
-
|
|
78
|
-
(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
isShowIntervalModal.value =
|
|
95
|
-
}
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
props.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
props.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
)
|
|
135
|
-
|
|
136
|
-
(
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
)
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<common-monitor-overview-filters-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
v-model:selected-period="selectedPeriod"
|
|
5
|
+
v-model:selected-view="selectedView"
|
|
6
|
+
:disabled-period-options="disabledPeriodOptions"
|
|
7
|
+
:period-options="periodOptions"
|
|
8
|
+
:is-show-custom-interval-button="isShowCustomIntervalButton"
|
|
9
|
+
:chart-title-date="chartTitleDate"
|
|
10
|
+
:view-options="viewOptions"
|
|
11
|
+
:valid-date-end="props.validDateEnd"
|
|
12
|
+
:is-show-interval-modal="isShowIntervalModal"
|
|
13
|
+
:selected-periods="props.selectedPeriods"
|
|
14
|
+
:format-date="props.formatDate"
|
|
15
|
+
:current-lang="props.currentLang"
|
|
16
|
+
:selected-node-name="props.selectedNodeName"
|
|
17
|
+
@submit-interval-modal="onSubmitIntervalModal"
|
|
18
|
+
@show-interval-modal="onShowIntervalModal"
|
|
19
|
+
@hide-interval-modal="onHideIntervalModal"
|
|
20
|
+
/>
|
|
21
|
+
<common-monitor-overview-filters-old
|
|
22
|
+
v-else
|
|
23
|
+
v-model:selected-period="selectedPeriod"
|
|
24
|
+
v-model:selected-view="selectedView"
|
|
25
|
+
:disabled-period-options="disabledPeriodOptions"
|
|
26
|
+
:period-options="periodOptions"
|
|
27
|
+
:is-show-custom-interval-button="isShowCustomIntervalButton"
|
|
28
|
+
:chart-title-date="chartTitleDate"
|
|
29
|
+
:view-options="viewOptions"
|
|
30
|
+
:valid-date-end="props.validDateEnd"
|
|
31
|
+
:is-show-interval-modal="isShowIntervalModal"
|
|
32
|
+
:selected-periods="props.selectedPeriods"
|
|
33
|
+
:format-date="props.formatDate"
|
|
34
|
+
:current-lang="props.currentLang"
|
|
35
|
+
:selected-node-name="props.selectedNodeName"
|
|
36
|
+
@submit-interval-modal="onSubmitIntervalModal"
|
|
37
|
+
@show-interval-modal="onShowIntervalModal"
|
|
38
|
+
@hide-interval-modal="onHideIntervalModal"
|
|
39
|
+
/>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script setup lang="ts">
|
|
43
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
44
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
45
|
+
import type { UI_I_MonitorGraphPayload } from '~/components/common/monitor/lib/models/interfaces'
|
|
46
|
+
import type { UI_T_OverviewViewType } from '~/components/common/monitor/overview/filters/lib/models/types'
|
|
47
|
+
import {
|
|
48
|
+
periodFunc,
|
|
49
|
+
viewFunc,
|
|
50
|
+
} from '~/components/common/monitor/overview/filters/lib/config/filterOptions'
|
|
51
|
+
import { getValidDateByOptionFunc } from '~/components/common/monitor/lib/config/getValidDateByOption'
|
|
52
|
+
|
|
53
|
+
const { $formattedDatetime, $store }: any = useNuxtApp()
|
|
54
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
55
|
+
|
|
56
|
+
const props = defineProps<{
|
|
57
|
+
startDate: number
|
|
58
|
+
endDate: number
|
|
59
|
+
chartType: 'spline' | 'pie'
|
|
60
|
+
view: UI_T_OverviewViewType
|
|
61
|
+
selectedPeriods: number[]
|
|
62
|
+
formatDate: string
|
|
63
|
+
currentLang: string
|
|
64
|
+
validDateEnd: number
|
|
65
|
+
selectedNodeName: string
|
|
66
|
+
formatTime?: string
|
|
67
|
+
}>()
|
|
68
|
+
|
|
69
|
+
const emits = defineEmits<{
|
|
70
|
+
(event: 'update-filters', value: UI_I_MonitorGraphPayload): void
|
|
71
|
+
(event: 'update-custom-date', value: number[]): void
|
|
72
|
+
}>()
|
|
73
|
+
|
|
74
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
75
|
+
|
|
76
|
+
const selectedPeriod = ref<string>('')
|
|
77
|
+
const periodOptions = computed<UI_I_OptionItem[]>(() =>
|
|
78
|
+
periodFunc(localization.value)
|
|
79
|
+
)
|
|
80
|
+
watch(
|
|
81
|
+
() => periodOptions.value,
|
|
82
|
+
(newValue: UI_I_OptionItem[]) => {
|
|
83
|
+
if (newValue) selectedPeriod.value = newValue[0].value
|
|
84
|
+
},
|
|
85
|
+
{ immediate: true }
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
const isShowCustomIntervalButton = computed<boolean>(
|
|
89
|
+
() => selectedPeriod.value === 'custom_interval'
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
const isShowIntervalModal = ref<boolean>(false)
|
|
93
|
+
const onShowIntervalModal = (): void => {
|
|
94
|
+
isShowIntervalModal.value = true
|
|
95
|
+
}
|
|
96
|
+
const onHideIntervalModal = (): void => {
|
|
97
|
+
isShowIntervalModal.value = false
|
|
98
|
+
}
|
|
99
|
+
const onSubmitIntervalModal = (customDates: number[]): void => {
|
|
100
|
+
customDatesData.value = customDates
|
|
101
|
+
sendUpdatedFilters()
|
|
102
|
+
onHideIntervalModal()
|
|
103
|
+
emits('update-custom-date', customDates)
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const chartTitleDate = computed<string>(() => {
|
|
107
|
+
const startValue = props.startDate
|
|
108
|
+
const endValue = props.endDate
|
|
109
|
+
if (!startValue && !endValue) return ''
|
|
110
|
+
|
|
111
|
+
const start = $formattedDatetime(
|
|
112
|
+
startValue,
|
|
113
|
+
props.formatDate,
|
|
114
|
+
true,
|
|
115
|
+
'',
|
|
116
|
+
props.formatTime
|
|
117
|
+
)
|
|
118
|
+
const end = $formattedDatetime(
|
|
119
|
+
endValue,
|
|
120
|
+
props.formatDate,
|
|
121
|
+
true,
|
|
122
|
+
'',
|
|
123
|
+
props.formatTime
|
|
124
|
+
)
|
|
125
|
+
return `${start} - ${end}`
|
|
126
|
+
})
|
|
127
|
+
|
|
128
|
+
// const disabledPeriodOptions = computed<boolean>(
|
|
129
|
+
// () => props.chartType === 'pie' || !chartTitleDate.value
|
|
130
|
+
// )
|
|
131
|
+
|
|
132
|
+
const disabledPeriodOptions = computed<boolean>(() => props.chartType === 'pie')
|
|
133
|
+
|
|
134
|
+
const selectedView = ref<string>('')
|
|
135
|
+
const viewOptions = computed<UI_I_OptionItem[]>(() =>
|
|
136
|
+
viewFunc(localization.value, props.view)
|
|
137
|
+
)
|
|
138
|
+
watch(
|
|
139
|
+
() => viewOptions.value,
|
|
140
|
+
(newValue: UI_I_OptionItem[]) => {
|
|
141
|
+
if (newValue) selectedView.value = newValue[0].value
|
|
142
|
+
},
|
|
143
|
+
{ immediate: true }
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
const customDatesData = ref<number[]>([])
|
|
147
|
+
const sendUpdatedFilters = (): void => {
|
|
148
|
+
const currentPeriod =
|
|
149
|
+
selectedPeriod.value === 'custom_interval'
|
|
150
|
+
? customDatesData.value
|
|
151
|
+
: getValidDateByOptionFunc(selectedPeriod.value)
|
|
152
|
+
const filters: UI_I_MonitorGraphPayload = {
|
|
153
|
+
period: currentPeriod,
|
|
154
|
+
view: selectedView.value,
|
|
155
|
+
periodName: selectedPeriod.value,
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
emits('update-filters', filters)
|
|
159
|
+
}
|
|
160
|
+
watch(
|
|
161
|
+
() => [selectedPeriod.value, selectedView.value],
|
|
162
|
+
() => {
|
|
163
|
+
sendUpdatedFilters()
|
|
164
|
+
},
|
|
165
|
+
{ immediate: true }
|
|
166
|
+
)
|
|
167
|
+
</script>
|
|
168
|
+
|
|
169
|
+
<style scoped lang="scss"></style>
|