From c91d5db64f68e038091f646073dcb663e5275b4d Mon Sep 17 00:00:00 2001 From: tangshaojian <63377964@qq.com> Date: Tue, 20 May 2025 14:26:27 +0800 Subject: [PATCH] =?UTF-8?q?tsj:=20=E9=A6=96=E9=A1=B57=E5=A4=A7=E8=A1=8C?= =?UTF-8?q?=E4=B8=9A=E5=8A=A0=E4=B8=8A=E8=B7=B3=E8=BD=AC=E4=B8=8B=E9=92=BB?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IndustryOverview/components/Advertisement/index.tsx | 5 +++-- .../IndustryOverview/components/CityLighting/index.tsx | 5 +++-- .../IndustryOverview/components/ConstructionWaste/index.tsx | 2 +- .../IndustryOverview/components/HouseholdWaste/index.tsx | 2 +- .../IndustryOverview/components/LawEnforcement/index.tsx | 5 +++-- .../components/MunicipalFacilities/index.tsx | 4 +++- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/Advertisement/index.tsx b/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/Advertisement/index.tsx index b3a9eda8..12d12811 100644 --- a/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/Advertisement/index.tsx +++ b/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/Advertisement/index.tsx @@ -10,12 +10,13 @@ import { useModel } from '@umijs/max'; import { Flex } from 'antd'; import React, { useEffect, useState } from 'react'; import styles from './index.less'; - +import { useDashboard } from '@/pages/Home_v_2504/components/context'; const Advertisement: React.FC = () => { const { initialState } = useModel('@@initialState'); const { areaId } = initialState; const { dispatch } = useGlobalModalServices(); const [eventCount, setEventCount] = useState(0); + const { navigateTo } = useDashboard(); const commonValueStyle = { background: 'linear-gradient(180deg, #9CF8F7 0%, #25BBFF 100%)', @@ -65,7 +66,7 @@ const Advertisement: React.FC = () => { }, []); return ( -
+
navigateTo('cityAppearance')}>
{ const { dispatch } = useGlobalModalServices(); + const { navigateTo } = useDashboard(); const commonValueStyle = { background: 'linear-gradient(180deg, #9CF8F7 0%, #25BBFF 100%)', WebkitBackgroundClip: 'text', @@ -81,7 +82,7 @@ const CityLighting: React.FC = () => { }, []); return ( -
+
navigateTo('landscapeLighting')}>
{ return (
navigateTo('environment')} + onClick={() => navigateTo('constructionWaste')} // style={{ cursor: 'pointer' }} > {/* 数据展示区 */} diff --git a/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/HouseholdWaste/index.tsx b/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/HouseholdWaste/index.tsx index c46d8c40..753995dc 100644 --- a/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/HouseholdWaste/index.tsx +++ b/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/HouseholdWaste/index.tsx @@ -72,7 +72,7 @@ const HouseholdWaste: React.FC = () => { return (
navigateTo('environment')} + onClick={() => navigateTo('domesticWaste')} // style={{ cursor: 'pointer' }} > {/* 数据展示区 */} diff --git a/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/LawEnforcement/index.tsx b/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/LawEnforcement/index.tsx index dc70f5f6..0b432dcd 100644 --- a/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/LawEnforcement/index.tsx +++ b/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/LawEnforcement/index.tsx @@ -9,9 +9,10 @@ import { useRequest } from 'ahooks'; import { Flex } from 'antd'; import React from 'react'; import styles from './index.less'; - +import { useDashboard } from '@/pages/Home_v_2504/components/context'; const LawEnforcement: React.FC = () => { const { dispatch } = useGlobalModalServices(); + const { navigateTo } = useDashboard(); const commonValueStyle = { background: 'linear-gradient(180deg, #9CF8F7 0%, #25BBFF 100%)', WebkitBackgroundClip: 'text', @@ -44,7 +45,7 @@ const LawEnforcement: React.FC = () => { }; return ( -
+
navigateTo('lawEnforcementPunishment')}>
diff --git a/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/MunicipalFacilities/index.tsx b/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/MunicipalFacilities/index.tsx index f5de666e..9e27bfda 100644 --- a/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/MunicipalFacilities/index.tsx +++ b/src/pages/Home_v_2504/components/RightContent/IndustryOverview/components/MunicipalFacilities/index.tsx @@ -10,9 +10,11 @@ import { Flex } from 'antd'; import dayjs from 'dayjs'; import React from 'react'; import styles from './index.less'; +import { useDashboard } from '@/pages/Home_v_2504/components/context'; const MunicipalFacilities: React.FC = () => { const { dispatch } = useGlobalModalServices(); + const { navigateTo } = useDashboard(); const commonValueStyle = { background: 'linear-gradient(180deg, #9CF8F7 0%, #25BBFF 100%)', @@ -110,7 +112,7 @@ const MunicipalFacilities: React.FC = () => { ); return ( -
+
navigateTo('municipal')}>