From c2ce095d7f752dbd809e3da219db2f5e602b2661 Mon Sep 17 00:00:00 2001
From: yezian <jueweijue@gmail.com>
Date: Thu, 20 Mar 2025 13:48:52 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AElimit?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/pages/Op/data.jsx | 39 +++++++++++++++++++--------------------
 1 file changed, 19 insertions(+), 20 deletions(-)

diff --git a/src/pages/Op/data.jsx b/src/pages/Op/data.jsx
index df0b8ac..1c597f2 100644
--- a/src/pages/Op/data.jsx
+++ b/src/pages/Op/data.jsx
@@ -77,7 +77,7 @@ export default function Data() {
             st: Math.floor(selectTime.ct_lower_bound / 1000),
             et: Math.floor(selectTime.ct_upper_bound / 1000),
             offset: 0,
-            limit: 10000,
+            limit: 200,
             ...base,
           }),
         });
@@ -109,8 +109,9 @@ export default function Data() {
           body: JSON.stringify({
             st: Math.floor(Date.now() / 1000) - 60 * 60 * 24 * 8, //往前推8天
             et: Math.floor(Date.now() / 1000),
+            order_status: 3,
             offset: 0,
-            limit: 10000,
+            limit: 200,
             ...base,
           }),
         });
@@ -119,21 +120,19 @@ export default function Data() {
           alert(_data2.msg);
           return;
         }
-        const structedData2 = _data2.data.list
-          .filter((item, index) => item.order_status === 3)
-          .map((item, index) => {
-            return {
-              key: index,
-              time: new Date(item.ct * 1000).toLocaleString(),
-              user: item.user_user_id,
-              streamer: item.streamer_user_id,
-              price: item.coins / 10,
-              order_detail: {
-                order_id: item.order_id,
-                order_status_desc: item.order_status_desc,
-              },
-            };
-          });
+        const structedData2 = _data2.data.list.map((item, index) => {
+          return {
+            key: index,
+            time: new Date(item.ct * 1000).toLocaleString(),
+            user: item.user_user_id,
+            streamer: item.streamer_user_id,
+            price: item.coins / 10,
+            order_detail: {
+              order_id: item.order_id,
+              order_status_desc: item.order_status_desc,
+            },
+          };
+        });
         setNotFinishOrder(structedData2);
       } catch (error) {
         console.error(error);
@@ -415,21 +414,21 @@ export default function Data() {
         format="YYYY-MM-DD HH:mm"
         onOk={onOk}
       />
-      <p>全部未处理订单</p>
+      <p>全部未处理订单(最多200条)</p>
       <Table
         columns={orderColumns}
         dataSource={notFinishOrder}
         pagination={{ pageSize: 20 }}
         scroll={{ y: window.innerHeight - 300 }}
       />
-      <p>时段订单</p>
+      <p>时段订单(最多200条)</p>
       <Table
         columns={orderColumns}
         dataSource={order}
         pagination={{ pageSize: 20 }}
         scroll={{ y: window.innerHeight - 300 }}
       />
-      <p>时段数据</p>
+      <p>时段数据(最多100条)</p>
       <Table
         columns={columns}
         dataSource={data}