소스 검색

修改活动

zs 1 년 전
부모
커밋
0e6a609284
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/views/platActivi/act/parts/goods/goodsDetail.vue

+ 2 - 0
src/views/platActivi/act/parts/goods/goodsDetail.vue

@@ -67,6 +67,8 @@ export default {
     ...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
     // 查询
     async search({ skip = 0, limit = this.$limit, ...info } = {}) {
+      // 判断是否是个人店铺查询
+      if (this.user.role.code == 'shopAdmin') info.shop = this.user.shop._id || this.user.shop.id;
       if (this.goods) info.name = this.goods;
       let res = await this.gQuery({ skip, limit, ...info });
       if (this.$checkRes(res)) {