From 0c70804c83d63f5dd1c29550aa6eac60bd8dac1a Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Sat, 07 Oct 2023 10:11:45 +0800
Subject: [PATCH] fix:责任单位修改
---
src/views/list/Unit.vue | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/views/list/Unit.vue b/src/views/list/Unit.vue
index 57c01f8..2b831ab 100644
--- a/src/views/list/Unit.vue
+++ b/src/views/list/Unit.vue
@@ -207,9 +207,10 @@
private pagination:any={
total:0,
current:1,
- pageSize:5,
- showSizeChanger: false,
- showQuickJumper: false,
+ pageSize:10,
+ showSizeChanger: true,
+ showQuickJumper: true,
+ showTotal: (total:number) => `������ ${this.pagination.total} ���������`, //���������������������������
};
@Watch('serch.name')
@@ -294,7 +295,7 @@
areaCode:this.serch.areaCode,
current: this.pagination.current,
page:1,
- size: 20
+ size: this.pagination.pageSize
}).then(res=>{
this.dataSource = res.data.data.item
this.pagination.total = res.data.data.total
@@ -304,8 +305,10 @@
})
}
- private handlerTableChange(pagination: any, filter: any, sorter: any): void {
+ private handlerTableChange(pagination: any, filter: any, sorter: any): void {
+ console.log(pagination)
this.pagination.current = pagination.current
+ this.pagination.pageSize = pagination.pageSize
this.pagination.total = pagination.total
this.handleSearch()
}
--
Gitblit v1.8.0