YY 2 years ago
parent
commit
e3a8c637b9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/platmanag/goods/index.vue

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

@@ -166,6 +166,7 @@ export default {
       statusList: [],
       // 返现金额类型
       typeList: [{ label: '固定金额' }, { label: '百分比' }],
+      skip: 0,
     };
   },
   created() {
@@ -180,11 +181,12 @@ export default {
     ...goods(['copy', 'query', 'delete', 'fetch', 'update', 'create']),
     ...methodsUtil,
     // 查询
-    async search({ skip = 0, limit = this.$limit, ...others } = {}) {
+    async search({ skip = this.skip, limit = this.$limit, ...others } = {}) {
       let query = { skip, limit, ...others };
       if (Object.keys(this.searchInfo).length > 0) query = { ...query, ...this.searchInfo };
       const res = await this.query(query);
       if (this.$checkRes(res)) {
+        this.$set(this, `skip`, skip);
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);
       }