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 | 24 +++++++++++++++++++-----
1 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/src/views/dataCenter/dataCenter.vue b/src/views/dataCenter/dataCenter.vue
index 4236a5a..7c6d14a 100644
--- a/src/views/dataCenter/dataCenter.vue
+++ b/src/views/dataCenter/dataCenter.vue
@@ -212,6 +212,7 @@
deleteFileMultipleApi,
downloadApi,
updataTitleApi,
+ getOrthoimageInfo
} from '@/api/dataCenter/dataCenter';
import { getShowImg, getSmallImg } from '@/utils/util';
import { onMounted, watch } from 'vue';
@@ -392,24 +393,37 @@
});
};
// 查看弹框
-// 正射
-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 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