From e68ee03553e51aa2d38327264d80d3adaf379499 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 03 Dec 2024 00:22:33 +0800
Subject: [PATCH] 企业详情点击显示全景处理

---
 src/views/companyInfo/components/box/fireTrend.vue |   33 ++++++++++++++++++++++++++++++++-
 1 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/src/views/companyInfo/components/box/fireTrend.vue b/src/views/companyInfo/components/box/fireTrend.vue
index 3f49081..8d44366 100644
--- a/src/views/companyInfo/components/box/fireTrend.vue
+++ b/src/views/companyInfo/components/box/fireTrend.vue
@@ -2,7 +2,7 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2023-03-13 14:54:26
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-12-02 21:23:17
+ * @LastEditTime: 2024-12-03 00:22:00
  * @FilePath: \bigScreen\src\views\companyInfo\components\box\fireTrend.vue
  * @Description:
  *
@@ -17,6 +17,9 @@
 
 let image = ref(VITE_APP_BASE + 'img/mapicon/yjwz.png')
 
+const panoramaShow = ref(false)
+const panoramaTitle = ref('')
+const panoramaUrl = ref('')
 const TableContent = ref(null)
 const curTableHeight = ref(0)
 const loading = ref(false)
@@ -122,6 +125,27 @@
     divIcon.attrParams = row
     let incident = (e) => {
       const { attrParams } = e.overlay
+
+      console.log(attrParams, 894654)
+
+
+      if (
+        attrParams.panoramicUrl && attrParams.panoramicUrl.length > 0 &&
+        attrParams.panoramicUrl.indexOf("http://vr.jxpskj.com:180") != -1
+      ) {
+        let panoramicUrl = attrParams.panoramicUrl.replace(
+          "http://vr.jxpskj.com:180",
+          "/panorama"
+        )
+
+        panoramaTitle.value = attrParams.name
+        panoramaUrl.value = panoramicUrl
+        panoramaShow.value = true
+
+        return
+      }
+
+
       // 删除
       destroyPupoLayers()
       if (picList.value.length == 0) {
@@ -180,6 +204,10 @@
   addPupoLayers = null
 })
 import { Search, Refresh } from '@element-plus/icons-vue'
+
+const closePanoramaPopup = () => {
+  panoramaShow.value = false
+}
 </script>
 
 <template>
@@ -209,6 +237,9 @@
 </el-table-column> -->
       </el-table>
     </div>
+
+    <panorama v-show="panoramaShow" :title="panoramaTitle" :url="panoramaUrl" @closePanoramaPopup="closePanoramaPopup">
+    </panorama>
   </div>
 </template>
 

--
Gitblit v1.9.3