Explorar o código

修改商品,活动标签

YY %!s(int64=2) %!d(string=hai) anos
pai
achega
9cd0bc663a
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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) {