|
@@ -209,16 +209,15 @@ export default {
|
|
|
...product(['newquery']),
|
|
|
...talentExperts({ expertQuery: 'query' }),
|
|
|
async search() {
|
|
|
- let res = await this.newquery({ skip: 0, limit: 4, totaltype: '0' });
|
|
|
+ let res = await this.newquery({ skip: 0, limit: 4, totaltype: '0', status: '1' });
|
|
|
if (this.$checkRes(res)) this.$set(this, `tecList`, res.data);
|
|
|
- res = await this.newquery({ skip: 0, limit: 4, totaltype: '1' });
|
|
|
+ res = await this.newquery({ skip: 0, limit: 4, totaltype: '1', status: '1' });
|
|
|
if (this.$checkRes(res)) this.$set(this, `productList`, res.data);
|
|
|
if (this.$checkRes(res)) this.$set(this, `newList`, res.data);
|
|
|
- res = await this.newquery({ skip: 0, limit: 4, totaltype: '2' });
|
|
|
+ res = await this.newquery({ skip: 0, limit: 4, totaltype: '2', status: '1' });
|
|
|
if (this.$checkRes(res)) this.$set(this, `serviceList`, res.data);
|
|
|
- res = await this.expertQuery({ skip: 0, limit: 4 });
|
|
|
+ res = await this.expertQuery({ skip: 0, limit: 4, status: '1' });
|
|
|
if (this.$checkRes(res)) this.$set(this, `expertsList`, res.data);
|
|
|
- console.log(res.data);
|
|
|
},
|
|
|
toProductList() {
|
|
|
this.$router.push({ path: '/supermaket/supermarketlist', query: { totaltype: 1 } });
|