瀏覽代碼

部分页面复选框交互后重新查询的分页问题的优化

刘洋 1 年之前
父節點
當前提交
904dee58bf
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/modules/basic/view/data_previllege.vue
  2. 1 1
      src/modules/questions/views/GenPaperDetail.vue

+ 1 - 1
src/modules/basic/view/data_previllege.vue

@@ -456,7 +456,7 @@ export default {
         });
         });
         if (
         if (
           this["tableData" + type].length == refIds.length &&
           this["tableData" + type].length == refIds.length &&
-          (this["currentPage" + type] + 1) * this["pageSize" + type] >
+          this["currentPage" + type] * this["pageSize" + type] + 1 >
             this["total" + type]
             this["total" + type]
         ) {
         ) {
           this["currentPage" + type] = 1;
           this["currentPage" + type] = 1;

+ 1 - 1
src/modules/questions/views/GenPaperDetail.vue

@@ -869,7 +869,7 @@ export default {
       });
       });
       if (
       if (
         val.length == this.selectPapers.length &&
         val.length == this.selectPapers.length &&
-        (this.curSelect + 1) * this.pageSize > this.totalSelect
+        this.curSelect * this.pageSize + 1 > this.totalSelect
       ) {
       ) {
         this.curSelect = 1;
         this.curSelect = 1;
       }
       }