From f653067d8b21f0e758d8e55c0c1de6e57fe8f6a1 Mon Sep 17 00:00:00 2001 From: zxyroyy <1442470094@qq.com> Date: Sun, 21 Jun 2026 20:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B4=A9=E5=A1=8C=E9=9A=90?= =?UTF-8?q?=E6=82=A3=E7=82=B9=E8=84=89=E5=86=B2=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/rain-earthquake/useAnalysisButton.ts | 3 ++- src/hooks/rain-earthquake/useAroundAnalysis.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hooks/rain-earthquake/useAnalysisButton.ts b/src/hooks/rain-earthquake/useAnalysisButton.ts index 6cc50c1..a72299f 100644 --- a/src/hooks/rain-earthquake/useAnalysisButton.ts +++ b/src/hooks/rain-earthquake/useAnalysisButton.ts @@ -53,11 +53,11 @@ const RESOURCE_CONFIGS: ButtonResourceConfig[] = [ { key: LoadingResource.DEBRIS_FLOW_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'debris_flow' }, { key: LoadingResource.WATER_LOGGING_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'water_logging' }, { key: LoadingResource.FLASH_FLOOD_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'flash_flood' }, + { key: LoadingResource.COLLAPSE_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'collapse' }, { key: LoadingResource.RISK_POINT, category: 'risk-point' }, { key: LoadingResource.BRIDGE, category: 'bridge' }, { key: LoadingResource.RESERVOIR, category: 'reservoir' }, ]; - // ==================== 图层可见性判断 ==================== const isCategoryVisible = (category: PointResourceCategory, originalType?: string): boolean => { const visibilityMap: Record boolean> = { @@ -77,6 +77,7 @@ const isCategoryVisible = (category: PointResourceCategory, originalType?: strin debris_flow: () => poi.value.showDebrisFlowHiddenPoint.show, water_logging: () => poi.value.showWaterLoggingHiddenPoint.show, flash_flood: () => poi.value.showFlashFloodHiddenPoint.show, + collapse: () => poi.value.showCollapseHiddenPoint.show, }; return hiddenMap[originalType || '']?.() ?? false; }, diff --git a/src/hooks/rain-earthquake/useAroundAnalysis.ts b/src/hooks/rain-earthquake/useAroundAnalysis.ts index 8e2cab6..83e9906 100644 --- a/src/hooks/rain-earthquake/useAroundAnalysis.ts +++ b/src/hooks/rain-earthquake/useAroundAnalysis.ts @@ -32,6 +32,7 @@ export const useAroundAnalysis = () => { { key: LoadingResource.DEBRIS_FLOW_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'debris_flow', isVisible: () => poi.value.showDebrisFlowHiddenPoint.show }, { key: LoadingResource.WATER_LOGGING_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'water_logging', isVisible: () => poi.value.showWaterLoggingHiddenPoint.show }, { key: LoadingResource.FLASH_FLOOD_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'flash_flood', isVisible: () => poi.value.showFlashFloodHiddenPoint.show }, + { key: LoadingResource.COLLAPSE_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'collapse', isVisible: () => poi.value.showCollapseHiddenPoint.show }, { key: LoadingResource.RISK_POINT, category: 'risk-point', isVisible: () => map.value.riskPointShow.show }, { key: LoadingResource.BRIDGE, category: 'bridge', isVisible: () => infra.value.showBridge.show }, { key: LoadingResource.RESERVOIR, category: 'reservoir', isVisible: () => infra.value.showReservoir.show },