fix(biStatistics): 修复消防设备列表相关的请求参数和loading状态名

- 修改消防设备列表loading状态标识从xiaoFangFirePointDeviceListLoading为portXiaoFangFirePointDeviceListLoading
- 补充消防设备列表和请求函数调用的分页参数pageIndex和pageSize,确保获取完整数据
- 更新页面中对应loading状态变量的引用名称,保持一致性
- 优化请求参数传递,避免数据不完整或异常渲染问题
master
LiuJiaNan 2026-07-21 17:24:20 +08:00
parent e84b4191a6
commit 411eeaae1d
3 changed files with 5 additions and 3 deletions

View File

@ -57,6 +57,6 @@ export const getCorpInfoCorpUserStatisticPage = declareRequest(
"Post > @/basicInfo/corpInfo/corpUserStatisticPage", "Post > @/basicInfo/corpInfo/corpUserStatisticPage",
); );
export const getFirePointDeviceList = declareRequest( export const getFirePointDeviceList = declareRequest(
"xiaoFangFirePointDeviceListLoading", "portXiaoFangFirePointDeviceListLoading",
"Post > @/fireCheck/firePoint/deviceList", "Post > @/fireCheck/firePoint/deviceList",
); );

View File

@ -107,7 +107,7 @@ function BottomUtils(props) {
const check = !list[index].list[index1].check; const check = !list[index].list[index1].check;
if (check) { if (check) {
if (item1.request) { 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, { mapMethods.current.addMarkPoint(data, {
markType: item1.type, markType: item1.type,
markIcon: item1.markIcon, markIcon: item1.markIcon,

View File

@ -20,6 +20,8 @@ function FireDeviceListPanel(props) {
const { data } = await props.getFirePointDeviceList({ const { data } = await props.getFirePointDeviceList({
portArea, portArea,
...queryParams, ...queryParams,
pageIndex: 1,
pageSize: 9999,
}); });
setDeviceList(data); setDeviceList(data);
setIsVisible(true); setIsVisible(true);
@ -38,7 +40,7 @@ function FireDeviceListPanel(props) {
<div className="port-fire-device-list__cell">数量</div> <div className="port-fire-device-list__cell">数量</div>
</div> </div>
<div className="port-fire-device-list__table-body"> <div className="port-fire-device-list__table-body">
<Spin spinning={props.biStatistics.xiaoFangFirePointDeviceListLoading}> <Spin spinning={props.biStatistics.portXiaoFangFirePointDeviceListLoading}>
{isVisible && ( {isVisible && (
<SeamlessScroll list={deviceList} step={0.5}> <SeamlessScroll list={deviceList} step={0.5}>
{deviceList.map((item, index) => ( {deviceList.map((item, index) => (