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