| | |
| | | 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') |
| | |
| | | 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 |
| | |
| | | }) |
| | | } |
| | | |
| | | 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() |
| | | } |