Skip to content

Commit e790047

Browse files
authored
ui: fix vmware nicadapter detail for register template (#8173)
This PR Fixes: #7864
1 parent 11b5831 commit e790047

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

ui/src/views/image/RegisterOrUploadTemplate.vue

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
</a-form-item>
229229
</a-col>
230230
<a-col :md="24" :lg="12" v-if="hyperVMWShow && !deployasis">
231-
<a-form-item :label="$t('label.nicadaptertype')" name="nicadaptertype" ref="nicadaptertype">
231+
<a-form-item ref="nicAdapterType" name="nicAdapterType" :label="$t('label.nicadaptertype')">
232232
<a-select
233233
v-model:value="form.nicAdapterType"
234234
showSearch
@@ -701,30 +701,30 @@ export default {
701701
702702
this.rootDisk.opts = controller
703703
},
704-
fetchNicAdapterType () {
705-
const nicAdapterType = []
706-
nicAdapterType.push({
704+
fetchNicAdapterTypes () {
705+
const nicAdapterTypes = []
706+
nicAdapterTypes.push({
707707
id: '',
708708
description: ''
709709
})
710-
nicAdapterType.push({
710+
nicAdapterTypes.push({
711711
id: 'E1000',
712712
description: 'E1000'
713713
})
714-
nicAdapterType.push({
714+
nicAdapterTypes.push({
715715
id: 'PCNet32',
716716
description: 'PCNet32'
717717
})
718-
nicAdapterType.push({
718+
nicAdapterTypes.push({
719719
id: 'Vmxnet2',
720720
description: 'Vmxnet2'
721721
})
722-
nicAdapterType.push({
722+
nicAdapterTypes.push({
723723
id: 'Vmxnet3',
724724
description: 'Vmxnet3'
725725
})
726726
727-
this.nicAdapterType.opts = nicAdapterType
727+
this.nicAdapterType.opts = nicAdapterTypes
728728
},
729729
fetchKeyboardType () {
730730
const keyboardType = []
@@ -882,7 +882,7 @@ export default {
882882
this.resetSelect(arrSelectReset)
883883
this.fetchFormat(hyperVisor)
884884
this.fetchRootDisk(hyperVisor)
885-
this.fetchNicAdapterType()
885+
this.fetchNicAdapterTypes()
886886
this.fetchKeyboardType()
887887
888888
this.form.rootDiskControllerType = this.rootDisk.opts.length > 0 ? 'osdefault' : ''
@@ -897,10 +897,10 @@ export default {
897897
delete this.form.zoneids
898898
}
899899
const formRaw = toRaw(this.form)
900-
const values = this.handleRemoveFields(formRaw)
900+
const formvalues = this.handleRemoveFields(formRaw)
901901
let params = {}
902-
for (const key in values) {
903-
const input = values[key]
902+
for (const key in formvalues) {
903+
const input = formvalues[key]
904904
905905
if (input === undefined) {
906906
continue

0 commit comments

Comments
 (0)