From 3d9e149b3e42cb68efeffc695a1858b6c58de1dd Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Sat, 14 Jun 2025 14:39:18 +0800
Subject: [PATCH] feat:正射不显示定位

---
 src/views/dataCenter/dataCenter.vue |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/views/dataCenter/dataCenter.vue b/src/views/dataCenter/dataCenter.vue
index ae9984e..4236a5a 100644
--- a/src/views/dataCenter/dataCenter.vue
+++ b/src/views/dataCenter/dataCenter.vue
@@ -74,7 +74,7 @@
             <span
               class="location"
               @click="positionDetail(scope.row)"
-              v-if="scope.row.resultType !== 1"
+              v-if="scope.row.resultType !== 1 && !isTifFile(scope.row.nickName)" 
               >定位</span
             >
           </template>
@@ -392,6 +392,15 @@
   });
 };
 // 查看弹框
+// 正射
+const a ='odm_orthophoto.tif..tif'
+function isTifFile(filename) {
+  const lastDot = filename.lastIndexOf('.');
+  if (lastDot === -1) return false; // 无后缀
+  return filename.slice(lastDot + 1).toLowerCase() === 'tif';
+}
+console.log('1',isTifFile(a));
+
 const dialogVisible = ref(false);
 const dialogDetailList = ref(null);
 const detailTitle = ref('');

--
Gitblit v1.9.3