|
@@ -487,7 +487,14 @@
|
|
|
:data-selection-paused="selectionVisibleInMode ? 'no' : 'yes'"
|
|
:data-selection-paused="selectionVisibleInMode ? 'no' : 'yes'"
|
|
|
:aria-label="facilityDetailOpen ? '设施详情' : '点位与设备详情'"
|
|
:aria-label="facilityDetailOpen ? '设施详情' : '点位与设备详情'"
|
|
|
:data-facility-anchor-id="facilityDetailOpen ? entityDetailStore.identity.id : null">
|
|
:data-facility-anchor-id="facilityDetailOpen ? entityDetailStore.identity.id : null">
|
|
|
- <FacilityDetailCard v-if="facilityDetailOpen" :location-reason="fixedLocationReason" :location-hint="facilityPointStore.selectedPoint?.locationHint || ''" @locate-device="locateDeviceFromDetail" />
|
|
|
|
|
|
|
+ <FacilityDetailCard
|
|
|
|
|
+ v-if="facilityDetailOpen"
|
|
|
|
|
+ :location-reason="fixedLocationReason"
|
|
|
|
|
+ :location-hint="facilityPointStore.selectedPoint?.locationHint || ''"
|
|
|
|
|
+ :underground-ready="facilityUndergroundReady"
|
|
|
|
|
+ @locate-device="locateDeviceFromDetail"
|
|
|
|
|
+ @open-underground="openFacilityUnderground"
|
|
|
|
|
+ />
|
|
|
<PointDetailCard v-else :location-reason="fixedLocationReason" />
|
|
<PointDetailCard v-else :location-reason="fixedLocationReason" />
|
|
|
</aside>
|
|
</aside>
|
|
|
<aside v-if="eventStore.selectedEvent && uiStore.mode === 'warningResponse' && !introVisible"
|
|
<aside v-if="eventStore.selectedEvent && uiStore.mode === 'warningResponse' && !introVisible"
|
|
@@ -585,6 +592,7 @@ import { selectMonitoringPoint } from './pointSelection.js'
|
|
|
// 票 46:模式图层计划(唯一裁决点)+ 模式切换的选择态语义判定。
|
|
// 票 46:模式图层计划(唯一裁决点)+ 模式切换的选择态语义判定。
|
|
|
import { planModeLayers, planModeSelectionTransition } from './domain/modeLayerPlan.js'
|
|
import { planModeLayers, planModeSelectionTransition } from './domain/modeLayerPlan.js'
|
|
|
import { PIPE_ENHANCEMENT_KIND, planPipeEnhancement } from './domain/pipeEnhancement.js'
|
|
import { PIPE_ENHANCEMENT_KIND, planPipeEnhancement } from './domain/pipeEnhancement.js'
|
|
|
|
|
+import { facilityUndergroundTarget } from './domain/facilityUnderground.js'
|
|
|
// 票 48:图例计数纯函数(色值/词条/计数与地图管线同源的 domain 单源)。
|
|
// 票 48:图例计数纯函数(色值/词条/计数与地图管线同源的 domain 单源)。
|
|
|
import { pipeColorCounts } from './domain/pipeVisual.js'
|
|
import { pipeColorCounts } from './domain/pipeVisual.js'
|
|
|
import { usePipeEnhancementStore } from './stores/pipeEnhancementStore.js'
|
|
import { usePipeEnhancementStore } from './stores/pipeEnhancementStore.js'
|
|
@@ -1287,6 +1295,28 @@ watch(() => [pipeEnhancementSelection.value, modeLayerPlan.value.pipelines, mode
|
|
|
*/
|
|
*/
|
|
|
const pipeColorCountsView = computed(() => pipeColorCounts(pipeNetworkStore.layer.data))
|
|
const pipeColorCountsView = computed(() => pipeColorCounts(pipeNetworkStore.layer.data))
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * 当前设施能否下钻到「地下管线详情视图」(维护者 2026-11-16)。
|
|
|
|
|
+ *
|
|
|
|
|
+ * 判据收在 `domain/facilityUnderground.js`:设施要能定位到一条**真实可见的管段**
|
|
|
|
|
+ * (窨井/排水设施用详情里的 networkId,管线用自身编码)。定位不到就不画按钮 ——
|
|
|
|
|
+ * 画了就是「点了必然失败」的入口。
|
|
|
|
|
+ */
|
|
|
|
|
+const facilityUndergroundReady = computed(() => Boolean(
|
|
|
|
|
+ facilityDetailOpen.value
|
|
|
|
|
+ && facilityUndergroundTarget(entityDetailStore.detail, pipeNetworkStore.pipelines?.value ?? pipeNetworkStore.pipelines ?? []),
|
|
|
|
|
+))
|
|
|
|
|
+
|
|
|
|
|
+/** 「查看详情」:选中关联管段,既有三维视图随之打开(不新建第二条渲染链)。 */
|
|
|
|
|
+function openFacilityUnderground() {
|
|
|
|
|
+ const target = facilityUndergroundTarget(
|
|
|
|
|
+ entityDetailStore.detail,
|
|
|
|
|
+ pipeNetworkStore.pipelines?.value ?? pipeNetworkStore.pipelines ?? [],
|
|
|
|
|
+ )
|
|
|
|
|
+ if (!target) return
|
|
|
|
|
+ pipeEnhancementStore.select(target.kind, target.code)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
function selectPipeEnhancement(hit) {
|
|
function selectPipeEnhancement(hit) {
|
|
|
const kind = hit && hit.objectKind === 'component'
|
|
const kind = hit && hit.objectKind === 'component'
|
|
|
? PIPE_ENHANCEMENT_KIND.COMPONENT
|
|
? PIPE_ENHANCEMENT_KIND.COMPONENT
|