(direction)
| 221 | |
| 222 | // 切换页面 |
| 223 | changePage(direction) { |
| 224 | const newPage = this.currentPage + direction; |
| 225 | if (newPage >= 1 && newPage <= this.getTotalPages()) { |
| 226 | this.currentPage = newPage; |
| 227 | this.refresh(); |
| 228 | } |
| 229 | }, |
| 230 | |
| 231 | // 改变每页大小 |
| 232 | changePageSize() { |