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,206 +1,181 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="advanced">
|
|
3
|
-
<h3 class="title">
|
|
4
|
-
{{ localization.inventoryMonitor.advancedPerformance }}
|
|
5
|
-
</h3>
|
|
6
|
-
<div v-if="props.isEmpty" class="empty-data">
|
|
7
|
-
<ui-not-found text="">
|
|
8
|
-
<span class="no-items-found-title">{{
|
|
9
|
-
localization.common.noItemsFound
|
|
10
|
-
}}</span>
|
|
11
|
-
<span class="no-items-found-description">{{
|
|
12
|
-
localization.inventoryMonitor.emptyAdvancedGraphText
|
|
13
|
-
}}</span>
|
|
14
|
-
</ui-not-found>
|
|
15
|
-
</div>
|
|
16
|
-
<template v-else>
|
|
17
|
-
<common-monitor-advanced-tools
|
|
18
|
-
v-model:selected-timespan-type="localSelectedTimespanType"
|
|
19
|
-
:type="props.type"
|
|
20
|
-
:start-date="props.data?.pointStart || 0"
|
|
21
|
-
:end-date="props.data?.pointEnd || 0"
|
|
22
|
-
:chart-title="props.data?.groupName || ''"
|
|
23
|
-
:language="props.language"
|
|
24
|
-
:selected-counters-keys="props.selectedCountersKeys"
|
|
25
|
-
:selected-metric="props.selectedMetric"
|
|
26
|
-
:selected-metric-local="props.selectedMetricLocal"
|
|
27
|
-
:disabled-period="props.disabledPeriod"
|
|
28
|
-
:disabled-view="props.disabledView"
|
|
29
|
-
:selected-chart-type="props.selectedChartType"
|
|
30
|
-
:units-count="props.unitsCount"
|
|
31
|
-
:period-type="props.periodType"
|
|
32
|
-
:selected-custom-time="props.selectedCustomTime"
|
|
33
|
-
:selected-chart-option-name="props.selectedChartOptionName"
|
|
34
|
-
:custom-date-from="props.customDateFrom"
|
|
35
|
-
:custom-date-to="props.customDateTo"
|
|
36
|
-
:custom-time-from="props.customTimeFrom"
|
|
37
|
-
:custom-time-to="props.customTimeTo"
|
|
38
|
-
:total-cores="totalCores"
|
|
39
|
-
:host-id="props.hostId"
|
|
40
|
-
:selected-objects="props.selectedObjects"
|
|
41
|
-
:project="props.project"
|
|
42
|
-
:objects-loading="props.objectsLoading"
|
|
43
|
-
:objects-data="props.objectsData"
|
|
44
|
-
:valid-date-end="props.validDateEnd"
|
|
45
|
-
:format-date="props.formatDate"
|
|
46
|
-
@update-tools="emits('update-tools', $event)"
|
|
47
|
-
@exporting="
|
|
48
|
-
@open-advanced-page="
|
|
49
|
-
@select-row="emits('select-row', $event)"
|
|
50
|
-
@select-metric-local="emits('select-metric-local', $event)"
|
|
51
|
-
@update-chart-type="emits('update-chart-type', $event)"
|
|
52
|
-
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
53
|
-
@update-unit-count="emits('update-unit-count', $event)"
|
|
54
|
-
@update-period-type="emits('update-period-type', $event)"
|
|
55
|
-
@update-custom-time="emits('update-custom-time', $event)"
|
|
56
|
-
@delete-option="emits('delete-option')"
|
|
57
|
-
@submit-options="emits('submit-options', $event)"
|
|
58
|
-
/>
|
|
59
|
-
<div class="graph-container">
|
|
60
|
-
<common-monitor-advanced-graph-view
|
|
61
|
-
:loading="props.advancedLoading"
|
|
62
|
-
:data="props.data"
|
|
63
|
-
:export="
|
|
64
|
-
:selected-row="
|
|
65
|
-
:dark-mode="props.darkMode"
|
|
66
|
-
:
|
|
67
|
-
:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
import type {
|
|
83
|
-
import type {
|
|
84
|
-
import type {
|
|
85
|
-
import type {
|
|
86
|
-
import type {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/
|
|
91
|
-
import type {
|
|
92
|
-
import type {
|
|
93
|
-
import type {
|
|
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
|
-
(event: '
|
|
134
|
-
(event: 'open-advanced-page'): void
|
|
135
|
-
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
136
|
-
(event: 'select-metric-local', value: string): void
|
|
137
|
-
(event: 'update-chart-type', value: string): void
|
|
138
|
-
(event: 'update-timespan-type', value: string): void
|
|
139
|
-
(event: 'update-unit-count', value: number): void
|
|
140
|
-
(event: 'update-period-type', value: string): void
|
|
141
|
-
(event: 'update-custom-time', value: string): void
|
|
142
|
-
(event: 'delete-option'): void
|
|
143
|
-
(event: 'submit-options', value: UI_I_OptionsForm): void
|
|
144
|
-
(event: '
|
|
145
|
-
}>()
|
|
146
|
-
|
|
147
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
148
|
-
|
|
149
|
-
const localSelectedTimespanType = computed<string>({
|
|
150
|
-
get() {
|
|
151
|
-
return props.selectedTimespanType
|
|
152
|
-
},
|
|
153
|
-
set(newValue) {
|
|
154
|
-
emits('update:selected-timespan-type', newValue)
|
|
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
|
-
</script>
|
|
183
|
-
|
|
184
|
-
<style>
|
|
185
|
-
:root {
|
|
186
|
-
--advanced-text-color: #4d5d69;
|
|
187
|
-
}
|
|
188
|
-
:root.dark-theme {
|
|
189
|
-
--advanced-text-color: #e9eaec;
|
|
190
|
-
}
|
|
191
|
-
</style>
|
|
192
|
-
<style scoped lang="scss">
|
|
193
|
-
.advanced {
|
|
194
|
-
overflow: hidden;
|
|
195
|
-
|
|
196
|
-
.title {
|
|
197
|
-
font-size: 18px;
|
|
198
|
-
font-weight: 500;
|
|
199
|
-
padding: 16px 6px 12px 6px;
|
|
200
|
-
color: var(--advanced-text-color);
|
|
201
|
-
}
|
|
202
|
-
.graph-container {
|
|
203
|
-
margin: 0 6px 0 6px;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="advanced">
|
|
3
|
+
<h3 class="title">
|
|
4
|
+
{{ localization.inventoryMonitor.advancedPerformance }}
|
|
5
|
+
</h3>
|
|
6
|
+
<div v-if="props.isEmpty" class="empty-data">
|
|
7
|
+
<ui-not-found text="">
|
|
8
|
+
<span class="no-items-found-title">{{
|
|
9
|
+
localization.common.noItemsFound
|
|
10
|
+
}}</span>
|
|
11
|
+
<span class="no-items-found-description">{{
|
|
12
|
+
localization.inventoryMonitor.emptyAdvancedGraphText
|
|
13
|
+
}}</span>
|
|
14
|
+
</ui-not-found>
|
|
15
|
+
</div>
|
|
16
|
+
<template v-else>
|
|
17
|
+
<common-monitor-advanced-tools
|
|
18
|
+
v-model:selected-timespan-type="localSelectedTimespanType"
|
|
19
|
+
:type="props.type"
|
|
20
|
+
:start-date="props.data?.pointStart || 0"
|
|
21
|
+
:end-date="props.data?.pointEnd || 0"
|
|
22
|
+
:chart-title="props.data?.groupName || ''"
|
|
23
|
+
:language="props.language"
|
|
24
|
+
:selected-counters-keys="props.selectedCountersKeys"
|
|
25
|
+
:selected-metric="props.selectedMetric"
|
|
26
|
+
:selected-metric-local="props.selectedMetricLocal"
|
|
27
|
+
:disabled-period="props.disabledPeriod"
|
|
28
|
+
:disabled-view="props.disabledView"
|
|
29
|
+
:selected-chart-type="props.selectedChartType"
|
|
30
|
+
:units-count="props.unitsCount"
|
|
31
|
+
:period-type="props.periodType"
|
|
32
|
+
:selected-custom-time="props.selectedCustomTime"
|
|
33
|
+
:selected-chart-option-name="props.selectedChartOptionName"
|
|
34
|
+
:custom-date-from="props.customDateFrom"
|
|
35
|
+
:custom-date-to="props.customDateTo"
|
|
36
|
+
:custom-time-from="props.customTimeFrom"
|
|
37
|
+
:custom-time-to="props.customTimeTo"
|
|
38
|
+
:total-cores="props.totalCores"
|
|
39
|
+
:host-id="props.hostId"
|
|
40
|
+
:selected-objects="props.selectedObjects"
|
|
41
|
+
:project="props.project"
|
|
42
|
+
:objects-loading="props.objectsLoading"
|
|
43
|
+
:objects-data="props.objectsData"
|
|
44
|
+
:valid-date-end="props.validDateEnd"
|
|
45
|
+
:format-date="props.formatDate"
|
|
46
|
+
@update-tools="emits('update-tools', $event)"
|
|
47
|
+
@exporting="emits('export-graph', $event)"
|
|
48
|
+
@open-advanced-page="emits('open-advanced-page')"
|
|
49
|
+
@select-row="emits('select-row', $event)"
|
|
50
|
+
@select-metric-local="emits('select-metric-local', $event)"
|
|
51
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
52
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
53
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
54
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
55
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
56
|
+
@delete-option="emits('delete-option')"
|
|
57
|
+
@submit-options="emits('submit-options', $event)"
|
|
58
|
+
/>
|
|
59
|
+
<div class="graph-container">
|
|
60
|
+
<common-monitor-advanced-graph-view
|
|
61
|
+
:loading="props.advancedLoading"
|
|
62
|
+
:data="props.data"
|
|
63
|
+
:export="props.exportGraphType"
|
|
64
|
+
:selected-row="props.selectedTableRow"
|
|
65
|
+
:dark-mode="props.darkMode"
|
|
66
|
+
:language="props.language"
|
|
67
|
+
:selected-chart-type="props.selectedChartType"
|
|
68
|
+
@open-advanced-page="emits('open-advanced-page')"
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
<common-monitor-advanced-table
|
|
72
|
+
:loading="props.advancedLoading"
|
|
73
|
+
:data="props.tableData"
|
|
74
|
+
@select="emits('selected-table-row', $event)"
|
|
75
|
+
/>
|
|
76
|
+
</template>
|
|
77
|
+
</div>
|
|
78
|
+
</template>
|
|
79
|
+
|
|
80
|
+
<script setup lang="ts">
|
|
81
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
82
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
83
|
+
import type { I_SeriesLine } from 'bfg-nuxt-3-graph/graph/lib/models/interfaces'
|
|
84
|
+
import type { UI_I_MonitorGraphPayload } from '~/components/common/monitor/lib/models/interfaces'
|
|
85
|
+
import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
|
|
86
|
+
import type {
|
|
87
|
+
UI_T_ChartHost,
|
|
88
|
+
UI_T_ChartVm,
|
|
89
|
+
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
90
|
+
import type { UI_I_OptionsForm } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/interfaces'
|
|
91
|
+
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
92
|
+
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
93
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
94
|
+
|
|
95
|
+
const props = defineProps<{
|
|
96
|
+
type: UI_T_AdvancedType
|
|
97
|
+
advancedLoading: boolean
|
|
98
|
+
data: I_SeriesLine | null
|
|
99
|
+
exportGraphType: string
|
|
100
|
+
tableData: UI_I_PerformanceItem[] | []
|
|
101
|
+
language: string
|
|
102
|
+
darkMode: boolean
|
|
103
|
+
selectedCountersKeys: number[]
|
|
104
|
+
selectedMetric: UI_T_ChartHost | UI_T_ChartVm
|
|
105
|
+
selectedMetricLocal: UI_T_ChartHost | UI_T_ChartVm
|
|
106
|
+
selectedChartType: string
|
|
107
|
+
selectedTimespanType: string
|
|
108
|
+
unitsCount: number
|
|
109
|
+
periodType: string
|
|
110
|
+
selectedCustomTime: string
|
|
111
|
+
selectedChartOptionName: string
|
|
112
|
+
customDateFrom: string
|
|
113
|
+
customDateTo: string
|
|
114
|
+
customTimeFrom: string
|
|
115
|
+
customTimeTo: string
|
|
116
|
+
totalCores: number
|
|
117
|
+
hostId: string
|
|
118
|
+
selectedObjects: string
|
|
119
|
+
project: UI_T_Project
|
|
120
|
+
objectsLoading: boolean
|
|
121
|
+
objectsData: UI_I_ObjectItem[]
|
|
122
|
+
validDateEnd: number
|
|
123
|
+
formatDate: string
|
|
124
|
+
selectedTableRow: number[]
|
|
125
|
+
disabledPeriod?: boolean
|
|
126
|
+
disabledView?: boolean
|
|
127
|
+
isEmpty?: boolean
|
|
128
|
+
}>()
|
|
129
|
+
|
|
130
|
+
const emits = defineEmits<{
|
|
131
|
+
(event: 'update:selected-timespan-type', value: string): void
|
|
132
|
+
(event: 'update-tools', value: UI_I_MonitorGraphPayload): void
|
|
133
|
+
(event: 'export-graph', value: string): void
|
|
134
|
+
(event: 'open-advanced-page'): void
|
|
135
|
+
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
136
|
+
(event: 'select-metric-local', value: string): void
|
|
137
|
+
(event: 'update-chart-type', value: string): void
|
|
138
|
+
(event: 'update-timespan-type', value: string): void
|
|
139
|
+
(event: 'update-unit-count', value: number): void
|
|
140
|
+
(event: 'update-period-type', value: string): void
|
|
141
|
+
(event: 'update-custom-time', value: string): void
|
|
142
|
+
(event: 'delete-option'): void
|
|
143
|
+
(event: 'submit-options', value: UI_I_OptionsForm): void
|
|
144
|
+
(event: 'selected-table-row', value: number[]): void
|
|
145
|
+
}>()
|
|
146
|
+
|
|
147
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
148
|
+
|
|
149
|
+
const localSelectedTimespanType = computed<string>({
|
|
150
|
+
get() {
|
|
151
|
+
return props.selectedTimespanType
|
|
152
|
+
},
|
|
153
|
+
set(newValue) {
|
|
154
|
+
emits('update:selected-timespan-type', newValue)
|
|
155
|
+
},
|
|
156
|
+
})
|
|
157
|
+
</script>
|
|
158
|
+
|
|
159
|
+
<style>
|
|
160
|
+
:root {
|
|
161
|
+
--advanced-text-color: #4d5d69;
|
|
162
|
+
}
|
|
163
|
+
:root.dark-theme {
|
|
164
|
+
--advanced-text-color: #e9eaec;
|
|
165
|
+
}
|
|
166
|
+
</style>
|
|
167
|
+
<style scoped lang="scss">
|
|
168
|
+
.advanced {
|
|
169
|
+
overflow: hidden;
|
|
170
|
+
|
|
171
|
+
.title {
|
|
172
|
+
font-size: 18px;
|
|
173
|
+
font-weight: 500;
|
|
174
|
+
padding: 16px 6px 12px 6px;
|
|
175
|
+
color: var(--advanced-text-color);
|
|
176
|
+
}
|
|
177
|
+
.graph-container {
|
|
178
|
+
margin: 0 6px 0 6px;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
</style>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
:custom-date-to="props.customDateTo"
|
|
33
33
|
:custom-time-from="props.customTimeFrom"
|
|
34
34
|
:custom-time-to="props.customTimeTo"
|
|
35
|
-
:total-cores="totalCores"
|
|
35
|
+
:total-cores="props.totalCores"
|
|
36
36
|
:host-id="props.hostId"
|
|
37
37
|
:selected-objects="props.selectedObjects"
|
|
38
38
|
:project="props.project"
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
:valid-date-end="props.validDateEnd"
|
|
42
42
|
:format-date="props.formatDate"
|
|
43
43
|
@update-tools="emits('update-tools', $event)"
|
|
44
|
-
@exporting="
|
|
45
|
-
@open-advanced-page="
|
|
44
|
+
@exporting="emits('export-graph', $event)"
|
|
45
|
+
@open-advanced-page="emits('open-advanced-page')"
|
|
46
46
|
@select-row="emits('select-row', $event)"
|
|
47
47
|
@select-metric-local="emits('select-metric-local', $event)"
|
|
48
48
|
@update-chart-type="emits('update-chart-type', $event)"
|
|
@@ -66,19 +66,17 @@
|
|
|
66
66
|
<common-monitor-advanced-graph-view
|
|
67
67
|
:loading="props.advancedLoading"
|
|
68
68
|
:data="props.data"
|
|
69
|
-
:
|
|
70
|
-
:
|
|
71
|
-
:selected-row="selectedRow"
|
|
69
|
+
:export="props.exportGraphType"
|
|
70
|
+
:selected-row="props.selectedTableRow"
|
|
72
71
|
:dark-mode="props.darkMode"
|
|
73
|
-
:formatted-datetime="props.formattedDatetime"
|
|
74
|
-
:get-date-format="props.getDateFormat"
|
|
75
72
|
:language="props.language"
|
|
76
73
|
:selected-chart-type="props.selectedChartType"
|
|
77
74
|
/>
|
|
78
75
|
<div class="datatable">
|
|
79
76
|
<common-monitor-advanced-table
|
|
77
|
+
:loading="props.advancedLoading"
|
|
80
78
|
:data="props.tableData"
|
|
81
|
-
@select="
|
|
79
|
+
@select="emits('selected-table-row', $event)"
|
|
82
80
|
/>
|
|
83
81
|
</div>
|
|
84
82
|
</div>
|
|
@@ -103,18 +101,15 @@ import type { UI_I_OptionsForm } from '~/components/common/monitor/advanced/tool
|
|
|
103
101
|
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
104
102
|
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
105
103
|
import type { UI_T_Project } from '~/lib/models/types'
|
|
106
|
-
import { getCountCores } from '~/components/common/monitor/advanced/tools/lib/utils/countCores'
|
|
107
104
|
|
|
108
105
|
const props = defineProps<{
|
|
109
106
|
type: UI_T_AdvancedType
|
|
110
107
|
advancedLoading: boolean
|
|
111
108
|
data: I_SeriesLine | null
|
|
112
|
-
|
|
109
|
+
exportGraphType: string
|
|
113
110
|
tableData: UI_I_PerformanceItem[] | []
|
|
114
111
|
language: string
|
|
115
112
|
darkMode: boolean
|
|
116
|
-
formattedDatetime: any
|
|
117
|
-
getDateFormat: any
|
|
118
113
|
selectedCountersKeys: number[]
|
|
119
114
|
selectedMetric: UI_T_ChartHost | UI_T_ChartVm
|
|
120
115
|
selectedMetricLocal: UI_T_ChartHost | UI_T_ChartVm
|
|
@@ -128,6 +123,7 @@ const props = defineProps<{
|
|
|
128
123
|
customDateTo: string
|
|
129
124
|
customTimeFrom: string
|
|
130
125
|
customTimeTo: string
|
|
126
|
+
totalCores: number
|
|
131
127
|
hostId: string
|
|
132
128
|
selectedObjects: string
|
|
133
129
|
project: UI_T_Project
|
|
@@ -135,6 +131,7 @@ const props = defineProps<{
|
|
|
135
131
|
objectsData: UI_I_ObjectItem[]
|
|
136
132
|
validDateEnd: number
|
|
137
133
|
formatDate: string
|
|
134
|
+
selectedTableRow: number[]
|
|
138
135
|
disabledPeriod?: boolean
|
|
139
136
|
disabledView?: boolean
|
|
140
137
|
isEmpty?: boolean
|
|
@@ -143,6 +140,7 @@ const props = defineProps<{
|
|
|
143
140
|
const emits = defineEmits<{
|
|
144
141
|
(event: 'update:selected-timespan-type', value: string): void
|
|
145
142
|
(event: 'update-tools', value: UI_I_MonitorGraphPayload): void
|
|
143
|
+
(event: 'export-graph', value: string): void
|
|
146
144
|
(event: 'open-advanced-page'): void
|
|
147
145
|
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
148
146
|
(event: 'select-metric-local', value: string): void
|
|
@@ -153,6 +151,7 @@ const emits = defineEmits<{
|
|
|
153
151
|
(event: 'update-custom-time', value: string): void
|
|
154
152
|
(event: 'delete-option'): void
|
|
155
153
|
(event: 'submit-options', value: UI_I_OptionsForm): void
|
|
154
|
+
(event: 'selected-table-row', value: number[]): void
|
|
156
155
|
}>()
|
|
157
156
|
|
|
158
157
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
@@ -165,33 +164,6 @@ const localSelectedTimespanType = computed<string>({
|
|
|
165
164
|
emits('update:selected-timespan-type', newValue)
|
|
166
165
|
},
|
|
167
166
|
})
|
|
168
|
-
|
|
169
|
-
const totalCores = ref<number>(0)
|
|
170
|
-
let isFirstUpdate = true
|
|
171
|
-
watch(
|
|
172
|
-
() => props.cpuCoresDataData,
|
|
173
|
-
(newValue) => {
|
|
174
|
-
if (!newValue || !isFirstUpdate) return
|
|
175
|
-
|
|
176
|
-
totalCores.value = getCountCores(newValue)
|
|
177
|
-
isFirstUpdate = false
|
|
178
|
-
},
|
|
179
|
-
{ immediate: true }
|
|
180
|
-
)
|
|
181
|
-
|
|
182
|
-
const exportGraph = ref<string>('')
|
|
183
|
-
const onExporting = (key: string): void => {
|
|
184
|
-
exportGraph.value = key
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
const onGetEmptyPage = (): void => emits('open-advanced-page')
|
|
188
|
-
|
|
189
|
-
const update = ref<number>(0)
|
|
190
|
-
|
|
191
|
-
const selectedRow = ref<number[]>([])
|
|
192
|
-
const onCheckSelectedRow = (data: number[]): void => {
|
|
193
|
-
selectedRow.value = data
|
|
194
|
-
}
|
|
195
167
|
</script>
|
|
196
168
|
|
|
197
169
|
<style scoped lang="scss">
|