bfg-common 1.4.839 → 1.4.841
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 +17 -4
- package/assets/localization/local_en.json +17 -4
- package/assets/localization/local_hy.json +17 -4
- package/assets/localization/local_kk.json +17 -4
- package/assets/localization/local_ru.json +18 -5
- package/assets/localization/local_zh.json +17 -4
- package/components/atoms/collapse/CollapseNav.vue +4 -4
- package/components/atoms/dropdown/dropdown/Dropdown.vue +12 -0
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/table/dataGrid/lib/utils/export.ts +1 -1
- package/components/common/graph/GraphNew.vue +176 -176
- package/components/common/modals/confirmByInput/ConfirmByInput.vue +57 -177
- package/components/common/modals/confirmByInput/ConfirmByInputNew.vue +103 -0
- package/components/common/modals/confirmByInput/ConfirmByInputOld.vue +204 -0
- package/components/common/monitor/advanced/Advanced.vue +196 -170
- package/components/common/monitor/advanced/AdvancedNew.vue +181 -206
- package/components/common/monitor/advanced/AdvancedOld.vue +12 -40
- package/components/common/monitor/advanced/graphView/GraphView.vue +181 -170
- package/components/common/monitor/advanced/graphView/GraphViewNew.vue +35 -35
- package/components/common/monitor/advanced/graphView/GraphViewOld.vue +56 -56
- package/components/common/monitor/advanced/table/Table.vue +31 -31
- package/components/common/monitor/advanced/table/tableNew/TableNew.vue +85 -85
- package/components/common/monitor/advanced/table/tableNew/lib/config/options.ts +139 -139
- package/components/common/monitor/advanced/table/tableNew/lib/utils/constructBody.ts +27 -27
- package/components/common/monitor/advanced/tools/Tools.vue +304 -163
- package/components/common/monitor/advanced/tools/ToolsNew.vue +220 -366
- package/components/common/monitor/advanced/tools/ToolsOld.vue +29 -165
- package/components/common/pages/tasks/Tasks.vue +3 -1
- package/components/common/pages/tasks/table/Table.vue +1 -0
- package/components/common/pages/tasks/table/errorInfo/ErrorInfo.vue +23 -7
- package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +1 -0
- package/components/common/pages/tasks/table/lib/config/config.ts +2 -2
- package/components/common/portlets/customAttributes/Portlet.vue +9 -2
- package/components/common/portlets/customAttributes/lib/config/config.ts +7 -0
- package/components/common/portlets/tag/Portlet.vue +9 -2
- package/components/common/portlets/tag/lib/config/config.ts +7 -0
- package/components/common/tools/Actions.vue +5 -2
- package/lib/config/uiTable.ts +20 -20
- package/lib/models/store/interfaces.ts +1 -0
- package/package.json +2 -2
|
@@ -1,366 +1,220 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="advanced-filters">
|
|
3
|
-
<div class="period-select-wrap">
|
|
4
|
-
<label for="period-select" class="label-select"
|
|
5
|
-
>{{ localization.inventoryMonitor.period }}:</label
|
|
6
|
-
>
|
|
7
|
-
|
|
8
|
-
<ui-select
|
|
9
|
-
v-model="
|
|
10
|
-
:items="periodOptions"
|
|
11
|
-
:disabled="props.disabledPeriod"
|
|
12
|
-
test-id="period-select"
|
|
13
|
-
width="auto"
|
|
14
|
-
@change="
|
|
15
|
-
/>
|
|
16
|
-
<!-- <span v-else class="single-option">{{-->
|
|
17
|
-
<!-- props.periodOptions[0].text-->
|
|
18
|
-
<!-- }}</span>-->
|
|
19
|
-
<span class="chart-text">
|
|
20
|
-
{{ chartTitleDate }}
|
|
21
|
-
</span>
|
|
22
|
-
<ui-skeleton-item v-if="!chartTitleDate" width="320" height="16" />
|
|
23
|
-
<div class="chart-options-button-content">
|
|
24
|
-
<div class="border-line"></div>
|
|
25
|
-
<span
|
|
26
|
-
class="chart-options-button"
|
|
27
|
-
data-id="show-chart-options-button"
|
|
28
|
-
@click="
|
|
29
|
-
>{{ localization.inventoryMonitor.chartOptions }}</span
|
|
30
|
-
>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<div class="view-select-wrap">
|
|
35
|
-
<label for="view-select" class="label-select"
|
|
36
|
-
>{{ localization.common.view }}:</label
|
|
37
|
-
>
|
|
38
|
-
<ui-select
|
|
39
|
-
v-model="
|
|
40
|
-
:items="viewOptions"
|
|
41
|
-
:disabled="disabledView"
|
|
42
|
-
test-id="view-select"
|
|
43
|
-
width="auto"
|
|
44
|
-
left
|
|
45
|
-
@change="
|
|
46
|
-
/>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<common-monitor-advanced-tools-chart-options-modal
|
|
51
|
-
v-if="
|
|
52
|
-
:type="props.type"
|
|
53
|
-
:language="props.language"
|
|
54
|
-
:selected-counters-keys="props.selectedCountersKeys"
|
|
55
|
-
:selected-metric="props.selectedMetric"
|
|
56
|
-
:selected-metric-local="props.selectedMetricLocal"
|
|
57
|
-
:selected-chart-type="props.selectedChartType"
|
|
58
|
-
:selected-timespan-type="props.selectedTimespanType"
|
|
59
|
-
:units-count="props.unitsCount"
|
|
60
|
-
:period-type="props.periodType"
|
|
61
|
-
:selected-custom-time="props.selectedCustomTime"
|
|
62
|
-
:selected-chart-option-name="props.selectedChartOptionName"
|
|
63
|
-
:custom-date-from="props.customDateFrom"
|
|
64
|
-
:custom-date-to="props.customDateTo"
|
|
65
|
-
:custom-time-from="props.customTimeFrom"
|
|
66
|
-
:custom-time-to="props.customTimeTo"
|
|
67
|
-
:total-cores="props.totalCores"
|
|
68
|
-
:host-id="props.hostId"
|
|
69
|
-
:selected-objects="props.selectedObjects"
|
|
70
|
-
:project="props.project"
|
|
71
|
-
:objects-loading="props.objectsLoading"
|
|
72
|
-
:objects-data="props.objectsData"
|
|
73
|
-
:valid-date-end="props.validDateEnd"
|
|
74
|
-
:format-date="props.formatDate"
|
|
75
|
-
@hide="
|
|
76
|
-
@select-row="emits('select-row', $event)"
|
|
77
|
-
@select-metric-local="emits('select-metric-local', $event)"
|
|
78
|
-
@update-chart-type="emits('update-chart-type', $event)"
|
|
79
|
-
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
80
|
-
@update-unit-count="emits('update-unit-count', $event)"
|
|
81
|
-
@update-period-type="emits('update-period-type', $event)"
|
|
82
|
-
@update-custom-time="emits('update-custom-time', $event)"
|
|
83
|
-
@delete-option="
|
|
84
|
-
@save-option-name="
|
|
85
|
-
@submit-options="emits('submit-options', $event)"
|
|
86
|
-
/>
|
|
87
|
-
</template>
|
|
88
|
-
|
|
89
|
-
<script setup lang="ts">
|
|
90
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
91
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
92
|
-
import type {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/
|
|
99
|
-
import type {
|
|
100
|
-
import type {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
(event: 'update-
|
|
145
|
-
(event: '
|
|
146
|
-
(event: '
|
|
147
|
-
(event: '
|
|
148
|
-
(event: '
|
|
149
|
-
(event: '
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
const fields = selectedValue
|
|
222
|
-
? selectedValue.counters.map((item) => item.name).join(', ')
|
|
223
|
-
: ''
|
|
224
|
-
const validPeriodData = getValidDateByOptionFunc(
|
|
225
|
-
periodValue,
|
|
226
|
-
selectedValue,
|
|
227
|
-
props.unitsCount,
|
|
228
|
-
props.selectedCustomTime
|
|
229
|
-
)
|
|
230
|
-
|
|
231
|
-
const period = [
|
|
232
|
-
Math.round(validPeriodData[0] / 1000),
|
|
233
|
-
Math.round(validPeriodData[1] / 1000),
|
|
234
|
-
]
|
|
235
|
-
|
|
236
|
-
if (periodValue === 'custom_interval' && props.periodType === 'period') {
|
|
237
|
-
const checkDateResult = checkDateFunc(
|
|
238
|
-
localization.value,
|
|
239
|
-
props.customDateFrom,
|
|
240
|
-
props.customDateTo,
|
|
241
|
-
props.customTimeFrom,
|
|
242
|
-
props.customTimeTo,
|
|
243
|
-
props.validDateEnd,
|
|
244
|
-
props.formatDate
|
|
245
|
-
)
|
|
246
|
-
if (Array.isArray(checkDateResult)) {
|
|
247
|
-
period[0] = Math.round(checkDateResult[0] / 1000)
|
|
248
|
-
period[1] = Math.round(checkDateResult[1] / 1000)
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
const tools: UI_I_MonitorGraphPayload = {
|
|
253
|
-
fields,
|
|
254
|
-
period,
|
|
255
|
-
periodType: periodValue,
|
|
256
|
-
view: viewValue,
|
|
257
|
-
}
|
|
258
|
-
if (selectedValue.metric) tools.metricType = selectedValue.metric
|
|
259
|
-
|
|
260
|
-
emits('update-timespan-type', selectedPeriod.value)
|
|
261
|
-
emits('update-tools', tools)
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
const onChangePeriod = (): void => {
|
|
265
|
-
updateTools()
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
const onChangeView = (): void => {
|
|
269
|
-
updateTools()
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
const chartTitleDate = computed<string>(() => {
|
|
273
|
-
if (!props.startDate) return ''
|
|
274
|
-
|
|
275
|
-
const start = $formattedDatetime(props.startDate, '', true)
|
|
276
|
-
const end = $formattedDatetime(props.endDate, '', true)
|
|
277
|
-
return `${start} - ${end}`
|
|
278
|
-
})
|
|
279
|
-
|
|
280
|
-
// const onOpenAdvancedPage = (): void => emits('open-advanced-page')
|
|
281
|
-
|
|
282
|
-
// const exportMenu = ref<UI_I_DropMenu<string>[]>(exportFunc(localization.value))
|
|
283
|
-
|
|
284
|
-
// const onExportMenuItem = (item: UI_I_DropMenu<any>): void =>
|
|
285
|
-
// emits('exporting', item.action)
|
|
286
|
-
|
|
287
|
-
const onShowChartOptions = (): void => {
|
|
288
|
-
isShowModal.value = true
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
const onSaveOptionName = (): void => {
|
|
292
|
-
optionsNames.value = getCurrentOptionsStorageFunc(routeType, props.project)
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
onMounted(() => {
|
|
296
|
-
optionsNames.value = getCurrentOptionsStorageFunc(routeType, props.project)
|
|
297
|
-
updateTools()
|
|
298
|
-
})
|
|
299
|
-
</script>
|
|
300
|
-
|
|
301
|
-
<style>
|
|
302
|
-
:root {
|
|
303
|
-
--advanced-chart-options-border-color: rgba(233, 235, 237, 0.64);
|
|
304
|
-
--advanced-chart-options-text-color: #008fd6;
|
|
305
|
-
--advanced-chart-options-text-hover-color: #0081c1;
|
|
306
|
-
}
|
|
307
|
-
:root.dark-theme {
|
|
308
|
-
--advanced-chart-options-border-color: rgba(233, 235, 237, 0.12);
|
|
309
|
-
--advanced-chart-options-text-color: #2ba2de;
|
|
310
|
-
--advanced-chart-options-text-hover-color: #008fd6;
|
|
311
|
-
}
|
|
312
|
-
</style>
|
|
313
|
-
<style scoped lang="scss">
|
|
314
|
-
.advanced-filters {
|
|
315
|
-
display: flex;
|
|
316
|
-
justify-content: space-between;
|
|
317
|
-
align-items: center;
|
|
318
|
-
padding: 12px 6px 16px 6px;
|
|
319
|
-
|
|
320
|
-
.period-select-wrap {
|
|
321
|
-
display: flex;
|
|
322
|
-
align-items: center;
|
|
323
|
-
|
|
324
|
-
.chart-text {
|
|
325
|
-
font-size: 13px;
|
|
326
|
-
color: var(--overview-filter-text-color);
|
|
327
|
-
margin-left: 12px;
|
|
328
|
-
}
|
|
329
|
-
.chart-options-button-content {
|
|
330
|
-
display: flex;
|
|
331
|
-
align-items: center;
|
|
332
|
-
padding-left: 12px;
|
|
333
|
-
|
|
334
|
-
.border-line {
|
|
335
|
-
border: 1px;
|
|
336
|
-
width: 1px;
|
|
337
|
-
height: 24px;
|
|
338
|
-
background-color: var(--advanced-chart-options-border-color);
|
|
339
|
-
}
|
|
340
|
-
.chart-options-button {
|
|
341
|
-
font-weight: 500;
|
|
342
|
-
font-size: 13px;
|
|
343
|
-
padding-left: 12px;
|
|
344
|
-
color: var(--advanced-chart-options-text-color);
|
|
345
|
-
cursor: pointer;
|
|
346
|
-
|
|
347
|
-
&:hover {
|
|
348
|
-
color: var(--advanced-chart-options-text-hover-color);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.view-select-wrap {
|
|
355
|
-
display: flex;
|
|
356
|
-
align-items: center;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.label-select {
|
|
360
|
-
font-size: 13px;
|
|
361
|
-
font-weight: 500;
|
|
362
|
-
color: var(--overview-filter-text-color);
|
|
363
|
-
margin-right: 12px;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="advanced-filters">
|
|
3
|
+
<div class="period-select-wrap">
|
|
4
|
+
<label for="period-select" class="label-select"
|
|
5
|
+
>{{ localization.inventoryMonitor.period }}:</label
|
|
6
|
+
>
|
|
7
|
+
|
|
8
|
+
<ui-select
|
|
9
|
+
v-model="selectedPeriodLocal"
|
|
10
|
+
:items="props.periodOptions"
|
|
11
|
+
:disabled="props.disabledPeriod"
|
|
12
|
+
test-id="period-select"
|
|
13
|
+
width="auto"
|
|
14
|
+
@change="emits('change-period')"
|
|
15
|
+
/>
|
|
16
|
+
<!-- <span v-else class="single-option">{{-->
|
|
17
|
+
<!-- props.periodOptions[0].text-->
|
|
18
|
+
<!-- }}</span>-->
|
|
19
|
+
<span class="chart-text">
|
|
20
|
+
{{ props.chartTitleDate }}
|
|
21
|
+
</span>
|
|
22
|
+
<ui-skeleton-item v-if="!props.chartTitleDate" width="320" height="16" />
|
|
23
|
+
<div class="chart-options-button-content">
|
|
24
|
+
<div class="border-line"></div>
|
|
25
|
+
<span
|
|
26
|
+
class="chart-options-button"
|
|
27
|
+
data-id="show-chart-options-button"
|
|
28
|
+
@click="isShowModalLocal = true"
|
|
29
|
+
>{{ localization.inventoryMonitor.chartOptions }}</span
|
|
30
|
+
>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="view-select-wrap">
|
|
35
|
+
<label for="view-select" class="label-select"
|
|
36
|
+
>{{ localization.common.view }}:</label
|
|
37
|
+
>
|
|
38
|
+
<ui-select
|
|
39
|
+
v-model="selectedViewLocal"
|
|
40
|
+
:items="props.viewOptions"
|
|
41
|
+
:disabled="disabledView"
|
|
42
|
+
test-id="view-select"
|
|
43
|
+
width="auto"
|
|
44
|
+
left
|
|
45
|
+
@change="emits('change-view')"
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<common-monitor-advanced-tools-chart-options-modal
|
|
51
|
+
v-if="isShowModalLocal"
|
|
52
|
+
:type="props.type"
|
|
53
|
+
:language="props.language"
|
|
54
|
+
:selected-counters-keys="props.selectedCountersKeys"
|
|
55
|
+
:selected-metric="props.selectedMetric"
|
|
56
|
+
:selected-metric-local="props.selectedMetricLocal"
|
|
57
|
+
:selected-chart-type="props.selectedChartType"
|
|
58
|
+
:selected-timespan-type="props.selectedTimespanType"
|
|
59
|
+
:units-count="props.unitsCount"
|
|
60
|
+
:period-type="props.periodType"
|
|
61
|
+
:selected-custom-time="props.selectedCustomTime"
|
|
62
|
+
:selected-chart-option-name="props.selectedChartOptionName"
|
|
63
|
+
:custom-date-from="props.customDateFrom"
|
|
64
|
+
:custom-date-to="props.customDateTo"
|
|
65
|
+
:custom-time-from="props.customTimeFrom"
|
|
66
|
+
:custom-time-to="props.customTimeTo"
|
|
67
|
+
:total-cores="props.totalCores"
|
|
68
|
+
:host-id="props.hostId"
|
|
69
|
+
:selected-objects="props.selectedObjects"
|
|
70
|
+
:project="props.project"
|
|
71
|
+
:objects-loading="props.objectsLoading"
|
|
72
|
+
:objects-data="props.objectsData"
|
|
73
|
+
:valid-date-end="props.validDateEnd"
|
|
74
|
+
:format-date="props.formatDate"
|
|
75
|
+
@hide="isShowModalLocal = false"
|
|
76
|
+
@select-row="emits('select-row', $event)"
|
|
77
|
+
@select-metric-local="emits('select-metric-local', $event)"
|
|
78
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
79
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
80
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
81
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
82
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
83
|
+
@delete-option="emits('delete-option')"
|
|
84
|
+
@save-option-name="emits('save-option-name')"
|
|
85
|
+
@submit-options="emits('submit-options', $event)"
|
|
86
|
+
/>
|
|
87
|
+
</template>
|
|
88
|
+
|
|
89
|
+
<script setup lang="ts">
|
|
90
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
91
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
92
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
93
|
+
import type {
|
|
94
|
+
UI_T_ChartHost,
|
|
95
|
+
UI_T_ChartVm,
|
|
96
|
+
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
97
|
+
import type { UI_I_OptionsForm } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/interfaces'
|
|
98
|
+
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
99
|
+
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
100
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
101
|
+
|
|
102
|
+
const props = defineProps<{
|
|
103
|
+
type: UI_T_AdvancedType
|
|
104
|
+
chartTitleDate: string
|
|
105
|
+
language: string
|
|
106
|
+
selectedCountersKeys: number[]
|
|
107
|
+
selectedMetric: UI_T_ChartHost | UI_T_ChartVm
|
|
108
|
+
selectedMetricLocal: UI_T_ChartHost | UI_T_ChartVm
|
|
109
|
+
selectedChartType: string
|
|
110
|
+
selectedTimespanType: string
|
|
111
|
+
unitsCount: number
|
|
112
|
+
periodType: string
|
|
113
|
+
selectedCustomTime: string
|
|
114
|
+
selectedChartOptionName: string
|
|
115
|
+
customDateFrom: string
|
|
116
|
+
customDateTo: string
|
|
117
|
+
customTimeFrom: string
|
|
118
|
+
customTimeTo: string
|
|
119
|
+
totalCores: number
|
|
120
|
+
hostId: string
|
|
121
|
+
selectedObjects: string
|
|
122
|
+
project: UI_T_Project
|
|
123
|
+
objectsLoading: boolean
|
|
124
|
+
objectsData: UI_I_ObjectItem[]
|
|
125
|
+
validDateEnd: number
|
|
126
|
+
formatDate: string
|
|
127
|
+
viewOptions: UI_I_OptionItem[]
|
|
128
|
+
periodOptions: UI_I_OptionItem[]
|
|
129
|
+
disabledPeriod?: boolean
|
|
130
|
+
disabledView?: boolean
|
|
131
|
+
}>()
|
|
132
|
+
|
|
133
|
+
const selectedViewLocal = defineModel<string>('selected-view')
|
|
134
|
+
const isShowModalLocal = defineModel<boolean>('is-show-modal-local')
|
|
135
|
+
const selectedPeriodLocal = defineModel<string>('selected-period')
|
|
136
|
+
|
|
137
|
+
const emits = defineEmits<{
|
|
138
|
+
(event: 'save-option-name'): void
|
|
139
|
+
(event: 'change-period'): void
|
|
140
|
+
(event: 'change-view'): void
|
|
141
|
+
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
142
|
+
(event: 'select-metric-local', value: string): void
|
|
143
|
+
(event: 'update-chart-type', value: string): void
|
|
144
|
+
(event: 'update-timespan-type', value: string): void
|
|
145
|
+
(event: 'update-unit-count', value: number): void
|
|
146
|
+
(event: 'update-period-type', value: string): void
|
|
147
|
+
(event: 'update-custom-time', value: string): void
|
|
148
|
+
(event: 'delete-option'): void
|
|
149
|
+
(event: 'submit-options', value: UI_I_OptionsForm): void
|
|
150
|
+
}>()
|
|
151
|
+
|
|
152
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
153
|
+
</script>
|
|
154
|
+
|
|
155
|
+
<style>
|
|
156
|
+
:root {
|
|
157
|
+
--advanced-chart-options-border-color: rgba(233, 235, 237, 0.64);
|
|
158
|
+
--advanced-chart-options-text-color: #008fd6;
|
|
159
|
+
--advanced-chart-options-text-hover-color: #0081c1;
|
|
160
|
+
}
|
|
161
|
+
:root.dark-theme {
|
|
162
|
+
--advanced-chart-options-border-color: rgba(233, 235, 237, 0.12);
|
|
163
|
+
--advanced-chart-options-text-color: #2ba2de;
|
|
164
|
+
--advanced-chart-options-text-hover-color: #008fd6;
|
|
165
|
+
}
|
|
166
|
+
</style>
|
|
167
|
+
<style scoped lang="scss">
|
|
168
|
+
.advanced-filters {
|
|
169
|
+
display: flex;
|
|
170
|
+
justify-content: space-between;
|
|
171
|
+
align-items: center;
|
|
172
|
+
padding: 12px 6px 16px 6px;
|
|
173
|
+
|
|
174
|
+
.period-select-wrap {
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
|
|
178
|
+
.chart-text {
|
|
179
|
+
font-size: 13px;
|
|
180
|
+
color: var(--overview-filter-text-color);
|
|
181
|
+
margin-left: 12px;
|
|
182
|
+
}
|
|
183
|
+
.chart-options-button-content {
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
padding-left: 12px;
|
|
187
|
+
|
|
188
|
+
.border-line {
|
|
189
|
+
border: 1px;
|
|
190
|
+
width: 1px;
|
|
191
|
+
height: 24px;
|
|
192
|
+
background-color: var(--advanced-chart-options-border-color);
|
|
193
|
+
}
|
|
194
|
+
.chart-options-button {
|
|
195
|
+
font-weight: 500;
|
|
196
|
+
font-size: 13px;
|
|
197
|
+
padding-left: 12px;
|
|
198
|
+
color: var(--advanced-chart-options-text-color);
|
|
199
|
+
cursor: pointer;
|
|
200
|
+
|
|
201
|
+
&:hover {
|
|
202
|
+
color: var(--advanced-chart-options-text-hover-color);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.view-select-wrap {
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.label-select {
|
|
214
|
+
font-size: 13px;
|
|
215
|
+
font-weight: 500;
|
|
216
|
+
color: var(--overview-filter-text-color);
|
|
217
|
+
margin-right: 12px;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
</style>
|