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 @@