From 44dbbc588852dd92953cfc2040c74bc9fd556990 Mon Sep 17 00:00:00 2001 From: ljh <1192263352@qq.com> Date: Wed, 3 Jul 2024 01:06:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=A9=E6=96=99=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/src/views/basics-date/matter/index.vue | 45 +++++++++++----------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/Web/src/views/basics-date/matter/index.vue b/Web/src/views/basics-date/matter/index.vue index ef312e7..97a56d0 100644 --- a/Web/src/views/basics-date/matter/index.vue +++ b/Web/src/views/basics-date/matter/index.vue @@ -100,8 +100,10 @@ -
+
+
+
+
+
- + v-model:currentPage="queryParams.page" + v-model:page-size="queryParams.pageSize" + :total="queryParams.total" + :page-sizes="[10, 20, 50, 100, 200, 500]" + small="" + background="" + @size-change="handleSizeChange" + @current-change="handleCurrentChange" + layout="total, sizes, prev, pager, next, jumper" + /> +
+
+
@@ -218,7 +224,7 @@ loading.value = true; var res = await pageMaterials(Object.assign(queryParams.value, tableParams.value)); tableData.value = res.data.result?.items ?? []; - tableParams.value.total = res.data.result?.total; + queryParams.value.total = res.data.result?.total; loading.value = false; }; @@ -287,13 +293,13 @@ // 改变页面容量 const handleSizeChange = (val: number) => { - tableParams.value.pageSize = val; + queryParams.value.pageSize = val; handleQuery(); }; // 改变页码序号 const handleCurrentChange = (val: number) => { - tableParams.value.page = val; + queryParams.value.page = val; handleQuery(); }; @@ -302,11 +308,6 @@