YY 2 năm trước cách đây
mục cha
commit
c3646d5016

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

@@ -214,9 +214,11 @@ export default {
           data.time = _.get(data, 'expire_config.fixed[0]');
           data.days = _.get(data, 'expire_config.days');
           if (data.shop) {
+            let list = [];
             let res = await this.shopFetch(data.shop);
             if (this.$checkRes(res)) {
-              this.shopList.push(res.data);
+              list.push(res.data);
+              this.$set(this, 'shopList', list);
             }
           }
           this.$set(this, `form`, data);

+ 1 - 1
src/views/platActivi/coupon/index.vue

@@ -128,6 +128,7 @@ export default {
     async toEdit({ data }) {
       this.$router.push({ path: '/platActivi/coupon/detail', query: { id: data.id } });
     },
+    // 删除
     async toDel({ data }) {
       let res = await this.delete(data._id);
       if (this.$checkRes(res)) {
@@ -156,7 +157,6 @@ export default {
       if (this.$checkRes(res)) {
         this.$set(this, `statusList`, res.data);
       }
-
       // 减免方式
       res = await this.dictQuery({ code: 'coupon_discount_type' });
       if (this.$checkRes(res)) {

+ 1 - 0
src/views/platfinance/bill/index.vue

@@ -95,6 +95,7 @@ export default {
         this.$message({ type: `warning`, message: `请选择查询信息` });
       }
     },
+    // 重置
     toClose() {
       this.searchForm = {};
       this.search();

+ 2 - 13
src/views/platfinance/statistics/index.vue

@@ -21,7 +21,6 @@
 <script>
 const _ = require('lodash');
 import { mapState, mapGetters, createNamespacedHelpers } from 'vuex';
-const { mapActions } = createNamespacedHelpers('todo');
 export default {
   name: 'index',
   props: {},
@@ -38,18 +37,8 @@ export default {
       data: {},
     };
   },
-  async created() {
-    await this.search();
-  },
-  methods: {
-    ...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
-    async search({ skip = 0, limit = 10, ...info } = {}) {
-      let res = await this.query({ skip, limit, ...info });
-      if (this.$checkRes(res)) {
-        this.$set(this, 'data', res.data);
-      }
-    },
-  },
+  async created() {},
+  methods: {},
   computed: {
     ...mapState(['user']),
   },

+ 2 - 0
src/views/platmanag/goods/index.vue

@@ -183,6 +183,7 @@ export default {
       }
       this.loading = false;
     },
+    // 店铺名称远程查询
     selectShop(data) {},
     async searchShop(value) {
       let res = await this.shopQuery({ name: value });
@@ -190,6 +191,7 @@ export default {
         this.$set(this, 'shopList', res.data);
       }
     },
+    // 重置
     toClose() {
       this.searchInfo = {};
       this.search();