bfg-common 1.5.60 → 1.5.62
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/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/localization/local_be.json +5 -2
- package/assets/localization/local_en.json +5 -2
- package/assets/localization/local_hy.json +5 -2
- package/assets/localization/local_kk.json +5 -2
- package/assets/localization/local_ru.json +5 -2
- package/assets/localization/local_zh.json +5 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +32 -28
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +1040 -1040
- package/components/common/monitor/advanced/tools/lib/config/advancedToolbar.ts +146 -130
- package/components/common/vm/actions/add/Add.vue +205 -194
- package/components/common/vm/actions/add/New.vue +429 -0
- package/components/common/vm/actions/add/Old.vue +371 -0
- package/components/common/vm/actions/add/lib/config/steps.ts +19 -3
- package/components/common/vm/actions/clone/toTemplate/ToTemplate.vue +29 -37
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +5 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +3 -3
- package/components/common/vm/actions/common/select/createType/CreateType.vue +15 -51
- package/components/common/vm/actions/common/select/createType/New.vue +84 -0
- package/components/common/vm/actions/common/select/createType/Old.vue +70 -0
- package/components/common/vm/actions/common/select/createType/lib/config/items.ts +24 -4
- package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -0
- package/components/common/vm/actions/common/select/name/Name.vue +24 -93
- package/components/common/vm/actions/common/select/name/New.vue +143 -0
- package/components/common/vm/actions/common/select/name/Old.vue +119 -0
- package/components/common/vm/actions/common/select/template/Template.vue +2 -3
- package/components/common/vm/actions/common/select/template/TemplateTreeView.vue +1 -1
- package/package.json +1 -1
|
@@ -1,160 +1,138 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
v-if="selectedStep.id > dynamicSteps.compatibility"
|
|
137
|
-
class="vm-hardware-version"
|
|
138
|
-
>{{ compatibilityInfo }}</span
|
|
139
|
-
>
|
|
140
|
-
</div>
|
|
141
|
-
</template>
|
|
142
|
-
|
|
143
|
-
<template #modalFooterContent>
|
|
144
|
-
<div v-if="isShowPowerOn" class="power-on-by-default-wrap">
|
|
145
|
-
<input
|
|
146
|
-
id="power-on-by-default"
|
|
147
|
-
v-model="isPowerOnByDefault"
|
|
148
|
-
data-id="power-on-by-default"
|
|
149
|
-
type="checkbox"
|
|
150
|
-
/>
|
|
151
|
-
<label for="power-on-by-default" class="label-text-normal">{{
|
|
152
|
-
localization.common.powerOnByDefault
|
|
153
|
-
}}</label>
|
|
154
|
-
</div>
|
|
155
|
-
</template>
|
|
156
|
-
</atoms-wizard>
|
|
157
|
-
</div>
|
|
2
|
+
<common-vm-actions-add-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
v-model:vm-form="vmForm"
|
|
5
|
+
v-model:selected-create-type="selectedCreateType"
|
|
6
|
+
v-model:is-power-on-by-default="isPowerOnByDefault"
|
|
7
|
+
:project="props.project"
|
|
8
|
+
:nodes="props.nodes"
|
|
9
|
+
:files="props.files"
|
|
10
|
+
:networks-table="props.networksTable"
|
|
11
|
+
:datastore="props.datastore"
|
|
12
|
+
:error-validation-fields="props.errorValidationFields"
|
|
13
|
+
:ready-complete-table-info="props.readyCompleteTableInfo"
|
|
14
|
+
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
|
15
|
+
:import-from-v-m-warev-sphere="props.importFromVMWarevSphere"
|
|
16
|
+
:get-datastore-table-func="props.getDatastoreTableFunc"
|
|
17
|
+
:passthrough-devices="props.passthroughDevices"
|
|
18
|
+
:mediated-devices="props.mediatedDevices"
|
|
19
|
+
:templates-tree="props.templatesTree"
|
|
20
|
+
:wizard="wizard"
|
|
21
|
+
:selected-scheme="selectedScheme"
|
|
22
|
+
:template-submit="templateSubmit"
|
|
23
|
+
:name-form-submit="nameFormSubmit"
|
|
24
|
+
:storage-submit="storageSubmit"
|
|
25
|
+
:customize-hardware-submit="customizeHardwareSubmit"
|
|
26
|
+
:is-sphere="isSphere"
|
|
27
|
+
:compatibility="compatibility"
|
|
28
|
+
:guestOsFamilies="guestOsFamilies"
|
|
29
|
+
:guestOsVersions="guestOsVersions"
|
|
30
|
+
:machineTypes="machineTypes"
|
|
31
|
+
:virtual-hardware-hard-disks-local="virtualHardwareHardDisksLocal"
|
|
32
|
+
:virtual-hardware-cd-dvd-drives-local="virtualHardwareCdDvdDrivesLocal"
|
|
33
|
+
:virtual-hardware-networks-local="virtualHardwareNetworksLocal"
|
|
34
|
+
:max-cpus="maxCpus"
|
|
35
|
+
:max-memory="maxMemory"
|
|
36
|
+
:cpu-models="cpuModels"
|
|
37
|
+
:selected-nav-item="selectedNavItem"
|
|
38
|
+
:compatibility-info="compatibilityInfo"
|
|
39
|
+
:is-show-power-on="isShowPowerOn"
|
|
40
|
+
:compute-resource-submit="computeResourceSubmit"
|
|
41
|
+
:data-center="props.dataCenter"
|
|
42
|
+
:compute-resource="props.computeResource"
|
|
43
|
+
:compute-resource-tree="props.computeResourceTree"
|
|
44
|
+
:vmt-settings="props.vmtSettings"
|
|
45
|
+
@check-name="onCheckName"
|
|
46
|
+
@get-storage="emits('get-storage', $event)"
|
|
47
|
+
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
48
|
+
@get-active-device-child="emits('get-active-device-child', $event)"
|
|
49
|
+
@show-datastore-child="emits('show-datastore-child', $event)"
|
|
50
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
51
|
+
@get-networks-table="emits('get-networks-table', $event)"
|
|
52
|
+
@get-pci-devices="emits('get-pci-devices')"
|
|
53
|
+
@change-steps="onChangeSteps"
|
|
54
|
+
@change-template="onChangeTemplate"
|
|
55
|
+
@change-name="onChangeName(...$event)"
|
|
56
|
+
@change-storage="onChangeStorage"
|
|
57
|
+
@change-select-options="onChangeSelectOptions"
|
|
58
|
+
@change-compatibility="onChangeCompatibility"
|
|
59
|
+
@change-boot-order="onChangeBootOrder"
|
|
60
|
+
@change-customize-hardware="onChangeCustomizeHardware"
|
|
61
|
+
@clear-compute-resource-tree="emits('clear-compute-resource-tree')"
|
|
62
|
+
@change-compute-resource="onChangeComputeResource"
|
|
63
|
+
@select-compute-resource-tree="onSelectComputeResourceTree"
|
|
64
|
+
@get-compute-resource-tree="emits('get-compute-resource-tree', $event)"
|
|
65
|
+
@show-compute-resource-tree="emits('show-compute-resource-tree', $event)"
|
|
66
|
+
@finish="onFinish"
|
|
67
|
+
@hide="onHideModal"
|
|
68
|
+
/>
|
|
69
|
+
<common-vm-actions-add-old
|
|
70
|
+
v-else
|
|
71
|
+
v-model:vm-form="vmForm"
|
|
72
|
+
v-model:selected-create-type="selectedCreateType"
|
|
73
|
+
v-model:is-power-on-by-default="isPowerOnByDefault"
|
|
74
|
+
:project="props.project"
|
|
75
|
+
:nodes="props.nodes"
|
|
76
|
+
:files="props.files"
|
|
77
|
+
:networks-table="props.networksTable"
|
|
78
|
+
:datastore="props.datastore"
|
|
79
|
+
:error-validation-fields="props.errorValidationFields"
|
|
80
|
+
:ready-complete-table-info="props.readyCompleteTableInfo"
|
|
81
|
+
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
|
82
|
+
:import-from-v-m-warev-sphere="props.importFromVMWarevSphere"
|
|
83
|
+
:get-datastore-table-func="props.getDatastoreTableFunc"
|
|
84
|
+
:passthrough-devices="props.passthroughDevices"
|
|
85
|
+
:mediated-devices="props.mediatedDevices"
|
|
86
|
+
:templates-tree="props.templatesTree"
|
|
87
|
+
:wizard="wizard"
|
|
88
|
+
:selected-scheme="selectedScheme"
|
|
89
|
+
:template-submit="templateSubmit"
|
|
90
|
+
:name-form-submit="nameFormSubmit"
|
|
91
|
+
:storage-submit="storageSubmit"
|
|
92
|
+
:customize-hardware-submit="customizeHardwareSubmit"
|
|
93
|
+
:is-sphere="isSphere"
|
|
94
|
+
:compatibility="compatibility"
|
|
95
|
+
:guestOsFamilies="guestOsFamilies"
|
|
96
|
+
:guestOsVersions="guestOsVersions"
|
|
97
|
+
:machineTypes="machineTypes"
|
|
98
|
+
:virtual-hardware-hard-disks-local="virtualHardwareHardDisksLocal"
|
|
99
|
+
:virtual-hardware-cd-dvd-drives-local="virtualHardwareCdDvdDrivesLocal"
|
|
100
|
+
:virtual-hardware-networks-local="virtualHardwareNetworksLocal"
|
|
101
|
+
:max-cpus="maxCpus"
|
|
102
|
+
:max-memory="maxMemory"
|
|
103
|
+
:cpu-models="cpuModels"
|
|
104
|
+
:selected-nav-item="selectedNavItem"
|
|
105
|
+
:compatibility-info="compatibilityInfo"
|
|
106
|
+
:is-show-power-on="isShowPowerOn"
|
|
107
|
+
:compute-resource-submit="computeResourceSubmit"
|
|
108
|
+
:data-center="props.dataCenter"
|
|
109
|
+
:compute-resource="props.computeResource"
|
|
110
|
+
:compute-resource-tree="props.computeResourceTree"
|
|
111
|
+
:vmt-settings="props.vmtSettings"
|
|
112
|
+
@check-name="onCheckName"
|
|
113
|
+
@get-storage="emits('get-storage', $event)"
|
|
114
|
+
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
115
|
+
@get-active-device-child="emits('get-active-device-child', $event)"
|
|
116
|
+
@show-datastore-child="emits('show-datastore-child', $event)"
|
|
117
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
118
|
+
@get-networks-table="emits('get-networks-table', $event)"
|
|
119
|
+
@get-pci-devices="emits('get-pci-devices')"
|
|
120
|
+
@change-steps="onChangeSteps"
|
|
121
|
+
@change-template="onChangeTemplate"
|
|
122
|
+
@change-name="onChangeName(...$event)"
|
|
123
|
+
@change-storage="onChangeStorage"
|
|
124
|
+
@change-select-options="onChangeSelectOptions"
|
|
125
|
+
@change-compatibility="onChangeCompatibility"
|
|
126
|
+
@change-boot-order="onChangeBootOrder"
|
|
127
|
+
@change-customize-hardware="onChangeCustomizeHardware"
|
|
128
|
+
@clear-compute-resource-tree="emits('clear-compute-resource-tree')"
|
|
129
|
+
@change-compute-resource="onChangeComputeResource"
|
|
130
|
+
@select-compute-resource-tree="onSelectComputeResourceTree"
|
|
131
|
+
@get-compute-resource-tree="emits('get-compute-resource-tree', $event)"
|
|
132
|
+
@show-compute-resource-tree="emits('show-compute-resource-tree', $event)"
|
|
133
|
+
@finish="onFinish"
|
|
134
|
+
@hide="onHideModal"
|
|
135
|
+
/>
|
|
158
136
|
</template>
|
|
159
137
|
|
|
160
138
|
<script setup lang="ts">
|
|
@@ -190,7 +168,6 @@ import type {
|
|
|
190
168
|
UI_I_VmFormCash,
|
|
191
169
|
} from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
192
170
|
import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
|
|
193
|
-
import type { UI_I_OsChange } from '~/components/common/vm/actions/common/select/lib/models/interfaces'
|
|
194
171
|
import type {
|
|
195
172
|
UI_I_SendDataCpu,
|
|
196
173
|
UI_I_SendDataMemory,
|
|
@@ -203,6 +180,7 @@ import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/mo
|
|
|
203
180
|
import type {
|
|
204
181
|
UI_I_MediatedDevice,
|
|
205
182
|
UI_I_PciDevice,
|
|
183
|
+
UI_I_VmSettings,
|
|
206
184
|
} from '~/lib/models/store/vm/interfaces'
|
|
207
185
|
import { capabilities } from '~/components/common/vm/actions/common/lib/config/capabilities'
|
|
208
186
|
import {
|
|
@@ -233,6 +211,7 @@ const props = defineProps<{
|
|
|
233
211
|
vmNameInWizard: string
|
|
234
212
|
templatesTree: UI_I_TreeNode[]
|
|
235
213
|
capabilities?: UI_I_Capabilities
|
|
214
|
+
vmtSettings?: UI_I_VmSettings | null
|
|
236
215
|
dataCenter?: UI_I_TreeNode // для сферы
|
|
237
216
|
computeResource?: UI_I_TreeNode // для сферы
|
|
238
217
|
computeResourceTree?: UI_I_TreeNode[] // для сферы
|
|
@@ -249,6 +228,7 @@ const emits = defineEmits<{
|
|
|
249
228
|
(event: 'get-pci-devices'): void
|
|
250
229
|
(event: 'get-pci-devices'): void
|
|
251
230
|
(event: 'hide'): void
|
|
231
|
+
(event: 'select-template', value: string): void
|
|
252
232
|
(
|
|
253
233
|
event: 'get-compute-resource-tree',
|
|
254
234
|
value: { id: string | number; cb: () => void }
|
|
@@ -258,7 +238,8 @@ const emits = defineEmits<{
|
|
|
258
238
|
(event: 'clear-compute-resource-tree'): void // для сферы
|
|
259
239
|
}>()
|
|
260
240
|
|
|
261
|
-
const { $recursion } = useNuxtApp()
|
|
241
|
+
const { $store, $recursion }: any = useNuxtApp()
|
|
242
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
262
243
|
|
|
263
244
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
264
245
|
|
|
@@ -333,7 +314,7 @@ const validationFunc = async (
|
|
|
333
314
|
nextStep.id
|
|
334
315
|
)
|
|
335
316
|
) {
|
|
336
|
-
const nameValidation = await
|
|
317
|
+
const nameValidation = await onCheckName(value)
|
|
337
318
|
|
|
338
319
|
value = nameValidation.newValue
|
|
339
320
|
stepHasError = stepHasError || nameValidation.stepHasError
|
|
@@ -368,11 +349,23 @@ const validationFunc = async (
|
|
|
368
349
|
nextStep.id
|
|
369
350
|
)
|
|
370
351
|
) {
|
|
371
|
-
const
|
|
352
|
+
const validation = await checkCustomizeHardware(value)
|
|
372
353
|
|
|
373
|
-
value =
|
|
354
|
+
value = validation.newValue
|
|
374
355
|
|
|
375
|
-
stepHasError = stepHasError ||
|
|
356
|
+
stepHasError = stepHasError || validation.stepHasError
|
|
357
|
+
} else if (
|
|
358
|
+
wizard.isValidateForStep(
|
|
359
|
+
dynamicSteps.customizeHardwareTemplate,
|
|
360
|
+
currentStep.id,
|
|
361
|
+
nextStep.id
|
|
362
|
+
)
|
|
363
|
+
) {
|
|
364
|
+
const validation = await checkCustomizeHardware(value, true)
|
|
365
|
+
|
|
366
|
+
value = validation.newValue
|
|
367
|
+
|
|
368
|
+
stepHasError = stepHasError || validation.stepHasError
|
|
376
369
|
}
|
|
377
370
|
wizard.setLoader(false)
|
|
378
371
|
|
|
@@ -415,7 +408,7 @@ const checkTemplate = async (
|
|
|
415
408
|
}
|
|
416
409
|
})
|
|
417
410
|
}
|
|
418
|
-
const
|
|
411
|
+
const onCheckName = async (
|
|
419
412
|
value: UI_I_WizardStep[]
|
|
420
413
|
): Promise<UI_I_ValidationReturn> => {
|
|
421
414
|
let stepHasError = false
|
|
@@ -509,7 +502,8 @@ const checkStorage = async (
|
|
|
509
502
|
})
|
|
510
503
|
}
|
|
511
504
|
const checkCustomizeHardware = async (
|
|
512
|
-
value: UI_I_WizardStep[]
|
|
505
|
+
value: UI_I_WizardStep[],
|
|
506
|
+
forTemplate = false
|
|
513
507
|
): Promise<UI_I_ValidationReturn> => {
|
|
514
508
|
let stepHasError = false
|
|
515
509
|
|
|
@@ -517,7 +511,9 @@ const checkCustomizeHardware = async (
|
|
|
517
511
|
customizeHardwareSubmit.value = (isValid: boolean) => {
|
|
518
512
|
if (!isValid) {
|
|
519
513
|
stepHasError = wizard.setValidation(
|
|
520
|
-
|
|
514
|
+
forTemplate
|
|
515
|
+
? dynamicSteps.customizeHardwareTemplate
|
|
516
|
+
: dynamicSteps.customizeHardware,
|
|
521
517
|
'customizeHardware',
|
|
522
518
|
{
|
|
523
519
|
fieldMessage: 'aaa',
|
|
@@ -525,10 +521,17 @@ const checkCustomizeHardware = async (
|
|
|
525
521
|
}
|
|
526
522
|
)
|
|
527
523
|
} else if (
|
|
528
|
-
wizard.hasMessage(
|
|
524
|
+
wizard.hasMessage(
|
|
525
|
+
forTemplate
|
|
526
|
+
? dynamicSteps.customizeHardwareTemplate
|
|
527
|
+
: dynamicSteps.customizeHardware,
|
|
528
|
+
'customizeHardware'
|
|
529
|
+
)
|
|
529
530
|
) {
|
|
530
531
|
value = wizard.removeValidation(
|
|
531
|
-
|
|
532
|
+
forTemplate
|
|
533
|
+
? dynamicSteps.customizeHardwareTemplate
|
|
534
|
+
: dynamicSteps.customizeHardware,
|
|
532
535
|
'customizeHardware',
|
|
533
536
|
value
|
|
534
537
|
)
|
|
@@ -562,7 +565,7 @@ const vmFormCash = ref<UI_I_VmFormCash>({
|
|
|
562
565
|
computeResourceTypeAndId: null,
|
|
563
566
|
})
|
|
564
567
|
|
|
565
|
-
const onChangeName = (name: string, node: UI_I_TreeNode): void => {
|
|
568
|
+
const onChangeName = (name: string, node: UI_I_TreeNode | null): void => {
|
|
566
569
|
vmForm.value.name = name
|
|
567
570
|
if (isSphere.value) {
|
|
568
571
|
vmForm.value.locationPath = node.id
|
|
@@ -723,8 +726,9 @@ const maxCpus = ref<number>(capabilities.maxCpus)
|
|
|
723
726
|
const maxMemory = ref<number>(capabilities.maxMemory)
|
|
724
727
|
|
|
725
728
|
const selectedTemplate = ref<string>('')
|
|
726
|
-
const onChangeTemplate = (
|
|
727
|
-
selectedTemplate.value = id
|
|
729
|
+
const onChangeTemplate = (node: UI_I_TreeNode): void => {
|
|
730
|
+
selectedTemplate.value = node.id.toString()
|
|
731
|
+
emits('select-template', node.id.toString())
|
|
728
732
|
}
|
|
729
733
|
const selectedOptions = ref<string[]>([])
|
|
730
734
|
const onChangeSelectOptions = (options: string[]) => {
|
|
@@ -741,34 +745,41 @@ const onChangeSelectOptions = (options: string[]) => {
|
|
|
741
745
|
} else {
|
|
742
746
|
wizard.changeScheme(2)
|
|
743
747
|
}
|
|
748
|
+
|
|
749
|
+
isPowerOnByDefault.value = options.includes('power-on')
|
|
744
750
|
}
|
|
745
751
|
|
|
746
752
|
const onHideModal = (): void => {
|
|
747
753
|
emits('hide')
|
|
748
754
|
}
|
|
749
|
-
</script>
|
|
750
755
|
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
.
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
.
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
.
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
756
|
+
watch(
|
|
757
|
+
() => props.vmtSettings,
|
|
758
|
+
(newValue) => {
|
|
759
|
+
if (newValue) {
|
|
760
|
+
vmForm.value.name = newValue.name
|
|
761
|
+
vmForm.value.compatibility =
|
|
762
|
+
newValue.compatibility || vmForm.value.compatibility
|
|
763
|
+
vmForm.value.storage = newValue.storage
|
|
764
|
+
if (customizeHardware.value?.virtualHardware) {
|
|
765
|
+
customizeHardware.value.virtualHardware.cdDvdDrives =
|
|
766
|
+
newValue.cdDvdDrives
|
|
767
|
+
customizeHardware.value.virtualHardware.hardDisks = newValue.hardDisks
|
|
768
|
+
customizeHardware.value.virtualHardware.networks = newValue.networks
|
|
769
|
+
customizeHardware.value.virtualHardware.cpu = newValue.cpu
|
|
770
|
+
customizeHardware.value.virtualHardware.memory = newValue.memory
|
|
771
|
+
customizeHardware.value.virtualHardware.videoCard = newValue.videoCard
|
|
772
|
+
customizeHardware.value.virtualHardware.usbController =
|
|
773
|
+
newValue.usbController
|
|
774
|
+
customizeHardware.value.virtualHardware.pciDevices = newValue.pciDevices
|
|
775
|
+
customizeHardware.value.vmOptions = newValue.options
|
|
776
|
+
}
|
|
777
|
+
maxCpus.value = newValue.cpu.max_vcpus
|
|
778
|
+
cpuModels.value = newValue.cpu.model
|
|
779
|
+
isPowerOnByDefault.value = false
|
|
780
|
+
}
|
|
772
781
|
}
|
|
773
|
-
|
|
774
|
-
</
|
|
782
|
+
)
|
|
783
|
+
</script>
|
|
784
|
+
|
|
785
|
+
<style scoped lang="scss"></style>
|