From fa4867e82be41909cc3a7faedd57fbe55fb36362 Mon Sep 17 00:00:00 2001 From: sheng <905537351@qq.com> Date: Fri, 26 Jun 2026 16:53:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E5=A4=87=E7=82=B9?= =?UTF-8?q?=E6=A3=80=E6=97=A5=E5=BF=97=E5=88=86=E9=A1=B5=E7=BF=BB=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspection-logs/index.vue | 36 ++++++++++++++----- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/src/views/equipment-management/inspection-management/inspection-logs/index.vue b/src/views/equipment-management/inspection-management/inspection-logs/index.vue index 249b4f63..842036cb 100644 --- a/src/views/equipment-management/inspection-management/inspection-logs/index.vue +++ b/src/views/equipment-management/inspection-management/inspection-logs/index.vue @@ -36,14 +36,25 @@ :loading="loading" :toolbar-buttons="[]" :row-buttons="[]" - :pagination="pagination" - auto-height - @page-change="onPageChange" + :pagination="null" > + +
+ +
@@ -128,9 +139,7 @@ export default { const res = await getDetailsList({ ...this.buildSearchParams(), page_no: pageNo, - page_size: pageSize, - page: pageNo, - size: pageSize + page_size: pageSize }) const page = readPageData(res) this.tableData = page.list @@ -148,9 +157,13 @@ export default { this.pagination.current = 1 this.fetchData() }, - onPageChange (page) { - this.pagination.current = Number(page.current || page.currentPage || 1) - this.pagination.size = Number(page.size || page.pageSize || this.pagination.size || 10) + onSizeChange (size) { + this.pagination.current = 1 + this.pagination.size = Number(size) || 10 + this.fetchData() + }, + onCurrentChange (current) { + this.pagination.current = Number(current) || 1 this.fetchData() }, async handleExport () { @@ -168,6 +181,11 @@ export default { .search-bar { padding: 10px 0; } +.logs-pagination { + display: flex; + justify-content: flex-end; + padding-top: 12px; +} /deep/ .el-form-item--mini.el-form-item { margin-bottom: 4px; }