Skip to content

Commit 29a223b

Browse files
committed
Merge remote-tracking branch 'apache/4.18'
2 parents 68e504a + e790047 commit 29a223b

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
@@ -269,7 +269,7 @@
269269
</a-form-item>
270270
</a-col>
271271
<a-col :md="24" :lg="12" v-if="hyperVMWShow && !deployasis">
272-
<a-form-item :label="$t('label.nicadaptertype')" name="nicadaptertype" ref="nicadaptertype">
272+
<a-form-item ref="nicAdapterType" name="nicAdapterType" :label="$t('label.nicadaptertype')">
273273
<a-select
274274
v-model:value="form.nicAdapterType"
275275
showSearch
@@ -812,30 +812,30 @@ export default {
812812
813813
this.rootDisk.opts = controller
814814
},
815-
fetchNicAdapterType () {
816-
const nicAdapterType = []
817-
nicAdapterType.push({
815+
fetchNicAdapterTypes () {
816+
const nicAdapterTypes = []
817+
nicAdapterTypes.push({
818818
id: '',
819819
description: ''
820820
})
821-
nicAdapterType.push({
821+
nicAdapterTypes.push({
822822
id: 'E1000',
823823
description: 'E1000'
824824
})
825-
nicAdapterType.push({
825+
nicAdapterTypes.push({
826826
id: 'PCNet32',
827827
description: 'PCNet32'
828828
})
829-
nicAdapterType.push({
829+
nicAdapterTypes.push({
830830
id: 'Vmxnet2',
831831
description: 'Vmxnet2'
832832
})
833-
nicAdapterType.push({
833+
nicAdapterTypes.push({
834834
id: 'Vmxnet3',
835835
description: 'Vmxnet3'
836836
})
837837
838-
this.nicAdapterType.opts = nicAdapterType
838+
this.nicAdapterType.opts = nicAdapterTypes
839839
},
840840
fetchKeyboardType () {
841841
const keyboardType = []
@@ -1001,7 +1001,7 @@ export default {
10011001
this.resetSelect(arrSelectReset)
10021002
this.fetchFormat(hyperVisor)
10031003
this.fetchRootDisk(hyperVisor)
1004-
this.fetchNicAdapterType()
1004+
this.fetchNicAdapterTypes()
10051005
this.fetchKeyboardType()
10061006
10071007
this.form.rootDiskControllerType = this.rootDisk.opts.length > 0 ? 'osdefault' : ''
@@ -1016,10 +1016,10 @@ export default {
10161016
delete this.form.zoneids
10171017
}
10181018
const formRaw = toRaw(this.form)
1019-
const values = this.handleRemoveFields(formRaw)
1019+
const formvalues = this.handleRemoveFields(formRaw)
10201020
let params = {}
1021-
for (const key in values) {
1022-
const input = values[key]
1021+
for (const key in formvalues) {
1022+
const input = formvalues[key]
10231023
10241024
if (input === undefined) {
10251025
continue

0 commit comments

Comments
 (0)