|
@@ -347,10 +347,18 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- let res = await this.productList({ type: '1', status: '1', company: data });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `achieveList`, res.data);
|
|
|
- this.$set(this, `achieveTotal`, res.total);
|
|
|
+ if (data) {
|
|
|
+ let res = await this.productList({ type: '1', status: '1', company: data });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `achieveList`, res.data);
|
|
|
+ this.$set(this, `achieveTotal`, res.total);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ let res = await this.productList({ type: '1', status: '1' });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `achieveList`, res.data);
|
|
|
+ this.$set(this, `achieveTotal`, res.total);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -368,10 +376,18 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- let res = await this.expertsuserList({ company: data });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `expertList`, res.data);
|
|
|
- this.$set(this, `expertTotal`, res.total);
|
|
|
+ if (data) {
|
|
|
+ let res = await this.expertsuserList({ company: data });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `expertList`, res.data);
|
|
|
+ this.$set(this, `expertTotal`, res.total);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ let res = await this.expertsuserList();
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `expertList`, res.data);
|
|
|
+ this.$set(this, `expertTotal`, res.total);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|