From 6cd4984f83e7c9fabac3daa23cc9946d9d68314b Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期二, 15 七月 2025 17:10:00 +0800 Subject: [PATCH] 1.采购管理-分页bug --- src/views/procurementManagement/procurementInvoiceLedger/index.vue | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/views/procurementManagement/procurementInvoiceLedger/index.vue b/src/views/procurementManagement/procurementInvoiceLedger/index.vue index 3ac73e5..255f3ac 100644 --- a/src/views/procurementManagement/procurementInvoiceLedger/index.vue +++ b/src/views/procurementManagement/procurementInvoiceLedger/index.vue @@ -47,13 +47,13 @@ :tableLoading="loading" :tableData="dataList" :isSelection="true" - height="calc(100vh - 15em)" + height="calc(100vh - 19.5em)" :isShowSummary="true" :summaryMethod="summarizeMainTable" :page="{ current: pagination.currentPage, size: pagination.pageSize, - total: 0, + total: pagination.total, }" @selection-change="handleSelectionChange" @pagination="changePage" @@ -81,7 +81,7 @@ <el-button type="primary" text - @click="openEdit(row.id)" + @click="openEdit(row)" :disabled="row.issUerId !== userStore.id" > 缂栬緫 @@ -289,8 +289,9 @@ }); }; -const changePage = ({ page }) => { +const changePage = ({ page, limit }) => { pagination.currentPage = page; + pagination.pageSize = limit; onCurrentChange(page); }; @@ -310,8 +311,8 @@ modalRef.value.handleImport(id); }; -const openEdit = (id) => { - editmodalRef.value.open(id); +const openEdit = (row) => { + editmodalRef.value.open(row); }; // 涓婁紶鎴愬姛鍚庡仛浠�涔� -- Gitblit v1.9.3