|
@@ -82,11 +82,8 @@ export default {
|
|
|
condition[`buy_time@end`] = _.last(condition.buy_time);
|
|
|
delete condition.buy_time;
|
|
|
}
|
|
|
- if (this.user.role.code == 'sadmin') {
|
|
|
- info.shop = '';
|
|
|
- } else {
|
|
|
- info.shop = this.user.shop.id;
|
|
|
- }
|
|
|
+ if (this.user.role.code == 'sadmin') info.shop = '';
|
|
|
+ else info.shop = this.user.shop.id;
|
|
|
let res = await this.query({ skip, limit, ...condition, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, 'list', res.data);
|