From a0cfea0db1a87b627fa60540422d06ae9e1a3c70 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期日, 28 四月 2024 17:44:24 +0800
Subject: [PATCH] 产量报表和应发工资报表增加分页

---
 src/views/reportManage/productionReport/index.vue |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/src/views/reportManage/productionReport/index.vue b/src/views/reportManage/productionReport/index.vue
index 8ee0aa1..1f7b1ed 100644
--- a/src/views/reportManage/productionReport/index.vue
+++ b/src/views/reportManage/productionReport/index.vue
@@ -53,9 +53,9 @@
         >
         </TableCommonView>
       </div>
-      <!-- <div class="btn-pager">
+      <div class="btn-pager">
         <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
-      </div> -->
+      </div>
     </div>
   </div>
 </template>
@@ -176,8 +176,8 @@
       await getAttendanceStatistic({
         keyword: this.keyword,
         month: "2024-04",
-        // page: this.pagerOptions.currPage,
-        // pageSize: this.pagerOptions.pageSize
+        page: this.pagerOptions.currPage,
+        pageSize: this.pagerOptions.pageSize
       })
         .then((res) => {
           if (res.code == 200) {
@@ -188,7 +188,7 @@
                 };
               });
               this.tableList.tableInfomation = list || [];
-              this.pagerOptions.totalCount = res.total;
+              this.pagerOptions.totalCount = res.total||0;
             } else {
               this.tableList.tableInfomation = [];
             }
@@ -230,9 +230,20 @@
   }
   .body-card {
     margin: 0 30px;
+    border-radius: 12px;
     background-color: #fff;
-    padding: 10px 15px;
     height: calc(100% - 180px);
   }
+  .list-view {
+    height: calc(100% - 60px);
+    overflow: hidden;
+  }
+  .btn-pager {
+    display: flex;
+    margin-top: 10px;
+    .page {
+      margin-left: auto;
+    }
+  }
 }
 </style>

--
Gitblit v1.8.0