From 626086d6f2106df7ff161ea66fe5a8d8a6863319 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Tue, 19 Nov 2024 14:52:58 +0800
Subject: [PATCH] 工具

---
 src/views/space/components/box/dataContent.vue |   65 +++++++++++++-------------------
 1 files changed, 27 insertions(+), 38 deletions(-)

diff --git a/src/views/space/components/box/dataContent.vue b/src/views/space/components/box/dataContent.vue
index cef64e9..5ecaab6 100644
--- a/src/views/space/components/box/dataContent.vue
+++ b/src/views/space/components/box/dataContent.vue
@@ -2,7 +2,7 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2023-03-13 14:54:26
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-12 17:55:45
+ * @LastEditTime: 2024-11-15 14:58:23
  * @FilePath: \bigScreen\src\views\space\components\box\dataContent.vue
  * @Description: 
  * 
@@ -106,48 +106,37 @@
     })
 }
 
+let state = reactive({
+  layer: {}
+})
+
+
 // 行点击
 function rowClick (row) {
-  // 读取定位飞
-  window.$viewer.zoomToPosition(new DC.Position(
-    Number(row.lng),
-    Number(row.lat),
-    800,
-    0,
-    -80,
-    0
-  ), () => {
-  })
 
-  // let layer = new DC.VectorLayer('layer')
+  // if (state.layer) {
+  //   window.$viewer.removeLayer(state.layer)
+  // }
+  // let layer = new DC.HtmlLayer(`${row.id}`)
+  // state.layer = layer
   // window.$viewer.addLayer(layer)
-  // let positions = generatePosition(row.lng, row.lat)
-  // let material = new DC.PolylineDashMaterialProperty({
-  //   color: DC.Color.ORANGE
-  // })
-  // positions.forEach(item => {
-  //   let label = new DC.CustomLabel(
-  //     item,
-  //     row.name
-  //   )
-  //   label.setStyle({
-  //     fillColor: DC.Color.YELLOW,
-  //     font: '12px',
-  //     pixelOffset: { x: 0, y: -10 }
-  //   })
-  //   label.setVLine({
-  //     width: 2,
-  //     material
-  //   })
-  //   layer.addOverlay(label)
-  // })
+  // let iconEl = `<div class="marsBlueGradientPnl">
+  //                 <div>${row.name}</div>
+  //               </div>`
+  // let divIcon = new DC.DivIcon(
+  //   new DC.Position(row.lng, row.lat, 0),
+  //   `<div class="public-map-popup">
+  //                   ${iconEl}
+  //                 </div>`
+  // )
+  // let incident = () => { }
+  // divIcon.on(DC.MouseEventType.CLICK, incident)
+  // layer.addOverlay(divIcon)
+
+  window.$viewer.flyToPosition(new DC.Position(row.lng, row.lat, 600, 0, -90, 0))
+
 }
 
-function generatePosition (lng, lat) {
-  let list = []
-  list.push(new DC.Position(lng, lat, 100))
-  return list
-}
 
 // 查看详情
 function goDetail (row) { }
@@ -196,7 +185,7 @@
       ref="SeachBarCondition"></global-search>
 
     <div class="h0 flex-1 table-content" ref="TableContent">
-      <el-table :data="tableData" :height="curTableHeight" style="width: 100%" v-loading="loading">
+      <el-table border :data="tableData" :height="curTableHeight" style="width: 100%" v-loading="loading">
         <el-table-column prop="name" label="名称" />
         <el-table-column prop="emergencySpaceType" label="类型" width="70" />
         <el-table-column prop="mainFuncName" label="作用" width="60" />

--
Gitblit v1.9.3