浏览代码

半浮层分页: 11

洪海涛 4 年之前
父节点
当前提交
3938032d91
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/dataBigManage/components/drawerModal/index.vue

+ 1 - 1
src/views/dataBigManage/components/drawerModal/index.vue

@@ -804,7 +804,7 @@ export default {
     // 分页
     // 分页
     tableListPagination() {
     tableListPagination() {
       if (this.tableListOld.length) {
       if (this.tableListOld.length) {
-        if (this.paging.curIndex - 1) {
+        if (this.paging.curIndex - 1 || this.tableListOld.length > this.paging.pageSize.length) {
           this.tableList = this.tableListOld.map(e => e).splice((this.paging.curIndex - 1 || 0) * this.paging.pageSize, this.paging.pageSize)
           this.tableList = this.tableListOld.map(e => e).splice((this.paging.curIndex - 1 || 0) * this.paging.pageSize, this.paging.pageSize)
         } else {
         } else {
           this.tableList = this.tableListOld.map(e => e) || []
           this.tableList = this.tableListOld.map(e => e) || []