diff --git a/src/components/autocomplete/index.vue b/src/components/autocomplete/index.vue
index e66aa91..1d3b1dd 100644
--- a/src/components/autocomplete/index.vue
+++ b/src/components/autocomplete/index.vue
@@ -1,5 +1,5 @@
-
+ > -->
+
+
+
+
+
diff --git a/src/views/product/components/add.vue b/src/views/product/components/add.vue
index 2e08e6f..02de4f5 100644
--- a/src/views/product/components/add.vue
+++ b/src/views/product/components/add.vue
@@ -110,10 +110,13 @@ export default {
refineryList: [],
configAutocomplete: {
serveTarget: refineryInfoServe.findByEntity,
- autocomplateKey: "refineryName",
- valueKey: "refineryName",
+ autocompleteKey: "refineryName",
+ labelKey: "refineryName",
+ valueKey: "id",
placeholder: "炼厂名称",
querykey: "refineryId",
+ echoId: "",
+ echoName: "",
},
productTypeList: [
{
@@ -170,6 +173,8 @@ export default {
if (id) {
//回显
this.form = JSON.parse(JSON.stringify(this.controlWindows.addInfo));
+ this.configAutocomplete.echoId = id;
+ this.configAutocomplete.echoName = this.form.refineryName;
console.log("this.form", this.form.floorPrice);
}
},
diff --git a/src/views/product/components/create.vue b/src/views/product/components/create.vue
index dda986e..87a9e4d 100644
--- a/src/views/product/components/create.vue
+++ b/src/views/product/components/create.vue
@@ -136,8 +136,9 @@ export default {
refineryList: [],
configAutocomplete: {
serveTarget: refineryInfoServe.findByEntity,
- autocomplateKey: "refineryName",
- valueKey: "refineryName",
+ autocompleteKey: "refineryName",
+ labelKey: "refineryName",
+ valueKey: "id",
placeholder: "炼厂名称",
querykey: "refineryId",
},
diff --git a/src/views/product/index.vue b/src/views/product/index.vue
index 4140b42..88a1c54 100644
--- a/src/views/product/index.vue
+++ b/src/views/product/index.vue
@@ -224,8 +224,9 @@ export default {
},
configAutocomplete: {
serveTarget: refineryInfoServe.findByEntity,
- autocomplateKey: "refineryName",
- valueKey: "refineryName",
+ autocompleteKey: "refineryName",
+ labelKey: "refineryName",
+ valueKey: "id",
placeholder: "炼厂名称",
querykey: "refineryId",
},
diff --git a/src/views/refineryAccount/components/add.vue b/src/views/refineryAccount/components/add.vue
index 1e73176..b493cb3 100644
--- a/src/views/refineryAccount/components/add.vue
+++ b/src/views/refineryAccount/components/add.vue
@@ -70,8 +70,9 @@ export default {
refineryList: [],
configAutocomplete: {
serveTarget: refineryInfoServe.findByEntity,
- autocomplateKey: "refineryName",
- valueKey: "refineryName",
+ autocompleteKey: "refineryName",
+ labelKey: "refineryName",
+ valueKey: "id",
placeholder: "炼厂名称",
querykey: "refineryId",
},
diff --git a/src/views/refineryAccount/index.vue b/src/views/refineryAccount/index.vue
index 1b4fc5f..d5efdd6 100644
--- a/src/views/refineryAccount/index.vue
+++ b/src/views/refineryAccount/index.vue
@@ -162,8 +162,9 @@ export default {
},
configAutocomplete: {
serveTarget: refineryInfoServe.findByEntity,
- autocomplateKey: "refineryName",
- valueKey: "refineryName",
+ autocompleteKey: "refineryName",
+ labelKey: "refineryName",
+ valueKey: "id",
placeholder: "炼厂名称",
querykey: "refineryId",
},
diff --git a/src/views/refineryInfo/index.vue b/src/views/refineryInfo/index.vue
index 858d600..a6a8179 100644
--- a/src/views/refineryInfo/index.vue
+++ b/src/views/refineryInfo/index.vue
@@ -189,8 +189,9 @@ export default {
},
configAutocomplete: {
serveTarget: serve.findByEntity,
- autocomplateKey: "refineryName",
- valueKey: "refineryName",
+ autocompleteKey: "refineryName",
+ labelKey: "refineryName",
+ valueKey: "id",
placeholder: "炼厂名称",
querykey: "refineryId",
},