From 2d445a7f255343099b4647ea5ce51d2980768003 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Thu, 28 Sep 2023 16:45:41 +0800
Subject: [PATCH] fix:立行立改

---
 src/views/toCarryOutLegislativeReforms/reform/index.vue |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/views/toCarryOutLegislativeReforms/reform/index.vue b/src/views/toCarryOutLegislativeReforms/reform/index.vue
index df6afda..f3515e1 100644
--- a/src/views/toCarryOutLegislativeReforms/reform/index.vue
+++ b/src/views/toCarryOutLegislativeReforms/reform/index.vue
@@ -162,9 +162,9 @@
           background
           :current-page="pagination.currentPage"
           :page-sizes="pagination.pageSizes"
-          :page-size="pagination.PageSize"
+          :page-size="pagination.pageSize"
           :total="pagination.totalCount"
-          layout="sizes,prev, pager, next, jumper"
+          layout="total, sizes, prev, pager, next, jumper"
           @size-change="handleSizeChange"
           @current-change="handleCurrentChange"
         />
@@ -241,7 +241,10 @@
       pageState: 'add',
       invalidReason: '',
       slectRow: {},
-      title: ''
+      title: '',
+      searchData: {
+        isInvalid: 0
+      }
     }
   },
 
@@ -376,11 +379,15 @@
       })
     },
     handleSearch(obj) {
+      this.searchData.isInvalid = 0
+      if (obj) {
+        this.searchData = obj
+      }
       this.$request({
         url: '/allocation/page',
         method: 'post',
         data: {
-          ...obj,
+          ...this.searchData,
           'page': this.pagination
         }
       }).then((res) => {
@@ -396,14 +403,16 @@
     // ���������������������
     handleSizeChange(val) {
       // ���������������������������
-      this.pagination.PageSize = val
+      this.pagination.pageSize = val
       // ���������������������������������������������������������������������������
       this.pagination.currentPage = 1
+      this.handleSearch()
     },
     // ���������������
     handleCurrentChange(val) {
       // ���������������������
       this.pagination.currentPage = val
+      this.handleSearch()
       // console.log(val)
     },
     openWorkOrdinDialog(row, type) {

--
Gitblit v1.8.0