From b5bff2a8156151f96a2d14efabd35445de7115a0 Mon Sep 17 00:00:00 2001 From: haoliang <821644@qq.com> Date: Wed, 29 Apr 2026 03:29:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E9=A1=B5=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E4=B8=8D=E7=94=9F=E6=95=88=EF=BC=9A=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?@current-change=E5=92=8C@size-change=E4=BA=8B=E4=BB=B6=E8=A7=A6?= =?UTF-8?q?=E5=8F=91loadData?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/machine/MachineListPage.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/views/machine/MachineListPage.vue b/frontend/src/views/machine/MachineListPage.vue index 586ecea..d106d7b 100644 --- a/frontend/src/views/machine/MachineListPage.vue +++ b/frontend/src/views/machine/MachineListPage.vue @@ -82,6 +82,8 @@ background layout="total, sizes, prev, pager, next, jumper" style="margin-top:16px" + @current-change="loadData" + @size-change="handleSizeChange" /> @@ -213,6 +215,12 @@ function resetQuery() { loadData() } +/** 每页条数变化时重置到第1页并重新加载 */ +function handleSizeChange() { + page.page = 1 + loadData() +} + function handleAdd() { editingId.value = null Object.assign(form, { name: '', deviceCode: '', workshopId: undefined, collectAddressId: undefined, brandId: undefined, brandName: '', ipAddress: '', workerId: undefined })