|
@@ -106,6 +106,8 @@ export default {
|
|
|
// 查询
|
|
|
async search({ skip = 0, limit = this.$limit, ...info } = {}) {
|
|
|
let condition = _.cloneDeep(this.searchForm);
|
|
|
+ // 判断是否是个人店铺查询
|
|
|
+ if (this.user.role.code == 'shopAdmin') info.shop = this.user.shop._id || this.user.shop.id;
|
|
|
let res = await this.query({ skip, limit, ...condition, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, 'list', res.data);
|