bfg-common 1.4.366 → 1.4.368
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.
|
@@ -99,19 +99,24 @@ import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/schedu
|
|
|
99
99
|
import { constructDataReadyViewFunc } from '~/components/common/wizards/vm/migrate/lib/config/constructDataReady'
|
|
100
100
|
import * as validation from '~/components/common/wizards/vm/migrate/lib/validations'
|
|
101
101
|
|
|
102
|
-
const props =
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
102
|
+
const props = withDefaults(
|
|
103
|
+
defineProps<{
|
|
104
|
+
project: UI_T_Project
|
|
105
|
+
isScheduledTasks: boolean
|
|
106
|
+
vmSettings: UI_I_VmSettings | null
|
|
107
|
+
vmName: string
|
|
108
|
+
getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
|
|
109
|
+
getComputeResourceData: (payload: UI_I_TablePayload) => Promise<void>
|
|
110
|
+
datastore: UI_I_DatastoreTableItem[]
|
|
111
|
+
configurePerDisks: UI_I_StorageConfigurePerDiskItem[]
|
|
112
|
+
computeResourceTableData?: any
|
|
113
|
+
computeResourceTree?: UI_I_TreeNode | null
|
|
114
|
+
selectedVirtualMachine?: string
|
|
115
|
+
}>(),
|
|
116
|
+
{
|
|
117
|
+
computeResourceTree: null,
|
|
118
|
+
}
|
|
119
|
+
)
|
|
115
120
|
const emits = defineEmits<{
|
|
116
121
|
(event: 'hide'): void
|
|
117
122
|
(event: 'finish', value: UI_I_MigrateFormLocal): void
|
|
@@ -175,18 +180,18 @@ const validationFunc = async (
|
|
|
175
180
|
): Promise<UI_I_ValidationReturn> => {
|
|
176
181
|
let stepHasError = false
|
|
177
182
|
|
|
178
|
-
if (wizard.isValidateForStep(3, currentStep.id, nextStep.id)) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
183
|
+
// if (wizard.isValidateForStep(3, currentStep.id, nextStep.id)) {
|
|
184
|
+
// const nameValidation = await validation.checkSelectedResourceSync(
|
|
185
|
+
// localization.value,
|
|
186
|
+
// form.value.resource,
|
|
187
|
+
// wizard,
|
|
188
|
+
// value
|
|
189
|
+
// )
|
|
190
|
+
//
|
|
191
|
+
// value = nameValidation.newValue
|
|
192
|
+
//
|
|
193
|
+
// stepHasError = nameValidation.stepHasError
|
|
194
|
+
// }
|
|
190
195
|
|
|
191
196
|
if (wizard.isValidateForStep(4, currentStep.id, nextStep.id)) {
|
|
192
197
|
const nameValidation = await validation.checkSelectedDatastoreSync(
|
|
@@ -62,7 +62,7 @@ const props = defineProps<{
|
|
|
62
62
|
alertMessages: string[]
|
|
63
63
|
getComputeResourceData: (payload: UI_I_TablePayload) => Promise<void>
|
|
64
64
|
computeResourceData: any
|
|
65
|
-
computeResourceTree: UI_I_TreeNode
|
|
65
|
+
computeResourceTree: UI_I_TreeNode | null
|
|
66
66
|
}>()
|
|
67
67
|
const model = defineModel<UI_I_MigrateFormLocal>({ required: true })
|
|
68
68
|
const emits = defineEmits<{
|
|
@@ -62,7 +62,7 @@ const props = defineProps<{
|
|
|
62
62
|
totalPages: number
|
|
63
63
|
type: UI_T_SelectComputeResourceTabType
|
|
64
64
|
}>()
|
|
65
|
-
const selectedDataLocal = defineModel<number>({ required: true })
|
|
65
|
+
const selectedDataLocal = defineModel<number | null>({ required: true })
|
|
66
66
|
|
|
67
67
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
68
68
|
|