From 6c313c92565dced395b73dc81784003e15ea2df0 Mon Sep 17 00:00:00 2001 From: lcj <2331845269@qq.com> Date: Mon, 17 Mar 2025 16:00:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Pagination/index.vue | 8 +++++++- src/views/machinery/component/MachineryDetailTable.vue | 9 ++++++++- .../materials/component/MaterialsInventoryAddDialog.vue | 6 +++--- .../materials/component/MaterialsInventoryTable.vue | 3 ++- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index ac02193..9f96001 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -3,6 +3,7 @@ props.total) { currentPage.value = 1; @@ -67,6 +70,7 @@ function handleSizeChange(val: number) { scrollTo(0, 800); } } + function handleCurrentChange(val: number) { emit('pagination', { page: val, limit: pageSize.value }); if (props.autoScroll) { @@ -78,10 +82,12 @@ function handleCurrentChange(val: number) {