소스 검색

修改分页问题

bding 3 달 전
부모
커밋
b8b310ab5e
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/views/dataReport_manage/equityServiceStatistics.vue

+ 5 - 2
src/views/dataReport_manage/equityServiceStatistics.vue

@@ -112,7 +112,7 @@
         </el-table-column>
       </el-table>
       <!-- 页数选择器 -->
-      <m-page style="margin: 20px 0" :page_no="page_no" :pageSize="15" :total="total" @handleCurrentChange="pageChange" />
+      <m-page style="margin: 20px 0" :page_no="page_no" :pageSize="pageSize" :total="total" @handleCurrentChange="pageChange" />
     </el-card>
     <!-- 覆盖率弹框 -->
     <coverage-rate-dlg :isCoverageRateShow.sync="isCoverageRateShow" :dlgForm.sync="dlgForm" />
@@ -242,7 +242,10 @@ export default {
 
       return `(${formatDate(startOfWeek)} ~ ${formatDate(endOfWeek)})`;
     },
-    pageChange() {},
+    pageChange(page_no) {
+      this.page_no = page_no;
+      this.getDataList();
+    },
     // 获取表格数据
     async getDataList() {
       let salesArr = [];