Procházet zdrojové kódy

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

刘洋 před 1 rokem
rodič
revize
904dee58bf

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

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

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

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