Browse Source

Update BuyerList component to set default page size for pagination and modify data fetching logic to use a consistent page size. This improves user experience by ensuring a standard display of items per page.

Zenas 5 days ago
parent
commit
b256678e28
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/adweb/data/components/BuyerList.vue

+ 5 - 2
src/views/adweb/data/components/BuyerList.vue

@@ -12,6 +12,7 @@
             <a-table :columns="columns" :data-source="tableData" :loading="loading" row-key="fk" :pagination="{
                 current: pagination.current,
                 pageSize: pagination.pageSize,
+                defaultPageSize: 20,
                 total: pagination.total,
                 showSizeChanger: true,
                 showQuickJumper: true,
@@ -87,8 +88,10 @@ const formatNumber = (value: number | string) => {
 };
 
 onMounted(async () => {
-    // 这里可以添加获取数据的逻辑
-    await handleTableChange(pagination.value.current, pagination.value.pageSize, sortMode.value);
+    await handleTableChange({
+        current: pagination.value.current,
+        pageSize: 20
+    }, {}, {});
 });
 
 // Replace registerTransactionTable with this new method