|
@@ -1065,7 +1065,10 @@ async function locateDeviceFromDetail(deviceCode) {
|
|
|
*/
|
|
*/
|
|
|
const selection = computed(() => detailStore.selection || { level: DETAIL_LEVEL.NONE, pointCode: '', deviceCode: '' })
|
|
const selection = computed(() => detailStore.selection || { level: DETAIL_LEVEL.NONE, pointCode: '', deviceCode: '' })
|
|
|
const opened = selection && selection.level === DETAIL_LEVEL.EQUIPMENT && selection.deviceCode === deviceCode
|
|
const opened = selection && selection.level === DETAIL_LEVEL.EQUIPMENT && selection.deviceCode === deviceCode
|
|
|
- if (!opened) await detailStore.openDevice(deviceCode, {})
|
|
|
|
|
|
|
+ // 兜底时**必须把定位链设好的揭示目标带上**:openDevice 内部会 setLocateTarget(options.locateTarget || null),
|
|
|
|
|
+ // 传空对象等于把 reveal 清成 null,详情面板的可见性判据随即失去「这是定位目标」的依据而被隐藏
|
|
|
|
|
+ // (维护者 2026-12-02:定位成功、浮层节点也在,却被 v-show 置成 display:none)。
|
|
|
|
|
+ if (!opened) await detailStore.openDevice(deviceCode, { locateTarget: detailStore.locateTarget })
|
|
|
// 定位这条链跨了「摘要 → 设备档案 → 设备图层 → 详情面板」四层,
|
|
// 定位这条链跨了「摘要 → 设备档案 → 设备图层 → 详情面板」四层,
|
|
|
// 只飞不动或只开面板不出点时,光看界面分不清断在哪一层。这行把四层的现场一次打出来。
|
|
// 只飞不动或只开面板不出点时,光看界面分不清断在哪一层。这行把四层的现场一次打出来。
|
|
|
console.info('[定位设备]', {
|
|
console.info('[定位设备]', {
|