YY 2 vuotta sitten
vanhempi
commit
634d11ecc9
2 muutettua tiedostoa jossa 2 lisäystä ja 6 poistoa
  1. 0 2
      src/store/index.js
  2. 2 4
      src/views/platmanag/goodsRate/index.vue

+ 0 - 2
src/store/index.js

@@ -24,7 +24,6 @@ import goodsJoinAct from './module/system/goodsJoinAct';
 import admins from './module/system/admin';
 
 import shop from './module/shop/shop';
-import selfShop from './module/shop/selfShop';
 import goods from './module/shop/goods';
 import serviceContact from './module/shop/serviceContact';
 import goodsSpec from './module/shop/goodsSpec';
@@ -49,7 +48,6 @@ export default new Vuex.Store({
   modules: {
     admin,
     shop,
-    selfShop,
     goods,
     dictIndex,
     dictData,

+ 2 - 4
src/views/platmanag/goodsRate/index.vue

@@ -28,7 +28,6 @@
 <script>
 const _ = require('lodash');
 import { mapState, mapGetters, createNamespacedHelpers } from 'vuex';
-const { mapActions: selfShop } = createNamespacedHelpers('selfShop');
 const { mapActions: goods } = createNamespacedHelpers('goods');
 const { mapActions: dictData } = createNamespacedHelpers('dictData');
 export default {
@@ -61,11 +60,10 @@ export default {
   },
   methods: {
     ...dictData({ getDict: 'query' }),
-    ...selfShop(['getInfo', 'getGoods', 'goodsCreate']),
-    ...goods(['delete', 'fetch', 'update', 'create']),
+    ...goods(['query', 'delete', 'fetch', 'update', 'create']),
     async search({ skip = 0, limit = 10, ...info } = {}) {
       let condition = _.cloneDeep(this.searchForm);
-      let res = await this.getGoods({ skip, limit, ...condition, ...info });
+      let res = await this.query({ skip, limit, ...condition, ...info });
       if (this.$checkRes(res)) {
         this.$set(this, 'list', res.data);
         this.$set(this, 'total', res.total);