xiugai
This commit is contained in:
@@ -98,7 +98,6 @@
|
||||
|
||||
<script>
|
||||
import serve from "api/product.js";
|
||||
import refineryInfoServe from "api/refineryInfo.js";
|
||||
|
||||
import autocomplete from "components/autocomplete/index.vue";
|
||||
export default {
|
||||
@@ -139,7 +138,7 @@ export default {
|
||||
refineryList: [],
|
||||
productRowData:{},
|
||||
configAutocomplete: {
|
||||
serveTarget: refineryInfoServe.findByEntity,
|
||||
serveTarget: serve.findByEntity,
|
||||
autocompleteKey: "refineryName",
|
||||
labelKey: "refineryName",
|
||||
valueKey: "id",
|
||||
@@ -216,7 +215,13 @@ export default {
|
||||
enableMark:'ENABLE'
|
||||
}
|
||||
await serve.getRefineryProductList(data).then((res) => {
|
||||
this.productNameList = res.data;
|
||||
if(res.data.length>0){
|
||||
this.productNameList = res.data;
|
||||
}else{
|
||||
this.productNameList = []
|
||||
this.form.productId = ''
|
||||
}
|
||||
|
||||
})
|
||||
// this.form.productId = this.productNameList[0].productId
|
||||
console.log(this.productRowData,this.productNameList,'aaaaaaaaaa')
|
||||
|
||||
Reference in New Issue
Block a user