From 6c9b5054af5e92d562268dee08f29c2d62962f3e Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Mon, 20 Jul 2026 16:57:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(map):=20=E4=BF=AE=E6=AD=A3=E6=B0=94?= =?UTF-8?q?=E8=B1=A1=E7=9B=91=E6=B5=8B=E5=BC=B9=E7=AA=97=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E5=8F=8A=E6=A0=87=E8=AE=B0=E7=B1=BB=E5=9E=8B=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 仅在标记类型为气象监测时渲染MeteorologicalMonitoring组件 - 选择气象监测标记时添加markType属性用于区分标记类型 --- src/pages/Container/Map/components/Content/modal/index.js | 4 +++- src/pages/Container/Map/components/RightUtils/index.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/Container/Map/components/Content/modal/index.js b/src/pages/Container/Map/components/Content/modal/index.js index fb07158..6db89cb 100644 --- a/src/pages/Container/Map/components/Content/modal/index.js +++ b/src/pages/Container/Map/components/Content/modal/index.js @@ -18,7 +18,9 @@ const CustomModal = () => { title={modalData.title || ""} wrapClassName="map_bi_model" > - + { + modalData.markType === "meteorologicalMonitoring" && + } ); }; diff --git a/src/pages/Container/Map/components/RightUtils/index.js b/src/pages/Container/Map/components/RightUtils/index.js index 3237ce8..b8b0ecd 100644 --- a/src/pages/Container/Map/components/RightUtils/index.js +++ b/src/pages/Container/Map/components/RightUtils/index.js @@ -107,7 +107,7 @@ function RightUtils(props) { actions.setPureMap(!pureMap); break; case "weather": - actions.selectMark({ title: "气象监测" }); + actions.selectMark({ title: "气象监测", markType: "meteorologicalMonitoring" }); break; case "fourColor": if (!currentPort) {