diff --git a/src/api/biStatistics/index.js b/src/api/biStatistics/index.js index ca9e08d..0632679 100644 --- a/src/api/biStatistics/index.js +++ b/src/api/biStatistics/index.js @@ -164,3 +164,27 @@ export const getPersonLocationCompanyOnlineStat = declareRequest( "getPersonLocationCompanyOnlineStatLoading", "Post > @/personnelPosition/bi/personLocation/companyOnlineStat", ); +export const getPersonStatistics = declareRequest( + "getPersonStatisticsLoading", + "Post > @/xgfManager/project/personStatistics", +); +export const getScreenWorkStatusStatistics = declareRequest( + "getScreenWorkStatusStatisticsLoading", + "Post > @/eightwork/eightworkInfo/screenWorkStatusStatistics", +); +export const getScreenWorkPieStatistics = declareRequest( + "getScreenWorkPieStatisticsLoading", + "Post > @/eightwork/eightworkInfo/screenWorkPieStatistics", +); +export const getScreenXgfStatistics = declareRequest( + "getScreenXgfStatisticsLoading", + "Post > @/keyProject/keyProject/largeScreenXgfStatistics", +); +export const getScreenWorkPage = declareRequest( + "getScreenWorkPageLoading", + "Post > @/eightwork/eightworkInfo/screenWorkPage", +); +export const getScreenFireCheckList = declareRequest( + "getScreenFireCheckListLoading", + "Post > @/fireCheck/fireCheckList/screen/list", +); diff --git a/src/pages/Container/Map/components/Content/IndexInfo/LeftPanel/WorkStatusPanel/index.js b/src/pages/Container/Map/components/Content/IndexInfo/LeftPanel/WorkStatusPanel/index.js index 8e7e05e..9fe38ac 100644 --- a/src/pages/Container/Map/components/Content/IndexInfo/LeftPanel/WorkStatusPanel/index.js +++ b/src/pages/Container/Map/components/Content/IndexInfo/LeftPanel/WorkStatusPanel/index.js @@ -11,8 +11,8 @@ import "./index.less"; function WorkStatusPanel(props) { const chartInstance = useRef(null); const chartRef = useRef(null); - const initEcharts = (main1Ref, chartInstance, data) => { - chartInstance.current = echarts.init(main1Ref.current); + const initEcharts = (data) => { + chartInstance.current = echarts.init(chartRef.current); const domainTypeName = data.map(item => item.domainTypeName); const scoredCount = data.map(item => item.scoredCount); @@ -138,7 +138,7 @@ function WorkStatusPanel(props) { useMount(() => { const loadData = async () => { const { data } = await props.getProjectTaskScoreCount(); - initEcharts(chartRef, chartInstance, data || []); + initEcharts(data || []); }; loadData(); diff --git a/src/pages/Container/Map/components/Content/IndexInfo/RightPanel/WorkPanel/index.js b/src/pages/Container/Map/components/Content/IndexInfo/RightPanel/WorkPanel/index.js index 8bc632d..7a75ac9 100644 --- a/src/pages/Container/Map/components/Content/IndexInfo/RightPanel/WorkPanel/index.js +++ b/src/pages/Container/Map/components/Content/IndexInfo/RightPanel/WorkPanel/index.js @@ -58,8 +58,8 @@ function WorkPanel(props) { spinning={props.biStatistics.getEightWorkInfoDangerWorkStatisticsLoading || props.biStatistics.getKeyProjectLargeScreenStatisticsLoading} >