浏览代码

修改组件

zs 9 月之前
父节点
当前提交
13a4cf54ca
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);