| | |
| | | deleteFileMultipleApi, |
| | | downloadApi, |
| | | updataTitleApi, |
| | | getOrthoimageInfo |
| | | } from '@/api/dataCenter/dataCenter'; |
| | | import { getShowImg, getSmallImg } from '@/utils/util'; |
| | | import { onMounted, watch } from 'vue'; |
| | |
| | | }); |
| | | }; |
| | | // 查看弹框 |
| | | // 正射 |
| | | 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; |
| | | }; |
| | | |