From a6b57a24738fe6f1e6759579a59600c9611e0dc5 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Wed, 22 Jul 2026 16:13:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor(biStatistics):=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E6=9B=B4=E6=96=B0biStatistics=E8=AF=B7=E6=B1=82loading?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/biStatistics/index.js | 40 ++++++++--------- .../Bottom/RecordStatsPanel/index.js | 2 +- .../Bottom/VideoPatrolPanel/index.js | 9 +--- .../LeftPanel/RectificationPanel/index.js | 2 +- .../IndexInfo/LeftPanel/WeatherPanel/index.js | 4 +- .../LeftPanel/WorkStatusPanel/index.js | 2 +- .../IndexInfo/RightPanel/AlarmPanel/index.js | 2 +- .../RightPanel/PartnerPanel/index.js | 2 +- .../IndexInfo/RightPanel/WorkPanel/index.js | 2 +- .../port/Index/BasicInfoPanel/index.js | 2 +- .../port/Index/PersonnelStatsPanel/index.js | 2 +- .../port/Index/RiskStatsPanel/index.js | 2 +- .../port/WeiXian/WorkRecordPanel/index.js | 43 ++++++++++--------- .../port/WeiXian/WorkStatusPanel/index.js | 13 +++--- .../port/WeiXian/WorkTrendPanel/index.js | 6 +-- .../XiaoFang/FireDeviceListPanel/index.js | 2 +- .../port/ZhongDian/KeyProjectPanel/index.js | 7 +-- .../ZhongDian/VideoLocationPanel/index.js | 6 +-- 18 files changed, 65 insertions(+), 83 deletions(-) diff --git a/src/api/biStatistics/index.js b/src/api/biStatistics/index.js index 9348e15..898baae 100644 --- a/src/api/biStatistics/index.js +++ b/src/api/biStatistics/index.js @@ -1,82 +1,82 @@ import { declareRequest } from "@cqsjjb/jjb-dva-runtime"; export const getWeather = declareRequest( - "indexInfoWeatherLoading", + "getWeatherLoading", "Get > /bi/weather/info", ); export const getEventReportListUnfinished = declareRequest( - "indexInfoEmergencyRescueLoading", + "getEventReportListUnfinishedLoading", "Post > @/emergencyRescue/eventReport/listUnfinished", ); export const getProjectTaskScoreCount = declareRequest( - "indexInfoDomainLoading", + "getProjectTaskScoreCountLoading", "Get > /domain/projectTask/scoreCount", ); export const getHiddenStatisticsByCorp = declareRequest( - "indexInfoHiddenLoading", + "getHiddenStatisticsByCorpLoading", "Post > @/hidden/hidden/statisticsByCorp", ); export const getXgfStatisticsListCorpStatistics = declareRequest( - "indexInfoXgfManagerLoading", + "getXgfStatisticsListCorpStatisticsLoading", "Post > @/xgfManager/xgfStatistics/listCorpStatistics", ); export const getAlarmRecordScreenIotDeviceAlarmPage = declareRequest( - "indexInfoIotalarmLoading", + "getAlarmRecordScreenIotDeviceAlarmPageLoading", "Post > @/iotalarm/alarmRecord/screenIotDeviceAlarmPage", ); export const getXgfStatisticsListRecordProjectStatistics = declareRequest( - "indexInfoXgfManagerProjectLoading", + "getXgfStatisticsListRecordProjectStatisticsLoading", "Get > /xgfManager/xgfStatistics/listRecordProjectStatistics", ); export const getFixedCameraVideoList = declareRequest( - "indexInfoVideoPatrolLoading", + "getFixedCameraVideoListLoading", "Post > @/videopatrol/fixedCamera/getVideoList", ); export const getFixedCameraPlayUrl = declareRequest( - "indexInfoVideoPatrolUrlLoading", + "getFixedCameraPlayUrlLoading", "Get > /videopatrol/fixedCamera/getPlayUrl", ); export const getEightWorkInfoDangerWorkStatistics = declareRequest( - "indexInfoEightWorkLoading", + "getEightWorkInfoDangerWorkStatisticsLoading", "Post > @/eightwork/eightworkInfo/dangerWorkStatistics", ); export const getKeyProjectLargeScreenStatistics = declareRequest( - "indexInfoKeyProjectLoading", + "getKeyProjectLargeScreenStatisticsLoading", "Post > @/keyProject/keyProject/largeScreenStatistics", ); export const getRiskPointCorpRiskLevel = declareRequest( - "portIndexRiskLoading", + "getRiskPointCorpRiskLevelLoading", "Post > @/risk/riskPoint/corpRiskLevel", ); export const getCorpInfoCorpUserSummary = declareRequest( - "portIndexBasicInfoSummaryLoading", + "getCorpInfoCorpUserSummaryLoading", "Post > @/basicInfo/corpInfo/corpUserSummary", ); export const getCorpInfoCorpUserStatisticPage = declareRequest( - "portIndexBasicInfoStatisticPageLoading", + "getCorpInfoCorpUserStatisticPageLoading", "Post > @/basicInfo/corpInfo/corpUserStatisticPage", ); export const getFirePointDeviceList = declareRequest( - "portXiaoFangFirePointDeviceListLoading", + "getFirePointDeviceListLoading", "Post > @/fireCheck/firePoint/deviceList", ); export const getEightWorkInfoScreenStatusStatistics = declareRequest( - "portWeiXianEightWorkInfoScreenStatusStatisticsLoading", + "getEightWorkInfoScreenStatusStatisticsLoading", "Post > @/eightwork/eightworkInfo/screenStatusStatistics", ); export const getEightWorkInfoScreenWorkRecord = declareRequest( - "portWeiXianEightWorkInfoScreenWorkRecordLoading", + "getEightWorkInfoScreenWorkRecordLoading", "Post > @/eightwork/eightworkInfo/screenWorkRecord", ); export const getEightWorkInfoScreenWorkTrend = declareRequest( - "portWeiXianEightWorkInfoScreenWorkTrendLoading", + "getEightWorkInfoScreenWorkTrendLoading", "Post > @/eightwork/eightworkInfo/screenWorkTrend", ); export const getKeyProjectLargeScreenProjectStatistics = declareRequest( - "portZhongDianKeyProjectLargeScreenProjectStatisticsLoading", + "getKeyProjectLargeScreenProjectStatisticsLoading", "Post > @/keyProject/keyProject/largeScreenProjectStatistics", ); export const getFixedCameraVideoLocationStat = declareRequest( - "portZhongDianFixedCameraVideoLocationStatLoading", + "getFixedCameraVideoLocationStatLoading", "Post > @/videopatrol/fixedCamera/getVideoLocationStat", ); diff --git a/src/pages/Container/Map/components/Content/IndexInfo/Bottom/RecordStatsPanel/index.js b/src/pages/Container/Map/components/Content/IndexInfo/Bottom/RecordStatsPanel/index.js index edd6ce0..a6f02ba 100644 --- a/src/pages/Container/Map/components/Content/IndexInfo/Bottom/RecordStatsPanel/index.js +++ b/src/pages/Container/Map/components/Content/IndexInfo/Bottom/RecordStatsPanel/index.js @@ -23,7 +23,7 @@ function RecordStatsPanel(props) { title="相关方单位备案与项目执行统计" className="index-info-bottom__record-stats" > - +
- +
{list.map(item => (
- + {playUrl ? ( diff --git a/src/pages/Container/Map/components/Content/IndexInfo/LeftPanel/RectificationPanel/index.js b/src/pages/Container/Map/components/Content/IndexInfo/LeftPanel/RectificationPanel/index.js index 29514bf..02c3770 100644 --- a/src/pages/Container/Map/components/Content/IndexInfo/LeftPanel/RectificationPanel/index.js +++ b/src/pages/Container/Map/components/Content/IndexInfo/LeftPanel/RectificationPanel/index.js @@ -27,7 +27,7 @@ function RectificationPanel(props) { title="当前各公司隐患整改情况" className="index-info-left-panel__rectification" > - +
- +
@@ -57,7 +57,7 @@ function WeatherPanel(props) { {weather.alertTitle || "天气数据加载失败"}
- +
- +
diff --git a/src/pages/Container/Map/components/Content/IndexInfo/RightPanel/AlarmPanel/index.js b/src/pages/Container/Map/components/Content/IndexInfo/RightPanel/AlarmPanel/index.js index cc53987..1cda64c 100644 --- a/src/pages/Container/Map/components/Content/IndexInfo/RightPanel/AlarmPanel/index.js +++ b/src/pages/Container/Map/components/Content/IndexInfo/RightPanel/AlarmPanel/index.js @@ -21,7 +21,7 @@ function AlarmPanel(props) { }, []); return ( - +
- +
- +
{list.map(item => (
diff --git a/src/pages/Container/Map/components/Content/port/Index/BasicInfoPanel/index.js b/src/pages/Container/Map/components/Content/port/Index/BasicInfoPanel/index.js index 1660fc7..a9355a6 100644 --- a/src/pages/Container/Map/components/Content/port/Index/BasicInfoPanel/index.js +++ b/src/pages/Container/Map/components/Content/port/Index/BasicInfoPanel/index.js @@ -44,7 +44,7 @@ function BasicInfoPanel(props) { return ( - +
{statistics.map(item => (
diff --git a/src/pages/Container/Map/components/Content/port/Index/PersonnelStatsPanel/index.js b/src/pages/Container/Map/components/Content/port/Index/PersonnelStatsPanel/index.js index c582abc..f163b39 100644 --- a/src/pages/Container/Map/components/Content/port/Index/PersonnelStatsPanel/index.js +++ b/src/pages/Container/Map/components/Content/port/Index/PersonnelStatsPanel/index.js @@ -64,7 +64,7 @@ function PersonnelStatsPanel(props) {
人员数
- + {isVisible && ( {statistics.map((item, index) => ( diff --git a/src/pages/Container/Map/components/Content/port/Index/RiskStatsPanel/index.js b/src/pages/Container/Map/components/Content/port/Index/RiskStatsPanel/index.js index aa2bbd9..df67be3 100644 --- a/src/pages/Container/Map/components/Content/port/Index/RiskStatsPanel/index.js +++ b/src/pages/Container/Map/components/Content/port/Index/RiskStatsPanel/index.js @@ -69,7 +69,7 @@ function RiskStatsPanel(props) { return ( - +
{statistics.map(item => (
diff --git a/src/pages/Container/Map/components/Content/port/WeiXian/WorkRecordPanel/index.js b/src/pages/Container/Map/components/Content/port/WeiXian/WorkRecordPanel/index.js index 4648e4f..7e76680 100644 --- a/src/pages/Container/Map/components/Content/port/WeiXian/WorkRecordPanel/index.js +++ b/src/pages/Container/Map/components/Content/port/WeiXian/WorkRecordPanel/index.js @@ -1,4 +1,5 @@ import { Connect } from "@cqsjjb/jjb-dva-runtime"; +import { Spin } from "antd"; import { useContext, useEffect, useState } from "react"; import SeamlessScroll from "zy-react-library/components/SeamlessScroll"; import { NS_BI_STATISTICS } from "~/enumerate/namespace"; @@ -37,28 +38,30 @@ function WorkRecordPanel(props) {
下一步操作人
- - {records.map((item, index) => ( -
-
-
- {index + 1} + + + {records.map((item, index) => ( +
+
+
+ {index + 1} +
+
+
+ {item.workTypeName} +
+
+ {item.statusName} +
+
+ {item.nextStepName}
-
- {item.workTypeName} -
-
- {item.statusName} -
-
- {item.nextStepName} -
-
- ))} - + ))} + +
diff --git a/src/pages/Container/Map/components/Content/port/WeiXian/WorkStatusPanel/index.js b/src/pages/Container/Map/components/Content/port/WeiXian/WorkStatusPanel/index.js index e9672cb..a770d87 100644 --- a/src/pages/Container/Map/components/Content/port/WeiXian/WorkStatusPanel/index.js +++ b/src/pages/Container/Map/components/Content/port/WeiXian/WorkStatusPanel/index.js @@ -46,14 +46,9 @@ function WorkStatusPanel(props) { return ( - +
- {statistics.map((item) => ( + {statistics.map(item => (
- {item.label}: + {item.label} + : +
))} diff --git a/src/pages/Container/Map/components/Content/port/WeiXian/WorkTrendPanel/index.js b/src/pages/Container/Map/components/Content/port/WeiXian/WorkTrendPanel/index.js index e076d2a..4c2f98c 100644 --- a/src/pages/Container/Map/components/Content/port/WeiXian/WorkTrendPanel/index.js +++ b/src/pages/Container/Map/components/Content/port/WeiXian/WorkTrendPanel/index.js @@ -128,11 +128,7 @@ function WorkTrendPanel(props) { return (
- +
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 b3f1070..51f6a7a 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 @@ -40,7 +40,7 @@ function FireDeviceListPanel(props) {
数量
- + {isVisible && ( {deviceList.map((item, index) => ( diff --git a/src/pages/Container/Map/components/Content/port/ZhongDian/KeyProjectPanel/index.js b/src/pages/Container/Map/components/Content/port/ZhongDian/KeyProjectPanel/index.js index e1c6d2b..07481a4 100644 --- a/src/pages/Container/Map/components/Content/port/ZhongDian/KeyProjectPanel/index.js +++ b/src/pages/Container/Map/components/Content/port/ZhongDian/KeyProjectPanel/index.js @@ -40,12 +40,7 @@ function KeyProjectPanel(props) { return ( - +
{statistics.map(item => (
diff --git a/src/pages/Container/Map/components/Content/port/ZhongDian/VideoLocationPanel/index.js b/src/pages/Container/Map/components/Content/port/ZhongDian/VideoLocationPanel/index.js index 4e4bb43..0965426 100644 --- a/src/pages/Container/Map/components/Content/port/ZhongDian/VideoLocationPanel/index.js +++ b/src/pages/Container/Map/components/Content/port/ZhongDian/VideoLocationPanel/index.js @@ -38,11 +38,7 @@ function VideoLocationPanel(props) { return ( - +