Browse Source

修改查看商品分类

zs 1 year ago
parent
commit
7682d7da0c
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/platActivi/coupon/detail.vue

+ 5 - 1
src/views/platActivi/coupon/detail.vue

@@ -266,6 +266,10 @@ export default {
     // 查询其他信息
     async searchOther() {
       let res;
+      // 商品分类
+      const data = {};
+      // 判断是否是个人店铺查询
+      if (this.user.role.code == 'shopAdmin') data.shop = this.user.shop._id || this.user.shop.id;
       // 发行方
       res = await this.dictQuery({ code: 'coupon_issue', value: '0' });
       if (this.$checkRes(res)) this.$set(this, `issueList`, res.data);
@@ -282,7 +286,7 @@ export default {
       res = await this.dictQuery({ code: 'coupon_get_limit' });
       if (this.$checkRes(res)) this.$set(this, `get_limitList`, res.data);
       // 商品类型
-      res = await this.tree();
+      res = await this.tree(data);
       if (this.$checkRes(res)) this.$set(this, `tagsList`, res.data);
       // 使用状态
       res = await this.dictQuery({ code: 'use' });