浏览代码

修改商品,活动标签

YY 2 年之前
父节点
当前提交
9cd0bc663a
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/selfShop/goods/index.vue

+ 3 - 1
src/views/selfShop/goods/index.vue

@@ -56,6 +56,7 @@ const { mapActions: selfShop } = createNamespacedHelpers('selfShop');
 const { mapActions: goods } = createNamespacedHelpers('goods');
 const { mapActions: goodsTags } = createNamespacedHelpers('goodsTags');
 const { mapActions: dictData } = createNamespacedHelpers('dictData');
+const { mapActions: actTags } = createNamespacedHelpers('actTags');
 export default {
   name: 'index',
   props: {},
@@ -118,6 +119,7 @@ export default {
   },
   methods: {
     ...dictData({ getDict: 'query' }),
+    ...actTags({ actQuery: 'query' }),
     ...goodsTags(['tree']),
     ...selfShop(['getInfo', 'getGoods', 'goodsCreate']),
     ...goods(['delete', 'fetch', 'update', 'create']),
@@ -145,7 +147,7 @@ export default {
       if (this.$checkRes(res)) this.$set(this, `goodsStatusList`, res.data);
       res = await this.getInfo();
       if (this.$checkRes(res)) this.$set(this, `shop`, res.data);
-      res = await this.getDict({ code: 'act_tags' });
+      res = await this.actQuery();
       if (this.$checkRes(res)) this.$set(this, `act_tagsList`, res.data);
     },
     getStatus(data) {