|
@@ -133,21 +133,21 @@ export default {
|
|
|
...product(['query']),
|
|
|
...exportuser({ expertquery: 'query' }),
|
|
|
async search() {
|
|
|
- const res1 = await this.query({ skip: 0, type: '1', status: '1' });
|
|
|
- if (this.$checkRes(res1)) {
|
|
|
- this.$set(this, `tecList`, res1.data);
|
|
|
+ let res = await this.query({ skip: 0, type: '1', status: '1' });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `tecList`, res.data);
|
|
|
}
|
|
|
- const res2 = await this.query({ skip: 0, type: '0', status: '1' });
|
|
|
- if (this.$checkRes(res2)) {
|
|
|
- this.$set(this, `demandList`, res2.data);
|
|
|
+ res = await this.query({ skip: 0, type: '0', status: '1' });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `demandList`, res.data);
|
|
|
}
|
|
|
- const res3 = await this.query({ skip: 0, type: '2', status: '1' });
|
|
|
- if (this.$checkRes(res3)) {
|
|
|
- this.$set(this, `serveList`, res3.data);
|
|
|
+ res = await this.query({ skip: 0, type: '2', status: '1' });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `serveList`, res.data);
|
|
|
}
|
|
|
- const res4 = await this.expertquery({ skip: 0, status: '1' });
|
|
|
- if (this.$checkRes(res4)) {
|
|
|
- this.$set(this, `expertList`, res4.data);
|
|
|
+ res = await this.expertquery({ skip: 0, status: '1' });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `expertList`, res.data);
|
|
|
}
|
|
|
},
|
|
|
//下拉选择
|