bfg-common 1.4.139 → 1.4.141
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/vmNew/migrate/Migrate.vue +9 -14
- package/components/common/wizards/vmNew/migrate/lib/models/interfaces.ts +3 -11
- package/components/common/wizards/vmNew/migrate/select/network/Network.vue +16 -14
- package/components/common/wizards/vmNew/migrate/select/network/lib/models/interfaces.ts +4 -0
- package/components/common/wizards/vmNew/migrate/select/network/table/network/Network.vue +2 -1
- package/components/common/wizards/vmNew/migrate/select/storage/lib/models/interfaces.ts +0 -14
- package/components/common/wizards/vmNew/migrate/select/targetServer/new/New.vue +2 -2
- package/package.json +1 -1
|
@@ -49,11 +49,8 @@
|
|
|
49
49
|
/>
|
|
50
50
|
|
|
51
51
|
<common-wizards-vm-new-migrate-select-network
|
|
52
|
-
v-
|
|
53
|
-
v-model
|
|
54
|
-
dataFormLocal.selectNetwork.isShowNetworkBasic
|
|
55
|
-
"
|
|
56
|
-
v-model:network-data="dataFormLocal.selectNetwork.data"
|
|
52
|
+
v-show="selectedStep.id === 4"
|
|
53
|
+
v-model="form.network"
|
|
57
54
|
/>
|
|
58
55
|
|
|
59
56
|
<common-wizards-vm-new-migrate-select-priority
|
|
@@ -93,7 +90,6 @@ import type { UI_I_VmSettings } from '~/lib/models/store/vm/interfaces'
|
|
|
93
90
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
|
94
91
|
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vmNew/migrate/select/storage/configure/disk/table/lib/models/interfaces'
|
|
95
92
|
import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
|
|
96
|
-
import type { UI_I_CollectedDataFormLocal } from '~/components/common/wizards/vm/migrate/lib/models/interfaces'
|
|
97
93
|
import { constructDataReadyViewFunc } from '~/components/common/wizards/vmNew/migrate/lib/config/constructDataReady'
|
|
98
94
|
import * as validation from '~/components/common/wizards/vmNew/migrate/lib/validations'
|
|
99
95
|
|
|
@@ -137,6 +133,10 @@ const form = ref<UI_I_MigrateFormLocal>({
|
|
|
137
133
|
user: '',
|
|
138
134
|
password: '',
|
|
139
135
|
},
|
|
136
|
+
network: {
|
|
137
|
+
isBasicNetworkMode: true,
|
|
138
|
+
data: null,
|
|
139
|
+
},
|
|
140
140
|
vMotion_priority: 'high',
|
|
141
141
|
})
|
|
142
142
|
|
|
@@ -206,14 +206,9 @@ const dataReadyView = computed<UI_I_TableInfoItem>(() =>
|
|
|
206
206
|
constructDataReadyViewFunc(props.vmName, form.value)
|
|
207
207
|
)
|
|
208
208
|
|
|
209
|
-
const dataFormLocal = ref<UI_I_CollectedDataFormLocal>({
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
selectNetwork: {
|
|
213
|
-
isShowNetworkBasic: true,
|
|
214
|
-
data: null,
|
|
215
|
-
},
|
|
216
|
-
})
|
|
209
|
+
// const dataFormLocal = ref<UI_I_CollectedDataFormLocal>({
|
|
210
|
+
// selectedComputeResource: null,
|
|
211
|
+
// })
|
|
217
212
|
const onFinish = (): void => {
|
|
218
213
|
loading.value = true
|
|
219
214
|
emits('finish', form.value)
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
|
|
2
2
|
import type { UI_T_VmMigrateSelectStorageTab } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
|
|
3
|
-
import type { UI_I_SelectStorageReadyData } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/interfaces'
|
|
4
|
-
import type { UI_I_ComputeResourceDataLocal } from '~/components/common/wizards/vm/migrate/select/computeResource/lib/models/interfaces'
|
|
5
3
|
import type { UI_T_VmMigrateType } from '~/components/common/wizards/vmNew/migrate/select/type/lib/models/types'
|
|
6
4
|
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/table/disk/lib/models/interfaces'
|
|
7
5
|
import type { UI_T_SelectVMotionPriority } from '~/components/common/wizards/vmNew/migrate/select/priority/lib/models/types'
|
|
8
6
|
import type { UI_I_ConnectEsxiServerForm } from '~/components/common/wizards/vmNew/migrate/select/targetServer/new/lib/models/interfaces'
|
|
7
|
+
import type { UI_I_SelectNetworksFormLocal } from '~/components/common/wizards/vmNew/migrate/select/network/lib/models/interfaces'
|
|
9
8
|
|
|
10
9
|
export interface UI_I_MigrateFormLocal {
|
|
11
10
|
migrate_type: UI_T_VmMigrateType
|
|
@@ -18,6 +17,8 @@ export interface UI_I_MigrateFormLocal {
|
|
|
18
17
|
}
|
|
19
18
|
target_server: UI_I_ConnectEsxiServerForm
|
|
20
19
|
|
|
20
|
+
network: UI_I_SelectNetworksFormLocal
|
|
21
|
+
|
|
21
22
|
vMotion_priority: UI_T_SelectVMotionPriority
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -30,12 +31,3 @@ export interface UI_I_ChangeStepsSchemes {
|
|
|
30
31
|
export interface UI_I_MigrateReadyBlockData extends UI_I_TableInfoItem {
|
|
31
32
|
permissions: UI_T_VmMigrateSelectStorageTab[]
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
-
export interface UI_I_CollectedDataFormLocal {
|
|
35
|
-
selectedComputeResource: UI_I_ComputeResourceDataLocal
|
|
36
|
-
selectStorage: UI_I_SelectStorageReadyData
|
|
37
|
-
selectNetwork: {
|
|
38
|
-
isShowNetworkBasic: boolean
|
|
39
|
-
data: any // добавить интерфае потом
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{{ selectNetworkHeadline }}
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
|
-
<common-wizards-vm-migrate-select-network-table-network
|
|
7
|
+
<common-wizards-vm-new-migrate-select-network-table-network
|
|
8
8
|
v-model="selectedSourceNetwork"
|
|
9
9
|
:key="uniqueKey"
|
|
10
10
|
:networks="dataNetwork"
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
/>
|
|
14
14
|
|
|
15
15
|
<div
|
|
16
|
-
v-if="
|
|
16
|
+
v-if="model.isBasicNetworkMode && selectedSourceNetwork"
|
|
17
17
|
class="select-network__matcher-details"
|
|
18
18
|
>
|
|
19
19
|
<span> {{ networkDetailsHeadline }} </span>
|
|
20
20
|
|
|
21
|
-
<common-wizards-vm-migrate-select-network-table-use-at
|
|
21
|
+
<common-wizards-vm-new-migrate-select-network-table-use-at
|
|
22
22
|
:networks="useAtTableData"
|
|
23
23
|
/>
|
|
24
24
|
</div>
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
data-id="migrate-network-advanced-button"
|
|
30
30
|
@click="onClickSelectNetworkMode"
|
|
31
31
|
>
|
|
32
|
-
<span v-if="!
|
|
32
|
+
<span v-if="!model.isBasicNetworkMode"> ≪ </span>
|
|
33
33
|
{{ buttonText }}
|
|
34
|
-
<span v-if="
|
|
34
|
+
<span v-if="model.isBasicNetworkMode"> ≫ </span>
|
|
35
35
|
</button>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
|
-
<common-wizards-vm-common-validation-compatibility
|
|
38
|
+
<common-wizards-vm-new-common-validation-compatibility
|
|
39
39
|
:loading="false"
|
|
40
40
|
status="Success"
|
|
41
41
|
text="compatibilityChecksSucceeded"
|
|
@@ -45,28 +45,30 @@
|
|
|
45
45
|
|
|
46
46
|
<script lang="ts" setup>
|
|
47
47
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
48
|
+
import type { UI_I_SelectNetworksFormLocal } from '~/components/common/wizards/vmNew/migrate/select/network/lib/models/interfaces'
|
|
48
49
|
|
|
49
|
-
const
|
|
50
|
-
const networkData = defineModel<any>('networkData')
|
|
51
|
-
|
|
50
|
+
const model = defineModel<UI_I_SelectNetworksFormLocal>({ required: true })
|
|
52
51
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
53
52
|
|
|
54
53
|
const selectedSourceNetwork = ref<string | null>(null)
|
|
55
54
|
const uniqueKey = ref<number>(0)
|
|
56
55
|
|
|
57
56
|
const buttonText = computed(
|
|
58
|
-
() =>
|
|
57
|
+
() =>
|
|
58
|
+
localization.value.common[
|
|
59
|
+
model.value.isBasicNetworkMode ? 'advanced' : 'basic'
|
|
60
|
+
]
|
|
59
61
|
)
|
|
60
62
|
|
|
61
63
|
const tableType = computed<string>(() =>
|
|
62
|
-
|
|
64
|
+
model.value.isBasicNetworkMode ? 'basic' : 'advanced'
|
|
63
65
|
)
|
|
64
66
|
|
|
65
67
|
const selectNetworkHeadline = computed<string>(() => {
|
|
66
68
|
const { migrateNetworkingForAllAdapters, migrateNetworkingForEachAdapters } =
|
|
67
69
|
localization.value.common
|
|
68
70
|
|
|
69
|
-
return
|
|
71
|
+
return model.value.isBasicNetworkMode
|
|
70
72
|
? migrateNetworkingForAllAdapters
|
|
71
73
|
: migrateNetworkingForEachAdapters
|
|
72
74
|
})
|
|
@@ -101,11 +103,11 @@ const useAtTableData = computed(() =>
|
|
|
101
103
|
|
|
102
104
|
const onClickSelectNetworkMode = (): void => {
|
|
103
105
|
uniqueKey.value++
|
|
104
|
-
|
|
106
|
+
model.value.isBasicNetworkMode = !model.value.isBasicNetworkMode
|
|
105
107
|
selectedSourceNetwork.value = ''
|
|
106
108
|
}
|
|
107
109
|
const onSelectNetwork = (data: any): void => {
|
|
108
|
-
|
|
110
|
+
model.value.data = data
|
|
109
111
|
}
|
|
110
112
|
</script>
|
|
111
113
|
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
data-id="network-select"
|
|
25
25
|
:disabled="item.data.disabled"
|
|
26
26
|
@change="onSelect(item.data)"
|
|
27
|
+
@click.stop
|
|
27
28
|
>
|
|
28
29
|
<option
|
|
29
30
|
v-for="option in item.data.option"
|
|
@@ -74,7 +75,7 @@ const table: any = {
|
|
|
74
75
|
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
75
76
|
table[props.type].headItems(localization.value)
|
|
76
77
|
)
|
|
77
|
-
const columnKeys =
|
|
78
|
+
const columnKeys = ref<UI_I_ColumnKey[]>(() =>
|
|
78
79
|
table[props.type].columnKeys(localization.value)
|
|
79
80
|
)
|
|
80
81
|
watch(localization, () => {
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
|
|
2
|
-
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/table/disk/lib/models/interfaces'
|
|
3
|
-
import type { UI_T_VmMigrateSelectStorageTab } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
|
|
4
|
-
|
|
5
|
-
export interface UI_I_SelectStorageDataLocal {
|
|
6
|
-
vmDiskFormat: 0 | 1 | 2 | 3
|
|
7
|
-
storage: UI_I_DatastoreTableItem | null
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface UI_I_SelectStorageReadyData
|
|
11
|
-
extends UI_I_SelectStorageDataLocal {
|
|
12
|
-
tab: UI_T_VmMigrateSelectStorageTab
|
|
13
|
-
configureDisks: UI_I_StorageConfigurePerDiskItem[]
|
|
14
|
-
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
<div class="clr-form-control clr-row">
|
|
45
45
|
<label class="clr-control-label clr-col-md-4">
|
|
46
|
-
{{ localization.
|
|
46
|
+
{{ localization.auth.username }}
|
|
47
47
|
</label>
|
|
48
48
|
|
|
49
49
|
<div
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
<div class="nd-mt-0 clr-form-control clr-row">
|
|
74
74
|
<label class="clr-control-label clr-col-md-4">
|
|
75
|
-
{{ localization.
|
|
75
|
+
{{ localization.auth.password }}
|
|
76
76
|
</label>
|
|
77
77
|
|
|
78
78
|
<div
|