zs před 9 měsíci
rodič
revize
13a4cf54ca
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/components/frame/c-table.vue

+ 2 - 2
src/components/frame/c-table.vue

@@ -211,12 +211,12 @@ export default {
       this.$refs.table.clearSelection();
     },
     changePage(page = this.currentPage) {
-      this.$emit('query', { skip: (page - 1) * this.limit, limit: this.limit, ...this.searchInfo });
+      this.$emit('query', { skip: page, limit: this.limit, ...this.searchInfo });
     },
     sizeChange(limit) {
       this.limit = limit;
       this.currentPage = 1;
-      this.$emit('query', { skip: 0, limit: this.limit, ...this.searchInfo });
+      this.$emit('query', { skip: 1, limit: this.limit, ...this.searchInfo });
     },
     rowClick(row, column, event) {
       this.$emit(`rowClick`, row);