bfg-common 1.1.76 → 1.1.78
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/components/atoms/alert/Notification.vue +167 -167
- package/components/atoms/autocomplete/Autocomplete.vue +236 -236
- package/components/atoms/datepicker/Datepicker.vue +612 -612
- package/components/atoms/list/SelectList.vue +62 -62
- package/components/atoms/nav/NavBar.vue +116 -116
- package/components/atoms/nav/VerticalNavBar.vue +89 -89
- package/components/atoms/notificationBar/NotificationBar.vue +175 -175
- package/components/atoms/perPage/PerPage.vue +52 -52
- package/components/atoms/popup/SimplePopup.vue +90 -90
- package/components/atoms/step/VerticalStep.vue +104 -104
- package/components/atoms/switch/Switch.vue +107 -107
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +206 -206
- package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
- package/components/atoms/tabs/Tabs.vue +189 -189
- package/components/atoms/tooltip/Signpost.vue +224 -224
- package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
- package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
- package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
- package/components/common/browse/Browse.vue +182 -182
- package/components/common/browse/blocks/Title.vue +66 -66
- package/components/common/diagramMain/Diagram.vue +186 -186
- package/components/common/diagramMain/DiagramMain.vue +986 -986
- package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
- package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
- package/components/common/diagramMain/network/Contents.vue +238 -238
- package/components/common/feedback/Buttons.vue +232 -232
- package/components/common/feedback/Message.vue +468 -468
- package/components/common/feedback/VisitPortal.vue +54 -54
- package/components/common/help/navbar/left/Left.vue +159 -159
- package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
- package/components/common/modals/Rename.vue +165 -165
- package/components/common/monitor/advanced/Advanced.vue +214 -221
- package/components/common/monitor/advanced/tools/Tools.vue +422 -441
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +452 -424
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +93 -86
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +130 -121
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/config/utils.ts +689 -688
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +76 -73
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +176 -129
- package/components/common/monitor/advanced/tools/chartOptionsModal/models/models.ts +19 -0
- package/components/common/perPage/PerPage.vue +51 -51
- package/components/common/recursionTree/RecursionTree.vue +201 -201
- package/components/common/vm/actions/add/config/capabilities.ts +777 -777
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/VirtualHardware.vue +646 -646
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +246 -246
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Cpu.vue +375 -375
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/Limit.vue +234 -234
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/config/options.ts +28 -28
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/Memory.vue +316 -316
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/config/memoryOptions.ts +35 -35
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +445 -445
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/reservation/Reservation.vue +235 -235
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/VideoCard.vue +177 -177
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/order/Order.vue +197 -197
- package/components/common/vm/actions/add/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +180 -180
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +51 -51
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +55 -55
- package/components/common/vm/actions/add/select/storage/config/config.ts +154 -154
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -373
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
- package/models/store/interfaces.ts +37 -37
- package/models/store/storage/interfaces.ts +32 -32
- package/models/store/types.ts +32 -32
- package/modules/fixContentBuild/utils/methods.ts +114 -114
- package/package.json +1 -1
- package/public/spice-console/application/codec.js +257 -257
- package/public/spice-console/lib/rasterEngine.js +907 -907
- package/public/spice-console/network/spicechannel.js +369 -369
- package/public/spice-console-minify/lib/decoder/dixie.min.js +4 -4
- package/public/spice-console-minify/lib/jgestures.min.js +24 -24
- package/public/spice-console-minify/lib/jquery-2.0.3.min.js +24 -24
- package/public/spice-console-minify/lib/jquery-mousewheel.min.js +11 -11
- package/public/spice-console-minify/lib/jquery-visibility.min.js +1 -1
- package/public/spice-console-minify/lib/lodash.4.0.0.min.js +5 -5
- package/utils/contentBuild.ts +34 -34
|
@@ -1,86 +1,93 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vertical-flex-container chart-option-counters-container">
|
|
3
|
-
<common-monitor-advanced-tools-chart-options-modal-counters-table
|
|
4
|
-
:chart="props.chart"
|
|
5
|
-
:type="props.type"
|
|
6
|
-
:selected-keys="props.selectedKeys"
|
|
7
|
-
@select-row="emits('select-row', $event)"
|
|
8
|
-
/>
|
|
9
|
-
<common-monitor-advanced-tools-chart-options-modal-counters-timespan
|
|
10
|
-
:type="props.type"
|
|
11
|
-
:chart="props.chart"
|
|
12
|
-
:language="props.language"
|
|
13
|
-
:selected-chart-type="props.selectedChartType"
|
|
14
|
-
:selected-timespan-type="props.selectedTimespanType"
|
|
15
|
-
:units-count="props.unitsCount"
|
|
16
|
-
:period-type="props.periodType"
|
|
17
|
-
:selected-custom-time="props.selectedCustomTime"
|
|
18
|
-
:custom-date-from="props.customDateFrom"
|
|
19
|
-
:custom-date-to="props.customDateTo"
|
|
20
|
-
:custom-time-from="props.customTimeFrom"
|
|
21
|
-
:custom-time-to="props.customTimeTo"
|
|
22
|
-
:total-cores="props.totalCores"
|
|
23
|
-
:host-id="props.hostId"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
@update-
|
|
28
|
-
@update-
|
|
29
|
-
@update-
|
|
30
|
-
@update-
|
|
31
|
-
@update-
|
|
32
|
-
@update-custom-
|
|
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
|
-
(event: '
|
|
71
|
-
(event: 'update-
|
|
72
|
-
(event: 'update-custom-
|
|
73
|
-
(event: 'update-
|
|
74
|
-
(event: 'update-
|
|
75
|
-
(event: '
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vertical-flex-container chart-option-counters-container">
|
|
3
|
+
<common-monitor-advanced-tools-chart-options-modal-counters-table
|
|
4
|
+
:chart="props.chart"
|
|
5
|
+
:type="props.type"
|
|
6
|
+
:selected-keys="props.selectedKeys"
|
|
7
|
+
@select-row="emits('select-row', $event)"
|
|
8
|
+
/>
|
|
9
|
+
<common-monitor-advanced-tools-chart-options-modal-counters-timespan
|
|
10
|
+
:type="props.type"
|
|
11
|
+
:chart="props.chart"
|
|
12
|
+
:language="props.language"
|
|
13
|
+
:selected-chart-type="props.selectedChartType"
|
|
14
|
+
:selected-timespan-type="props.selectedTimespanType"
|
|
15
|
+
:units-count="props.unitsCount"
|
|
16
|
+
:period-type="props.periodType"
|
|
17
|
+
:selected-custom-time="props.selectedCustomTime"
|
|
18
|
+
:custom-date-from="props.customDateFrom"
|
|
19
|
+
:custom-date-to="props.customDateTo"
|
|
20
|
+
:custom-time-from="props.customTimeFrom"
|
|
21
|
+
:custom-time-to="props.customTimeTo"
|
|
22
|
+
:total-cores="props.totalCores"
|
|
23
|
+
:host-id="props.hostId"
|
|
24
|
+
:selected-metrics-keys="props.selectedMetricsKeys"
|
|
25
|
+
:total-metric-items="totalMetricItems"
|
|
26
|
+
:selected-objects="props.selectedObjects"
|
|
27
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
28
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
29
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
30
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
31
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
32
|
+
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
33
|
+
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
34
|
+
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
35
|
+
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
36
|
+
@select-objects="emits('select-objects', $event)"
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
</template>
|
|
40
|
+
|
|
41
|
+
<script setup lang="ts">
|
|
42
|
+
import {
|
|
43
|
+
T_ChartHost,
|
|
44
|
+
T_ChartVm,
|
|
45
|
+
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/models/types'
|
|
46
|
+
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/models/types'
|
|
47
|
+
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/models/interfaces'
|
|
48
|
+
|
|
49
|
+
const props = defineProps<{
|
|
50
|
+
language: string
|
|
51
|
+
chart: T_ChartHost | T_ChartVm
|
|
52
|
+
type: UI_T_AdvancedType
|
|
53
|
+
selectedKeys: number[]
|
|
54
|
+
selectedChartType: string
|
|
55
|
+
selectedTimespanType: string
|
|
56
|
+
unitsCount: number
|
|
57
|
+
periodType: string
|
|
58
|
+
selectedCustomTime: string
|
|
59
|
+
customDateFrom: string
|
|
60
|
+
customDateTo: string
|
|
61
|
+
customTimeFrom: string
|
|
62
|
+
customTimeTo: string
|
|
63
|
+
totalCores: number
|
|
64
|
+
hostId: string
|
|
65
|
+
selectedMetricsKeys: number[]
|
|
66
|
+
selectedObjects: string
|
|
67
|
+
}>()
|
|
68
|
+
|
|
69
|
+
const emits = defineEmits<{
|
|
70
|
+
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
71
|
+
(event: 'update-chart-type', value: string): void
|
|
72
|
+
(event: 'update-custom-time', value: string): void
|
|
73
|
+
(event: 'update-timespan-type', value: string): void
|
|
74
|
+
(event: 'update-unit-count', value: number): void
|
|
75
|
+
(event: 'update-period-type', value: string): void
|
|
76
|
+
(event: 'update-custom-date-from', value: string): void
|
|
77
|
+
(event: 'update-custom-date-to', value: string): void
|
|
78
|
+
(event: 'update-custom-time-from', value: string): void
|
|
79
|
+
(event: 'update-custom-time-to', value: string): void
|
|
80
|
+
(event: 'select-objects', value: string): void
|
|
81
|
+
}>()
|
|
82
|
+
|
|
83
|
+
const totalMetricItems = ref<number>(0)
|
|
84
|
+
</script>
|
|
85
|
+
|
|
86
|
+
<style scoped lang="scss">
|
|
87
|
+
.chart-option-counters-container {
|
|
88
|
+
margin-top: 20px;
|
|
89
|
+
flex-basis: 80%;
|
|
90
|
+
padding-left: 15px;
|
|
91
|
+
max-width: 80%;
|
|
92
|
+
}
|
|
93
|
+
</style>
|
|
@@ -1,121 +1,130 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vertical-flex-container chart-option-counters-vertical-split">
|
|
3
|
-
<span class="chart-options-grid-title">{{
|
|
4
|
-
localization.selectCountersForThisChart
|
|
5
|
-
}}</span>
|
|
6
|
-
|
|
7
|
-
<atoms-table-data-grid
|
|
8
|
-
v-model:selected-row="selectedCounters"
|
|
9
|
-
v-model:column-keys="columnItems"
|
|
10
|
-
v-model:page-size="pagination.pageSize"
|
|
11
|
-
v-model:page="pagination.page"
|
|
12
|
-
type="checkbox"
|
|
13
|
-
class="data-table"
|
|
14
|
-
:head-items="headItems"
|
|
15
|
-
:body-items="bodyItems"
|
|
16
|
-
:total-items="totalItems"
|
|
17
|
-
:total-pages="totalPages"
|
|
18
|
-
hide-footer
|
|
19
|
-
server-off
|
|
20
|
-
@change="onChangeRow"
|
|
21
|
-
/>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script setup lang="ts">
|
|
26
|
-
import {
|
|
27
|
-
UI_I_HeadItem,
|
|
28
|
-
UI_I_BodyItem,
|
|
29
|
-
UI_I_ColumnKey,
|
|
30
|
-
} from '~/components/atoms/table/dataGrid/models/interfaces'
|
|
31
|
-
import { UI_I_Localization } from '~/models/interfaces'
|
|
32
|
-
import * as table from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/config/tableConfig'
|
|
33
|
-
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/models/interfaces'
|
|
34
|
-
import {
|
|
35
|
-
T_ChartHost,
|
|
36
|
-
T_ChartVm,
|
|
37
|
-
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/models/types'
|
|
38
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/models/types'
|
|
39
|
-
import { countersItemsFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/config/utils'
|
|
40
|
-
|
|
41
|
-
const props = defineProps<{
|
|
42
|
-
chart: T_ChartHost | T_ChartVm
|
|
43
|
-
type: UI_T_AdvancedType
|
|
44
|
-
selectedKeys: number[]
|
|
45
|
-
}>()
|
|
46
|
-
|
|
47
|
-
const emits = defineEmits<{
|
|
48
|
-
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
watch(
|
|
62
|
-
|
|
63
|
-
(newValue) => {
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
{ immediate: true
|
|
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
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vertical-flex-container chart-option-counters-vertical-split">
|
|
3
|
+
<span class="chart-options-grid-title">{{
|
|
4
|
+
localization.selectCountersForThisChart
|
|
5
|
+
}}</span>
|
|
6
|
+
|
|
7
|
+
<atoms-table-data-grid
|
|
8
|
+
v-model:selected-row="selectedCounters"
|
|
9
|
+
v-model:column-keys="columnItems"
|
|
10
|
+
v-model:page-size="pagination.pageSize"
|
|
11
|
+
v-model:page="pagination.page"
|
|
12
|
+
type="checkbox"
|
|
13
|
+
class="data-table"
|
|
14
|
+
:head-items="headItems"
|
|
15
|
+
:body-items="bodyItems"
|
|
16
|
+
:total-items="totalItems"
|
|
17
|
+
:total-pages="totalPages"
|
|
18
|
+
hide-footer
|
|
19
|
+
server-off
|
|
20
|
+
@change="onChangeRow"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script setup lang="ts">
|
|
26
|
+
import {
|
|
27
|
+
UI_I_HeadItem,
|
|
28
|
+
UI_I_BodyItem,
|
|
29
|
+
UI_I_ColumnKey,
|
|
30
|
+
} from '~/components/atoms/table/dataGrid/models/interfaces'
|
|
31
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
32
|
+
import * as table from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/config/tableConfig'
|
|
33
|
+
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/models/interfaces'
|
|
34
|
+
import {
|
|
35
|
+
T_ChartHost,
|
|
36
|
+
T_ChartVm,
|
|
37
|
+
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/models/types'
|
|
38
|
+
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/models/types'
|
|
39
|
+
import { countersItemsFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/config/utils'
|
|
40
|
+
|
|
41
|
+
const props = defineProps<{
|
|
42
|
+
chart: T_ChartHost | T_ChartVm
|
|
43
|
+
type: UI_T_AdvancedType
|
|
44
|
+
selectedKeys: number[]
|
|
45
|
+
}>()
|
|
46
|
+
|
|
47
|
+
const emits = defineEmits<{
|
|
48
|
+
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
49
|
+
(event: 'total-items', value: number): void
|
|
50
|
+
}>()
|
|
51
|
+
|
|
52
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
53
|
+
|
|
54
|
+
const counters = computed<UI_I_AdvancedCounterItem[]>(() =>
|
|
55
|
+
countersItemsFunc(props.type, props.chart, localization.value)
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
const totalItems = computed<number>(() => counters.value.length)
|
|
59
|
+
const totalPages = computed<number>(() => 1)
|
|
60
|
+
|
|
61
|
+
watch(
|
|
62
|
+
totalItems,
|
|
63
|
+
(newValue) => {
|
|
64
|
+
emits('total-items', newValue)
|
|
65
|
+
},
|
|
66
|
+
{ immediate: true }
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
const selectedCounters = ref<number[]>([])
|
|
70
|
+
watch(
|
|
71
|
+
() => props.selectedKeys,
|
|
72
|
+
(newValue) => {
|
|
73
|
+
selectedCounters.value = newValue
|
|
74
|
+
},
|
|
75
|
+
{ immediate: true, deep: true }
|
|
76
|
+
)
|
|
77
|
+
watch(
|
|
78
|
+
() => props.chart,
|
|
79
|
+
() => {
|
|
80
|
+
selectedCounters.value = []
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
const pagination = ref<any>({
|
|
84
|
+
page: 1,
|
|
85
|
+
pageSize: 35,
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
const columnItems = computed<UI_I_ColumnKey[]>(() =>
|
|
89
|
+
table.columnKeys(localization.value)
|
|
90
|
+
)
|
|
91
|
+
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
92
|
+
table.headItems(localization.value)
|
|
93
|
+
)
|
|
94
|
+
const bodyItems = ref<UI_I_BodyItem[][]>([])
|
|
95
|
+
|
|
96
|
+
watch(
|
|
97
|
+
counters,
|
|
98
|
+
(newValue) => {
|
|
99
|
+
if (!newValue.length) return
|
|
100
|
+
|
|
101
|
+
bodyItems.value = table.bodyItems(newValue)
|
|
102
|
+
},
|
|
103
|
+
{ deep: true, immediate: true }
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
const onChangeRow = (val: number[]): void => {
|
|
107
|
+
const result: UI_I_AdvancedCounterItem[] = []
|
|
108
|
+
|
|
109
|
+
counters.value.forEach((item) => {
|
|
110
|
+
if (val.includes(item.id)) result.push(item)
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
emits('select-row', result)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
watch(
|
|
117
|
+
selectedCounters,
|
|
118
|
+
(newValue) => {
|
|
119
|
+
onChangeRow(newValue)
|
|
120
|
+
},
|
|
121
|
+
{ immediate: true }
|
|
122
|
+
)
|
|
123
|
+
</script>
|
|
124
|
+
|
|
125
|
+
<style scoped lang="scss">
|
|
126
|
+
.chart-options-grid-title {
|
|
127
|
+
display: block;
|
|
128
|
+
margin-bottom: -20px;
|
|
129
|
+
}
|
|
130
|
+
</style>
|