|
@@ -224,10 +224,13 @@ function selectionVisible({ mode, selection, objects, markers, associatedDevices
|
|
|
const current = selection || {}
|
|
const current = selection || {}
|
|
|
if (!current.level || current.level === 'none') return false
|
|
if (!current.level || current.level === 'none') return false
|
|
|
// 定位目标本身必须可见(#127):定位的语义是「让目标可见」,不是只把相机开过去。
|
|
// 定位目标本身必须可见(#127):定位的语义是「让目标可见」,不是只把相机开过去。
|
|
|
- // 基础设施模式整体不呈现监测设备,该模式不破例;目标没被坐标准入收下时也不画面板。
|
|
|
|
|
|
|
+ // 目标没被坐标准入收下时也不画面板。
|
|
|
|
|
+ //
|
|
|
|
|
+ // 独立设备的揭示目标 deviceCode 是空的(它靠 code 揭示),早先只认 deviceCode,
|
|
|
|
|
+ // 于是这类目标永远判成「没上图」→ 详情面板被 v-show 直接隐藏(维护者 2026-12-02)。
|
|
|
if (locateTarget) {
|
|
if (locateTarget) {
|
|
|
const targetCode = String(locateTarget.code || '').trim()
|
|
const targetCode = String(locateTarget.code || '').trim()
|
|
|
- const targetDevice = String(locateTarget.deviceCode || '').trim()
|
|
|
|
|
|
|
+ const targetDevice = String(locateTarget.deviceCode || '').trim() || targetCode
|
|
|
// 关联设备的目标点在设备图层(`associatedDevices` 里的临时 drawn 行),不在摘要 markers。
|
|
// 关联设备的目标点在设备图层(`associatedDevices` 里的临时 drawn 行),不在摘要 markers。
|
|
|
const targetRow = targetDevice
|
|
const targetRow = targetDevice
|
|
|
? (Array.isArray(associatedDevices) ? associatedDevices : []).find((row) => row && row.code === targetDevice)
|
|
? (Array.isArray(associatedDevices) ? associatedDevices : []).find((row) => row && row.code === targetDevice)
|