From 411eeaae1d3aee7e9807f34a02b547e5216739bc Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Tue, 21 Jul 2026 17:24:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(biStatistics):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B6=88=E9=98=B2=E8=AE=BE=E5=A4=87=E5=88=97=E8=A1=A8=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E7=9A=84=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0=E5=92=8C?= =?UTF-8?q?loading=E7=8A=B6=E6=80=81=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改消防设备列表loading状态标识从xiaoFangFirePointDeviceListLoading为portXiaoFangFirePointDeviceListLoading - 补充消防设备列表和请求函数调用的分页参数pageIndex和pageSize,确保获取完整数据 - 更新页面中对应loading状态变量的引用名称,保持一致性 - 优化请求参数传递,避免数据不完整或异常渲染问题 --- src/api/biStatistics/index.js | 2 +- src/pages/Container/Map/components/BottomUtils/index.js | 2 +- .../Content/port/XiaoFang/FireDeviceListPanel/index.js | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/api/biStatistics/index.js b/src/api/biStatistics/index.js index 1666d0e..e724c13 100644 --- a/src/api/biStatistics/index.js +++ b/src/api/biStatistics/index.js @@ -57,6 +57,6 @@ export const getCorpInfoCorpUserStatisticPage = declareRequest( "Post > @/basicInfo/corpInfo/corpUserStatisticPage", ); export const getFirePointDeviceList = declareRequest( - "xiaoFangFirePointDeviceListLoading", + "portXiaoFangFirePointDeviceListLoading", "Post > @/fireCheck/firePoint/deviceList", ); diff --git a/src/pages/Container/Map/components/BottomUtils/index.js b/src/pages/Container/Map/components/BottomUtils/index.js index fac5d2b..e71d4f7 100644 --- a/src/pages/Container/Map/components/BottomUtils/index.js +++ b/src/pages/Container/Map/components/BottomUtils/index.js @@ -107,7 +107,7 @@ function BottomUtils(props) { const check = !list[index].list[index1].check; if (check) { if (item1.request) { - const { data } = await props[item1.request]({ portArea, corpinfoId: currentBranchOffice }); + const { data } = await props[item1.request]({ portArea, corpinfoId: currentBranchOffice, pageIndex: 1, pageSize: 9999 }); mapMethods.current.addMarkPoint(data, { markType: item1.type, markIcon: item1.markIcon, diff --git a/src/pages/Container/Map/components/Content/port/XiaoFang/FireDeviceListPanel/index.js b/src/pages/Container/Map/components/Content/port/XiaoFang/FireDeviceListPanel/index.js index 311defa..33b109a 100644 --- a/src/pages/Container/Map/components/Content/port/XiaoFang/FireDeviceListPanel/index.js +++ b/src/pages/Container/Map/components/Content/port/XiaoFang/FireDeviceListPanel/index.js @@ -20,6 +20,8 @@ function FireDeviceListPanel(props) { const { data } = await props.getFirePointDeviceList({ portArea, ...queryParams, + pageIndex: 1, + pageSize: 9999, }); setDeviceList(data); setIsVisible(true); @@ -38,7 +40,7 @@ function FireDeviceListPanel(props) {
数量
- + {isVisible && ( {deviceList.map((item, index) => (