From 9597d998872b20311a75bec1a970efd60c840c40 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Thu, 04 Sep 2025 15:02:32 +0800
Subject: [PATCH] feat:调整地图角度

---
 src/views/resource/components/spotDetails.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/views/resource/components/spotDetails.vue b/src/views/resource/components/spotDetails.vue
index d513445..fbcbe16 100644
--- a/src/views/resource/components/spotDetails.vue
+++ b/src/views/resource/components/spotDetails.vue
@@ -59,11 +59,9 @@
             <div class="tabname">图斑列表</div>
             <el-table
               ref="polygonTableEle"
-              highlight-current-row
-              
+              highlight-current-row 
               :row-class-name="tableRowClassName"
-              :data="tableData"
-               
+              :data="tableData"  
               @row-click="handleLocationPolygon"
             >
               <el-table-column type="index" align="center" width="30" label="序号">
@@ -325,6 +323,11 @@
       const boundingSphere = Cesium.BoundingSphere.fromPoints(positions);
       homeViewer.value?.camera.flyToBoundingSphere(boundingSphere, {
         duration: 0,
+         offset: new Cesium.HeadingPitchRange(
+                  Cesium.Math.toRadians(-45), 
+                  Cesium.Math.toRadians(-90),
+                 
+                ),
       });
     }
     viewInstance.value?.removeLeftClickEvent('spotHighlighting');
@@ -714,10 +717,10 @@
   }
 :deep(.el-table__body) {
   tr {
-    height: 46px;  // 设置行高
+    height: 46px;  
   }
   td {
-    padding: 8px 0;  // 调整单元格内边距
+    padding: 8px 0;  
   }
 }
   .operationspan {

--
Gitblit v1.9.3