无人机管理后台前端(已迁走)
张含笑
2025-06-14 91db0f9939fef7152e06b61c09166ebc628f8a7e
feat:正射不显示定位
2 files modified
30 ■■■■ changed files
src/api/dataCenter/dataCenter.js 6 ●●●●● patch | view | raw | blame | history
src/views/dataCenter/dataCenter.vue 24 ●●●● patch | view | raw | blame | history
src/api/dataCenter/dataCenter.js
@@ -55,10 +55,12 @@
    })
}
// 正射文件
export const getOrthoimageInfo = params => {
export const getOrthoimageInfo = jobId => {
    return request({
        url: '/drone-odm/odmTaskInfo/odmTaskInfo/getOrthoimageInfo',
        method: 'get',
        params,
        params: {
            jobId,
          },
    })
}
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;
};