From 91db0f9939fef7152e06b61c09166ebc628f8a7e Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Sat, 14 Jun 2025 15:25:43 +0800
Subject: [PATCH] feat:正射不显示定位
---
src/views/dataCenter/dataCenter.vue | 29 ++++++++++++++++++++++++++---
1 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/src/views/dataCenter/dataCenter.vue b/src/views/dataCenter/dataCenter.vue
index ae9984e..7c6d14a 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>
@@ -212,6 +212,7 @@
deleteFileMultipleApi,
downloadApi,
updataTitleApi,
+ getOrthoimageInfo
} from '@/api/dataCenter/dataCenter';
import { getShowImg, getSmallImg } from '@/utils/util';
import { onMounted, watch } from 'vue';
@@ -392,15 +393,37 @@
});
};
// 查看弹框
+
+
+function isTifFile(filename) {
+ const lastDot = filename.lastIndexOf('.');
+ if (lastDot === -1) return false; // 无后缀
+ return filename.slice(lastDot + 1).toLowerCase() === 'tif';
+}
+// 接口
+const getOrthoimageInfoFUN =()=>{
+
+}
+
const dialogVisible = ref(false);
const dialogDetailList = ref(null);
const detailTitle = ref('');
const lookDetail = val => {
- getAttachInfoAPI(val.id).then(res => {
- detailTitle.value = res.data.data.nickName;
+console.log('查看',val.resultType);
+if(val.resultType === 4){ // 正射
+ getOrthoimageInfo(val.id).then(res=>{
+ console.log('正射',res.data.data);
+ dialogDetailList.value = res.data.data;
+ })
+}else{
+ getAttachInfoAPI(val.id).then(res => {
+ detailTitle.value = res.data.data.nickName;
dialogDetailList.value = res.data.data;
dialogDetailList.value = { ...res.data.data, checkedinput: false };
+ console.log('detailTitle.value',dialogDetailList.value);
});
+}
+
dialogVisible.value = true;
};
--
Gitblit v1.9.3