From 9af4c18b7dd9e27c44f0ab43d628b5a20807f459 Mon Sep 17 00:00:00 2001 From: xingyongchun Date: Thu, 28 Jul 2022 10:28:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E6=95=B0=E8=BE=93=E5=85=A5=E6=95=88?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/highways/highwaysdata.js | 19 +++++++++++++++---- .../sections/fillion/components/inforTable.js | 5 ++++- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/web/client/src/sections/fillion/components/highways/highwaysdata.js b/web/client/src/sections/fillion/components/highways/highwaysdata.js index 410b95d7..ad27ef14 100644 --- a/web/client/src/sections/fillion/components/highways/highwaysdata.js +++ b/web/client/src/sections/fillion/components/highways/highwaysdata.js @@ -59,25 +59,36 @@ const HightModal = (props) => { placeholder="请输入名称" // value={recortd?.[0]?.value} disabled - rules={[{ required: true, message: "必填" }]} + /> { + // return event.target.value.replace(/\D/g,'') + // } + ]} + /> : - + /> */} } diff --git a/web/client/src/sections/fillion/components/inforTable.js b/web/client/src/sections/fillion/components/inforTable.js index 59f62fee..84e552f9 100644 --- a/web/client/src/sections/fillion/components/inforTable.js +++ b/web/client/src/sections/fillion/components/inforTable.js @@ -437,6 +437,8 @@ const InForTable = (props) => { }} request={async (params) => { const query = { + limit:params.pageSize, + page:params.current-1, nameOfInspectionPoint: nameOfInspectionPoint, licensePlate: licensePlate, numberOfAxles: numberOfAxles, @@ -446,10 +448,11 @@ const InForTable = (props) => { } setRowSelected([]); const res = await dispatch(getPurchase(query)); + console.log(res) setCounts(res.payload.data) return { ...res, - total: res.payload.data ? res.payload.data.count : 0 + total: res.payload.data ? res.payload.data : 0 } }} search={{