From a09f984cbe2369e13d8694e91c4f8165ec6c2ba9 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 20 八月 2025 14:05:10 +0800
Subject: [PATCH] 动态溯源模块优化

---
 src/components/grid/GridSearch.vue |   19 +++++--------------
 1 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/src/components/grid/GridSearch.vue b/src/components/grid/GridSearch.vue
index cbb977a..406818d 100644
--- a/src/components/grid/GridSearch.vue
+++ b/src/components/grid/GridSearch.vue
@@ -17,10 +17,10 @@
             label="缁忕含搴�"
             :content="data.gridCell.longitude + ', ' + data.gridCell.latitude"
           />
-          <DescriptionsListItem label="鍥涜嚦鑼冨洿" content="/" />
+          <!-- <DescriptionsListItem label="鍥涜嚦鑼冨洿" content="/" /> -->
         </DescriptionsList>
 
-        <el-tabs v-model="activeName" >
+        <el-tabs v-model="activeName">
           <el-tab-pane label="缃戞牸鏁版嵁" name="first">
             <DescriptionsList>
               <DescriptionsListItem
@@ -134,21 +134,11 @@
 
 const data = computed(() => {
   if (gridStore.selectedGridCellAndDataDetail) {
-    // const { gridCell, gridDataDetail } =
-    //   gridStore.selectedGridCellAndDataDetail;
-    // const res = [];
-    // // 濡傛灉缃戞牸鏁版嵁涓鸿瀺鍚堟暟鎹紝鍒欓渶瑕佸悓姝ュ睍绀哄嚭鍘熷鏁版嵁
-    // if (gridDataDetail.mixData) {
-    // }
     return {
       gridCell: gridStore.selectedGridCellAndDataDetail.gridCell,
       gridDataDetail: gridStore.selectedGridCellAndDataDetail.gridDataDetail,
       extData: gridStore.selectedGridCellAndDataDetail.extData
     };
-    // console.log(gridStore.selectedGridCellAndDataDetail);
-    
-    // return undefined;
-    // return gridStore.selectedGridCellAndDataDetail;
   } else {
     return undefined;
   }
@@ -158,6 +148,7 @@
   () => gridStore.selectedGridCellAndDataDetail,
   (nv, ov) => {
     if (nv != ov) {
+      activeName.value = 'first';
       dialogVisible.value = true;
     }
   },
@@ -165,10 +156,10 @@
 );
 </script>
 <style scoped>
-:deep(.el-tabs__item){
+:deep(.el-tabs__item) {
   color: rgba(221, 221, 221, 0.806);
 }
-:deep(.is-active){
+:deep(.is-active) {
   color: #f0ff1d;
 }
 </style>

--
Gitblit v1.9.3