bfg-common 1.4.838 → 1.4.839
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/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/localization/local_be.json +5 -16
- package/assets/localization/local_en.json +7 -19
- package/assets/localization/local_hy.json +5 -16
- package/assets/localization/local_kk.json +5 -16
- package/assets/localization/local_ru.json +6 -17
- package/assets/localization/local_zh.json +5 -16
- package/components/atoms/collapse/CollapseNav.vue +4 -4
- package/components/atoms/dropdown/dropdown/Dropdown.vue +0 -12
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/table/dataGrid/lib/utils/export.ts +1 -1
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/diagramMain/Header.vue +211 -211
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
- package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
- package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
- package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/graph/GraphNew.vue +176 -144
- package/components/common/modals/confirmByInput/ConfirmByInput.vue +177 -57
- package/components/common/monitor/advanced/Advanced.vue +170 -244
- package/components/common/monitor/advanced/AdvancedNew.vue +206 -0
- package/components/common/monitor/advanced/AdvancedOld.vue +243 -0
- package/components/common/monitor/advanced/{GraphView.vue → graphView/GraphView.vue} +170 -180
- package/components/common/monitor/advanced/graphView/GraphViewNew.vue +35 -0
- package/components/common/monitor/advanced/graphView/GraphViewOld.vue +56 -0
- package/components/common/monitor/advanced/table/Table.vue +31 -93
- package/components/common/monitor/advanced/table/tableNew/TableNew.vue +85 -0
- package/components/common/monitor/advanced/table/tableNew/lib/config/options.ts +139 -0
- package/components/common/monitor/advanced/table/tableNew/lib/utils/constructBody.ts +27 -0
- package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -0
- package/components/common/monitor/advanced/tools/Tools.vue +163 -447
- package/components/common/monitor/advanced/tools/ToolsNew.vue +366 -0
- package/components/common/monitor/advanced/tools/ToolsOld.vue +447 -0
- package/components/common/pages/tasks/Tasks.vue +1 -3
- package/components/common/pages/tasks/table/Table.vue +0 -1
- package/components/common/pages/tasks/table/errorInfo/ErrorInfo.vue +7 -23
- package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +0 -1
- package/components/common/pages/tasks/table/lib/config/config.ts +2 -2
- package/components/common/portlets/customAttributes/Portlet.vue +2 -9
- package/components/common/portlets/customAttributes/lib/config/config.ts +0 -7
- package/components/common/portlets/tag/Portlet.vue +2 -9
- package/components/common/portlets/tag/lib/config/config.ts +0 -7
- package/components/common/tools/Actions.vue +2 -5
- package/lib/config/uiTable.ts +20 -0
- package/lib/models/store/interfaces.ts +0 -1
- package/package.json +3 -3
- package/components/common/modals/confirmByInput/ConfirmByInputNew.vue +0 -103
- package/components/common/modals/confirmByInput/ConfirmByInputOld.vue +0 -204
- /package/components/common/monitor/advanced/table/{lib → tableOld/lib}/config/performanceDatatable.ts +0 -0
|
@@ -1,447 +1,163 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<
|
|
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
|
-
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
-
selectedMetricLocal: UI_T_ChartHost | UI_T_ChartVm
|
|
165
|
-
selectedChartType: string
|
|
166
|
-
selectedTimespanType: string
|
|
167
|
-
unitsCount: number
|
|
168
|
-
periodType: string
|
|
169
|
-
selectedCustomTime: string
|
|
170
|
-
selectedChartOptionName: string
|
|
171
|
-
customDateFrom: string
|
|
172
|
-
customDateTo: string
|
|
173
|
-
customTimeFrom: string
|
|
174
|
-
customTimeTo: string
|
|
175
|
-
totalCores: number
|
|
176
|
-
hostId: string
|
|
177
|
-
selectedObjects: string
|
|
178
|
-
project: UI_T_Project
|
|
179
|
-
objectsLoading: boolean
|
|
180
|
-
objectsData: UI_I_ObjectItem[]
|
|
181
|
-
validDateEnd: number
|
|
182
|
-
formatDate: string
|
|
183
|
-
disabledPeriod?: boolean
|
|
184
|
-
disabledView?: boolean
|
|
185
|
-
}>()
|
|
186
|
-
|
|
187
|
-
const emits = defineEmits<{
|
|
188
|
-
(event: 'update-tools', value: UI_I_MonitorGraphPayload): void
|
|
189
|
-
(event: 'exporting', value: string): void
|
|
190
|
-
(event: 'open-advanced-page'): void
|
|
191
|
-
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
192
|
-
(event: 'select-metric-local', value: string): void
|
|
193
|
-
(event: 'update-chart-type', value: string): void
|
|
194
|
-
(event: 'update-timespan-type', value: string): void
|
|
195
|
-
(event: 'update-unit-count', value: number): void
|
|
196
|
-
(event: 'update-period-type', value: string): void
|
|
197
|
-
(event: 'update-custom-time', value: string): void
|
|
198
|
-
(event: 'delete-option'): void
|
|
199
|
-
(event: 'submit-options', value: UI_I_OptionsForm): void
|
|
200
|
-
(event: 'update:selected-timespan-type', value: string): void
|
|
201
|
-
}>()
|
|
202
|
-
|
|
203
|
-
const routeType = '' + useRoute().params.type
|
|
204
|
-
|
|
205
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
206
|
-
const { $formattedDatetime } = useNuxtApp()
|
|
207
|
-
|
|
208
|
-
const selectedView = ref<string>('')
|
|
209
|
-
const optionsNames = ref<string[]>([])
|
|
210
|
-
const viewOptions = computed<UI_I_OptionItem[]>(() =>
|
|
211
|
-
viewFunc(localization.value, props.type, optionsNames.value)
|
|
212
|
-
)
|
|
213
|
-
|
|
214
|
-
watch(
|
|
215
|
-
() => props.selectedChartOptionName,
|
|
216
|
-
(newValue) => {
|
|
217
|
-
let currentValue = ''
|
|
218
|
-
|
|
219
|
-
if (newValue) currentValue = newValue
|
|
220
|
-
else if (
|
|
221
|
-
selectedView.value &&
|
|
222
|
-
optionsNames.value.includes(selectedView.value)
|
|
223
|
-
)
|
|
224
|
-
currentValue = selectedView.value
|
|
225
|
-
else currentValue = selectedView.value || viewOptions.value[0]?.value
|
|
226
|
-
|
|
227
|
-
selectedView.value = currentValue
|
|
228
|
-
},
|
|
229
|
-
{ immediate: true }
|
|
230
|
-
)
|
|
231
|
-
|
|
232
|
-
const onDeleteOption = (): void => {
|
|
233
|
-
emits('delete-option')
|
|
234
|
-
optionsNames.value = getCurrentOptionsStorageFunc(routeType, props.project)
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
const periodOptions = computed<UI_I_OptionItem[]>(() =>
|
|
238
|
-
periodFunc(localization.value, props.selectedTimespanType)
|
|
239
|
-
)
|
|
240
|
-
const selectedPeriod = computed<string>({
|
|
241
|
-
get() {
|
|
242
|
-
return props.selectedTimespanType || periodOptions.value[0].value
|
|
243
|
-
},
|
|
244
|
-
set(newValue) {
|
|
245
|
-
emits('update:selected-timespan-type', newValue)
|
|
246
|
-
},
|
|
247
|
-
})
|
|
248
|
-
|
|
249
|
-
const isShowModal = ref<boolean>(false)
|
|
250
|
-
watch(isShowModal, (newValue) => {
|
|
251
|
-
if (!newValue && !selectedView.value)
|
|
252
|
-
selectedView.value = viewOptions.value[0].value
|
|
253
|
-
})
|
|
254
|
-
|
|
255
|
-
const updateTools = (): void => {
|
|
256
|
-
const periodValue = selectedPeriod.value
|
|
257
|
-
const viewValue = selectedView.value
|
|
258
|
-
const prefix = props.project === 'sphere'
|
|
259
|
-
const selectedValue = useLocalStorage(
|
|
260
|
-
viewValue + 'ChartOptions',
|
|
261
|
-
undefined,
|
|
262
|
-
prefix
|
|
263
|
-
)
|
|
264
|
-
|
|
265
|
-
const fields = selectedValue
|
|
266
|
-
? selectedValue.counters.map((item) => item.name).join(', ')
|
|
267
|
-
: ''
|
|
268
|
-
const validPeriodData = getValidDateByOptionFunc(
|
|
269
|
-
periodValue,
|
|
270
|
-
selectedValue,
|
|
271
|
-
props.unitsCount,
|
|
272
|
-
props.selectedCustomTime
|
|
273
|
-
)
|
|
274
|
-
|
|
275
|
-
const period = [
|
|
276
|
-
Math.round(validPeriodData[0] / 1000),
|
|
277
|
-
Math.round(validPeriodData[1] / 1000),
|
|
278
|
-
]
|
|
279
|
-
|
|
280
|
-
if (periodValue === 'custom_interval' && props.periodType === 'period') {
|
|
281
|
-
const checkDateResult = checkDateFunc(
|
|
282
|
-
localization.value,
|
|
283
|
-
props.customDateFrom,
|
|
284
|
-
props.customDateTo,
|
|
285
|
-
props.customTimeFrom,
|
|
286
|
-
props.customTimeTo,
|
|
287
|
-
props.validDateEnd,
|
|
288
|
-
props.formatDate
|
|
289
|
-
)
|
|
290
|
-
if (Array.isArray(checkDateResult)) {
|
|
291
|
-
period[0] = Math.round(checkDateResult[0] / 1000)
|
|
292
|
-
period[1] = Math.round(checkDateResult[1] / 1000)
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
const tools: UI_I_MonitorGraphPayload = {
|
|
297
|
-
fields,
|
|
298
|
-
period,
|
|
299
|
-
periodType: periodValue,
|
|
300
|
-
view: viewValue,
|
|
301
|
-
}
|
|
302
|
-
if (selectedValue.metric) tools.metricType = selectedValue.metric
|
|
303
|
-
|
|
304
|
-
emits('update-timespan-type', selectedPeriod.value)
|
|
305
|
-
emits('update-tools', tools)
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
const onChangePeriod = (): void => {
|
|
309
|
-
updateTools()
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
const onChangeView = (): void => {
|
|
313
|
-
updateTools()
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
const chartTitleDate = computed<string>(() => {
|
|
317
|
-
if (!props.startDate) return ''
|
|
318
|
-
|
|
319
|
-
const start = $formattedDatetime(props.startDate, '', true)
|
|
320
|
-
const end = $formattedDatetime(props.endDate, '', true)
|
|
321
|
-
return `${start} - ${end}`
|
|
322
|
-
})
|
|
323
|
-
|
|
324
|
-
const onOpenAdvancedPage = (): void => emits('open-advanced-page')
|
|
325
|
-
|
|
326
|
-
const exportMenu = ref<UI_I_DropMenu<string>[]>(exportFunc(localization.value))
|
|
327
|
-
|
|
328
|
-
const onExportMenuItem = (item: UI_I_DropMenu<any>): void =>
|
|
329
|
-
emits('exporting', item.action)
|
|
330
|
-
|
|
331
|
-
const onShowChartOptions = (): void => {
|
|
332
|
-
isShowModal.value = true
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
const onSaveOptionName = (): void => {
|
|
336
|
-
optionsNames.value = getCurrentOptionsStorageFunc(routeType, props.project)
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
onMounted(() => {
|
|
340
|
-
optionsNames.value = getCurrentOptionsStorageFunc(routeType, props.project)
|
|
341
|
-
updateTools()
|
|
342
|
-
})
|
|
343
|
-
</script>
|
|
344
|
-
|
|
345
|
-
<style scoped lang="scss">
|
|
346
|
-
.horizontal-flex-container {
|
|
347
|
-
display: flex;
|
|
348
|
-
flex-direction: row;
|
|
349
|
-
align-items: center;
|
|
350
|
-
line-height: 20px;
|
|
351
|
-
flex-shrink: 0;
|
|
352
|
-
|
|
353
|
-
.chart-title-content {
|
|
354
|
-
overflow: hidden;
|
|
355
|
-
text-overflow: ellipsis;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.select select {
|
|
359
|
-
height: 20px;
|
|
360
|
-
margin: 5px;
|
|
361
|
-
color: var(--global-font-color);
|
|
362
|
-
}
|
|
363
|
-
.single-option {
|
|
364
|
-
margin-left: 5px;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.chart-title {
|
|
368
|
-
color: var(--global-font-color);
|
|
369
|
-
text-overflow: ellipsis;
|
|
370
|
-
white-space: nowrap;
|
|
371
|
-
overflow: hidden;
|
|
372
|
-
margin: 6px;
|
|
373
|
-
font-weight: 700;
|
|
374
|
-
text-transform: capitalize;
|
|
375
|
-
|
|
376
|
-
&.uppercase {
|
|
377
|
-
text-transform: uppercase;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.view-select-label {
|
|
382
|
-
margin-left: auto;
|
|
383
|
-
padding-right: 7px;
|
|
384
|
-
padding-left: 7px;
|
|
385
|
-
text-overflow: ellipsis;
|
|
386
|
-
white-space: nowrap;
|
|
387
|
-
align-items: center;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
.chart-options-button {
|
|
391
|
-
margin-left: 5px;
|
|
392
|
-
text-overflow: ellipsis;
|
|
393
|
-
white-space: nowrap;
|
|
394
|
-
text-transform: capitalize;
|
|
395
|
-
color: var(--dropdown-item-color);
|
|
396
|
-
cursor: pointer;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.chart-action-bar {
|
|
400
|
-
white-space: nowrap;
|
|
401
|
-
|
|
402
|
-
.menu-item {
|
|
403
|
-
padding-right: 4px;
|
|
404
|
-
display: inline-block;
|
|
405
|
-
list-style: none;
|
|
406
|
-
vertical-align: middle;
|
|
407
|
-
|
|
408
|
-
&:last-child {
|
|
409
|
-
padding-right: 0;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.item-link {
|
|
413
|
-
padding: 4px;
|
|
414
|
-
line-height: 22px;
|
|
415
|
-
border: 1px solid transparent;
|
|
416
|
-
display: inline-block;
|
|
417
|
-
|
|
418
|
-
&:hover {
|
|
419
|
-
text-decoration: none;
|
|
420
|
-
background-color: #e9f6fd;
|
|
421
|
-
border: 1px solid #c7e9ff;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
.icon {
|
|
425
|
-
width: 16px;
|
|
426
|
-
height: 16px;
|
|
427
|
-
display: block;
|
|
428
|
-
min-width: 16px;
|
|
429
|
-
min-height: 16px;
|
|
430
|
-
background-size: 100% auto;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
:deep(.dropdown-menu) {
|
|
435
|
-
min-width: auto;
|
|
436
|
-
padding: 0;
|
|
437
|
-
}
|
|
438
|
-
:deep(.user-menu-large) {
|
|
439
|
-
padding: 0;
|
|
440
|
-
}
|
|
441
|
-
:deep(.angle-icon) {
|
|
442
|
-
display: none;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<common-monitor-advanced-tools-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
v-model:selected-timespan-type="localSelectedTimespanType"
|
|
5
|
+
:type="props.type"
|
|
6
|
+
:start-date="props.startDate"
|
|
7
|
+
:end-date="props.endDate"
|
|
8
|
+
:chart-title="props.chartTitle"
|
|
9
|
+
:language="props.language"
|
|
10
|
+
:selected-counters-keys="props.selectedCountersKeys"
|
|
11
|
+
:selected-metric="props.selectedMetric"
|
|
12
|
+
:selected-metric-local="props.selectedMetricLocal"
|
|
13
|
+
:disabled-period="props.disabledPeriod"
|
|
14
|
+
:disabled-view="props.disabledView"
|
|
15
|
+
:selected-chart-type="props.selectedChartType"
|
|
16
|
+
:units-count="props.unitsCount"
|
|
17
|
+
:period-type="props.periodType"
|
|
18
|
+
:selected-custom-time="props.selectedCustomTime"
|
|
19
|
+
:selected-chart-option-name="props.selectedChartOptionName"
|
|
20
|
+
:custom-date-from="props.customDateFrom"
|
|
21
|
+
:custom-date-to="props.customDateTo"
|
|
22
|
+
:custom-time-from="props.customTimeFrom"
|
|
23
|
+
:custom-time-to="props.customTimeTo"
|
|
24
|
+
:total-cores="totalCores"
|
|
25
|
+
:host-id="props.hostId"
|
|
26
|
+
:selected-objects="props.selectedObjects"
|
|
27
|
+
:project="props.project"
|
|
28
|
+
:objects-loading="props.objectsLoading"
|
|
29
|
+
:objects-data="props.objectsData"
|
|
30
|
+
:valid-date-end="props.validDateEnd"
|
|
31
|
+
:format-date="props.formatDate"
|
|
32
|
+
@update-tools="emits('update-tools', $event)"
|
|
33
|
+
@exporting="onExporting"
|
|
34
|
+
@open-advanced-page="emits('open-advanced-page')"
|
|
35
|
+
@select-row="emits('select-row', $event)"
|
|
36
|
+
@select-metric-local="emits('select-metric-local', $event)"
|
|
37
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
38
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
39
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
40
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
41
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
42
|
+
@delete-option="emits('delete-option')"
|
|
43
|
+
@submit-options="emits('submit-options', $event)"
|
|
44
|
+
/>
|
|
45
|
+
<common-monitor-advanced-tools-old
|
|
46
|
+
v-else
|
|
47
|
+
v-model:selected-timespan-type="localSelectedTimespanType"
|
|
48
|
+
:type="props.type"
|
|
49
|
+
:start-date="props.startDate"
|
|
50
|
+
:end-date="props.endDate"
|
|
51
|
+
:chart-title="props.chartTitle"
|
|
52
|
+
:language="props.language"
|
|
53
|
+
:selected-counters-keys="props.selectedCountersKeys"
|
|
54
|
+
:selected-metric="props.selectedMetric"
|
|
55
|
+
:selected-metric-local="props.selectedMetricLocal"
|
|
56
|
+
:disabled-period="props.disabledPeriod"
|
|
57
|
+
:disabled-view="props.disabledView"
|
|
58
|
+
:selected-chart-type="props.selectedChartType"
|
|
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="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
|
+
@update-tools="emits('update-tools', $event)"
|
|
76
|
+
@exporting="onExporting"
|
|
77
|
+
@open-advanced-page="emits('open-advanced-page')"
|
|
78
|
+
@select-row="emits('select-row', $event)"
|
|
79
|
+
@select-metric-local="emits('select-metric-local', $event)"
|
|
80
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
81
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
82
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
83
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
84
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
85
|
+
@delete-option="emits('delete-option')"
|
|
86
|
+
@submit-options="emits('submit-options', $event)"
|
|
87
|
+
/>
|
|
88
|
+
</template>
|
|
89
|
+
|
|
90
|
+
<script setup lang="ts">
|
|
91
|
+
import type { UI_I_MonitorGraphPayload } from '~/components/common/monitor/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
|
+
startDate: number
|
|
105
|
+
endDate: number
|
|
106
|
+
chartTitle: string
|
|
107
|
+
language: string
|
|
108
|
+
selectedCountersKeys: number[]
|
|
109
|
+
selectedMetric: UI_T_ChartHost | UI_T_ChartVm
|
|
110
|
+
selectedMetricLocal: UI_T_ChartHost | UI_T_ChartVm
|
|
111
|
+
selectedChartType: string
|
|
112
|
+
selectedTimespanType: string
|
|
113
|
+
unitsCount: number
|
|
114
|
+
periodType: string
|
|
115
|
+
selectedCustomTime: string
|
|
116
|
+
selectedChartOptionName: string
|
|
117
|
+
customDateFrom: string
|
|
118
|
+
customDateTo: string
|
|
119
|
+
customTimeFrom: string
|
|
120
|
+
customTimeTo: string
|
|
121
|
+
totalCores: number
|
|
122
|
+
hostId: string
|
|
123
|
+
selectedObjects: string
|
|
124
|
+
project: UI_T_Project
|
|
125
|
+
objectsLoading: boolean
|
|
126
|
+
objectsData: UI_I_ObjectItem[]
|
|
127
|
+
validDateEnd: number
|
|
128
|
+
formatDate: string
|
|
129
|
+
disabledPeriod?: boolean
|
|
130
|
+
disabledView?: boolean
|
|
131
|
+
}>()
|
|
132
|
+
|
|
133
|
+
const emits = defineEmits<{
|
|
134
|
+
(event: 'update-tools', value: UI_I_MonitorGraphPayload): void
|
|
135
|
+
(event: 'exporting', value: string): void
|
|
136
|
+
(event: 'open-advanced-page'): void
|
|
137
|
+
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
138
|
+
(event: 'select-metric-local', value: string): void
|
|
139
|
+
(event: 'update-chart-type', value: string): void
|
|
140
|
+
(event: 'update-timespan-type', value: string): void
|
|
141
|
+
(event: 'update-unit-count', value: number): void
|
|
142
|
+
(event: 'update-period-type', value: string): void
|
|
143
|
+
(event: 'update-custom-time', value: string): void
|
|
144
|
+
(event: 'delete-option'): void
|
|
145
|
+
(event: 'submit-options', value: UI_I_OptionsForm): void
|
|
146
|
+
(event: 'update:selected-timespan-type', value: string): void
|
|
147
|
+
}>()
|
|
148
|
+
|
|
149
|
+
const { $store }: any = useNuxtApp()
|
|
150
|
+
|
|
151
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
152
|
+
|
|
153
|
+
const localSelectedTimespanType = computed<string>({
|
|
154
|
+
get() {
|
|
155
|
+
return props.selectedTimespanType
|
|
156
|
+
},
|
|
157
|
+
set(newValue) {
|
|
158
|
+
emits('update:selected-timespan-type', newValue)
|
|
159
|
+
},
|
|
160
|
+
})
|
|
161
|
+
</script>
|
|
162
|
+
|
|
163
|
+
<style scoped lang="scss"></style>
|