bfg-common 1.4.153 → 1.4.155
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/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/clusterTable.ts +1 -1
- package/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/resourcePoolTable.ts +1 -1
- package/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/vappsTable.ts +20 -14
- package/components/common/wizards/vm/migrate/select/storage/configure/batch/table/Table.vue +1 -1
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export const bodyItems = (data: UI_I_ClusterTableItem[]): UI_I_BodyItem[][] => {
|
|
59
|
-
const { $binary } = useNuxtApp()
|
|
59
|
+
const { $binary }: any = useNuxtApp()
|
|
60
60
|
|
|
61
61
|
const bodyItems: UI_I_BodyItem[][] = []
|
|
62
62
|
data.forEach((cluster, key) => {
|
|
@@ -73,7 +73,7 @@ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
export const bodyItems = (data: any[]): UI_I_BodyItem[][] => {
|
|
76
|
-
const { $binary } = useNuxtApp()
|
|
76
|
+
const { $binary }: any = useNuxtApp()
|
|
77
77
|
const bodyItems: UI_I_BodyItem[][] = []
|
|
78
78
|
data.forEach((vapp, key) => {
|
|
79
79
|
bodyItems.push([
|
|
@@ -4,9 +4,7 @@ import type {
|
|
|
4
4
|
UI_I_BodyItem,
|
|
5
5
|
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
6
6
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
7
|
-
import
|
|
8
|
-
import { columnKeys as getColumnKeys } from '~/components/templates/inventory/mainBlock/tablesView/lib/config/columnKeys'
|
|
9
|
-
import { headItems as getHeadItems } from '~/components/templates/inventory/mainBlock/tablesView/lib/config/headItems'
|
|
7
|
+
import * as defaultSettings from '~/components/atoms/table/dataGrid/lib/config/settingsTable'
|
|
10
8
|
import { vAppsTableItemKeys } from '~/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/tableKeys'
|
|
11
9
|
|
|
12
10
|
const getItems = (
|
|
@@ -17,7 +15,12 @@ const getItems = (
|
|
|
17
15
|
[localization.common.cpuShares, true, '180px', vAppsTableItemKeys[1]],
|
|
18
16
|
[localization.common.cpuSharesValue, true, '180px', vAppsTableItemKeys[2]],
|
|
19
17
|
[localization.common.memoryShares, true, '180px', vAppsTableItemKeys[3]],
|
|
20
|
-
[
|
|
18
|
+
[
|
|
19
|
+
localization.common.memorySharesValue,
|
|
20
|
+
true,
|
|
21
|
+
'180px',
|
|
22
|
+
vAppsTableItemKeys[4],
|
|
23
|
+
],
|
|
21
24
|
[localization.common.managedBy, true, '180px', vAppsTableItemKeys[5]],
|
|
22
25
|
]
|
|
23
26
|
}
|
|
@@ -25,20 +28,23 @@ const getItems = (
|
|
|
25
28
|
export const columnKeys = (
|
|
26
29
|
localization: UI_I_Localization
|
|
27
30
|
): UI_I_ColumnKey[] => {
|
|
28
|
-
return
|
|
31
|
+
return defaultSettings.defaultColumnKeys(getItems(localization), {
|
|
32
|
+
icon: [0],
|
|
33
|
+
})
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
|
|
32
|
-
return
|
|
37
|
+
return defaultSettings.defaultHeadItems(getItems(localization), {
|
|
38
|
+
icon: [0],
|
|
39
|
+
})
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
export const bodyItems = (data: any[]): UI_I_BodyItem[][] => {
|
|
36
43
|
const bodyItems: UI_I_BodyItem[][] = []
|
|
37
44
|
data.forEach((vapp, key) => {
|
|
38
|
-
const nameData
|
|
39
|
-
iconClassName:
|
|
45
|
+
const nameData = {
|
|
46
|
+
iconClassName: 'vsphere-icon-vm-template',
|
|
40
47
|
name: vapp.name,
|
|
41
|
-
// @ts-ignore TODO id надо для перехода, пока что так оставить чтобы нигде не ломалось потом поправить для всех
|
|
42
48
|
id: vapp.id,
|
|
43
49
|
nav: 'v',
|
|
44
50
|
type: 'vmtemplate',
|
|
@@ -51,11 +57,11 @@ export const bodyItems = (data: any[]): UI_I_BodyItem[][] => {
|
|
|
51
57
|
data: nameData,
|
|
52
58
|
id: key,
|
|
53
59
|
},
|
|
54
|
-
{ key: '
|
|
55
|
-
{ key: '
|
|
56
|
-
{ key: '
|
|
57
|
-
{ key: '
|
|
58
|
-
{ key: '
|
|
60
|
+
{ key: 'col1', text: vapp[vAppsTableItemKeys[1]], id: key },
|
|
61
|
+
{ key: 'col2', text: vapp[vAppsTableItemKeys[2]], id: key },
|
|
62
|
+
{ key: 'col3', text: vapp[vAppsTableItemKeys[3]], id: key },
|
|
63
|
+
{ key: 'col4', text: vapp[vAppsTableItemKeys[4]], id: key },
|
|
64
|
+
{ key: 'col5', text: vapp[vAppsTableItemKeys[5]], id: key },
|
|
59
65
|
])
|
|
60
66
|
})
|
|
61
67
|
return bodyItems
|
|
@@ -39,7 +39,7 @@ import type {
|
|
|
39
39
|
} from '~/lib/models/table/interfaces'
|
|
40
40
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
41
41
|
import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
|
|
42
|
-
import * as table from '~/components/common/wizards/vm/migrate/select/storage/table/
|
|
42
|
+
import * as table from '~/components/common/wizards/vm/migrate/select/storage/configure/batch/table/lib/config/datastoreTable'
|
|
43
43
|
|
|
44
44
|
const props = defineProps<{
|
|
45
45
|
getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
|