From 2211e48347fe38b59e3d7f8f798ec4e03f131f7d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 25 Dec 2024 15:09:21 +0800
Subject: [PATCH] 企业详情加载企业范围去除,及跳转企业详情默认定位

---
 src/views/companyInfo/components/box/fireSource.vue |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/src/views/companyInfo/components/box/fireSource.vue b/src/views/companyInfo/components/box/fireSource.vue
index 971e0aa..39a96df 100644
--- a/src/views/companyInfo/components/box/fireSource.vue
+++ b/src/views/companyInfo/components/box/fireSource.vue
@@ -2,8 +2,8 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2023-03-13 14:54:26
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2023-03-13 15:00:55
- * @FilePath: \forest-fire\src\views\statistics\components\box\dataContent.vue
+ * @LastEditTime: 2024-12-25 11:36:30
+ * @FilePath: \bigScreen\src\views\companyInfo\components\box\fireSource.vue
  * @Description: 
  * 
  * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
@@ -18,7 +18,9 @@
           :preview-src-list="[data.companyInfo.imageUrls]" :initial-index="4" fit="cover">
           <template #error>
             <div class="image-slot">
-              <el-icon><icon-picture /></el-icon>
+              <el-icon>
+                <Picture />
+              </el-icon>
             </div>
           </template>
         </el-image>
@@ -63,6 +65,8 @@
 </template>
 
 <script setup>
+import { Picture } from '@element-plus/icons-vue'
+
 import publicContent from './publicContent.vue'
 import { getAssetsFile } from 'utils/utils'
 import { getfirmInfoDetail } from '@/api/indParkInfo'
@@ -132,7 +136,7 @@
   getDetail()
 })
 
-function getDetail() {
+function getDetail () {
   getfirmInfoDetail({
     id: data.companyInfo.id
   }).then(res => {
@@ -143,6 +147,21 @@
     rescueTeamList.value.forEach(item => {
       data.companyInfo[item.name] && (item.content = data.companyInfo[item.name])
     })
+
+    let lng = companyInfoList.value.find(i => i.name == 'lng' && i.content != '')
+    let lat = companyInfoList.value.find(i => i.name == 'lat' && i.content != '')
+
+    if (lng && lat) {
+      window.$viewer.zoomToPosition(new DC.Position(
+        lng.content,
+        lat.content,
+        400,
+        0,
+        -90,
+        0
+      ), () => {
+      })
+    }
   }).catch(err => {
   })
 }

--
Gitblit v1.9.3