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