diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/VUART.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/VUART.vue
index 7f4ff3f0e..a704af79c 100644
--- a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/VUART.vue
+++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/VUART.vue
@@ -9,14 +9,17 @@
-
+
must have value
@@ -34,14 +37,17 @@
-
+
must have value
@@ -53,14 +59,16 @@
-
+
must have value
@@ -72,41 +80,46 @@
- {{vuartEndpointTitle}}:
+ {{ vuartEndpointTitle }}:
-
+
- {{vuartVIoPortTitle}}:
+ {{ vuartVIoPortTitle }}:
-
-
-
-
- {{vuartVBDFTitle}}
+
+
+
+
+
+ {{ vuartVBDFTitle }}
- Connection_{{ index + 1 }}-{{ VUARTConn.endpoint[0].vm_name }}
+ Connection_{{ index + 1 }}-{{ VUARTConn.endpoint[0].vm_name }}
-
-
+
+
{{ this.VBDFType["err:pattern"] }}
- Connection_{{ index + 1 }}-{{ VUARTConn.endpoint[1].vm_name }}
+ Connection_{{ index + 1 }}-{{ VUARTConn.endpoint[1].vm_name }}
-
-
+
+
{{ this.VBDFType["err:pattern"] }}
@@ -175,11 +188,12 @@ export default {
let enumNames = this.rootSchema.definitions['VuartType']['enumNames']
let VuartType = []
enumValue.forEach((item, i) => {
- VuartType.push({value:item, text:enumNames[i]})
+ VuartType.push({value: item, text: enumNames[i]})
})
let epTypeProp = this.rootSchema.definitions.VuartEndpointType.properties
let conTypeProp = this.rootSchema.definitions.VuartConnectionType.properties
return {
+ selected: {0: {oldValue: ""}, 1: {oldValue: ""}},
VuartEndpointType: this.rootSchema.definitions['VuartEndpointType']['properties'],
vmNameTitle: epTypeProp.vm_name.title,
vuartConnectionTypeTitle: conTypeProp.type.title,
@@ -244,7 +258,14 @@ export default {
}
]
})
- }
+ },
+ selectChange(value, obj, endpoint) {
+ if (this.selected[endpoint].oldValue != value) {
+ obj.vbdf = ""
+ obj.io_port = ""
+ }
+ this.selected[endpoint].oldValue = value
+ },
}
};