Sfoglia il codice sorgente

修改用户优惠券发放

zs 1 anno fa
parent
commit
c83c48286a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/views/platActivi/coupon/parts/grantUser.vue

+ 2 - 0
src/views/platActivi/coupon/parts/grantUser.vue

@@ -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);