From 579821bffd232e5e7614311347c5dc8e8aef31df Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Thu, 12 Jun 2025 18:07:29 +0800
Subject: [PATCH] feat:数据中心地图,编辑文件名

---
 src/views/dataCenter/dataCenter.vue               |    2 +-
 src/views/dataCenter/components/dataCenterMap.vue |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/views/dataCenter/components/dataCenterMap.vue b/src/views/dataCenter/components/dataCenterMap.vue
index 8efa061..217b3bd 100644
--- a/src/views/dataCenter/components/dataCenterMap.vue
+++ b/src/views/dataCenter/components/dataCenterMap.vue
@@ -25,12 +25,13 @@
 const currentAreaPosition = ref({ height: 1987280, latitude: 27.636112, longitude: 115.732975 });
 let handler = null;
 const props = defineProps(['jobId','mapList']);
+console.log('props.mapList',props.mapList);
 
 // 存储地图实体引用
 const dataPointEntities = ref([]);
 const isMapInitialized = ref(false); //地图加载
 const dataPointList = ref([]);
-const activeEntity = ref(null); // 当前激活的点
+const activeEntity = ref(props.mapList); // 当前激活的点
 
 // 获取弹框box
 const detailId = ref('')
@@ -244,6 +245,7 @@
   try {
     const res = await getMapInfoAPI(ids);
     dataPointList.value = res.data.data || [];
+console.log('dataPointList.value',dataPointList.value);
 
     // 确保地图已初始化后再渲染
     if (isMapInitialized.value && viewer) {
diff --git a/src/views/dataCenter/dataCenter.vue b/src/views/dataCenter/dataCenter.vue
index afa560d..373a550 100644
--- a/src/views/dataCenter/dataCenter.vue
+++ b/src/views/dataCenter/dataCenter.vue
@@ -443,7 +443,7 @@
 const panoramaParamsUrl = ref(null);
 const clickpanorama = val => {
   panoramaParamsShow.value = true;
-  panoramaParamsUrl.value = val.img;
+  panoramaParamsUrl.value = val.link;
   // console.log('全景', val);
 };
 // 视频

--
Gitblit v1.9.3