|
@@ -579,7 +579,7 @@ export default {
|
|
|
methods: {
|
|
|
...mapProduct({ mapProductQuery: 'newquery' }),
|
|
|
...market({ marketFetch: 'fetch', operaFetch: 'operaFetch' }),
|
|
|
- ...dock({ dockQuery: 'query', dockFetch: 'fetch' }),
|
|
|
+ ...dock({ dockQuery: 'query', dockFetch: 'fetch', goodsquery: 'goodsquery' }),
|
|
|
...expertsuser({ expertQuery: 'query' }),
|
|
|
...transaction({ tquery: 'query' }),
|
|
|
...newsguidance({ danceQuery: 'query' }),
|
|
@@ -665,26 +665,25 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 点击查询
|
|
|
- resetForm(name) {
|
|
|
+ async resetForm(name) {
|
|
|
if (this.panduan == '找技术') {
|
|
|
if (name) {
|
|
|
- console.log(name);
|
|
|
- // var filterdata = this.jishulist.filter(item => item.name === name);
|
|
|
- // this.$set(this, `jishulist`, filterdata);
|
|
|
+ let jishu = await this.goodsquery({ name: name });
|
|
|
+ this.$set(this, `jishulist`, jishu.data);
|
|
|
} else {
|
|
|
this.searchdock();
|
|
|
}
|
|
|
} else if (this.panduan == '找产品') {
|
|
|
if (name) {
|
|
|
- var filterdata = this.demandList.filter(item => item.name === name);
|
|
|
- this.$set(this, `demandList`, filterdata);
|
|
|
+ let chanpin = await this.goodsquery({ name: name });
|
|
|
+ this.$set(this, `demandList`, chanpin.data);
|
|
|
} else {
|
|
|
this.searchdock();
|
|
|
}
|
|
|
} else if (this.panduan == '找服务') {
|
|
|
if (name) {
|
|
|
- var filterdata = this.serviceList.filter(item => item.name === name);
|
|
|
- this.$set(this, `serviceList`, filterdata);
|
|
|
+ let service = await this.goodsquery({ name: name });
|
|
|
+ this.$set(this, `serviceList`, service.data);
|
|
|
} else {
|
|
|
this.searchdock();
|
|
|
}
|