| | |
| | | deleteFileMultipleApi, |
| | | downloadApi, |
| | | updataTitleApi, |
| | | getOrthoimageInfo, |
| | | getOrthoimageInfo, getDownloadStatusApi |
| | | } from '@/api/dataCenter/dataCenter'; |
| | | import { getShowImg, getSmallImg, getzsSmallImg } from '@/utils/util'; |
| | | import { onMounted, watch } from 'vue'; |
| | |
| | | a.click(); |
| | | document.body.removeChild(a); |
| | | } |
| | | const fileDownload = () => { |
| | | const fileDownload = async () => { |
| | | const list = selectedRows.value.filter(i => i.checked); |
| | | if (!list?.length) return ElMessage.warning('请选择文件'); |
| | | if (list.length === 1) { |
| | |
| | | jobName: '', |
| | | resultType: '', |
| | | startTime: '', |
| | | wayLineJobIds: [], |
| | | type:'htsjzx' |
| | | }; |
| | | |
| | | downloadApi(aaa).then(res => { |
| | | aLinkDownload(res.data.data, `sjzx-file-pack-${dayjs().format('YYYYMMDDHHmmss')}.zip`); |
| | | const res = await getDownloadStatusApi({type: 'htsjzx'}) |
| | | if (!['CANCELLED','COMPLETED'].includes(res.data.data?.status || 'COMPLETED')){ |
| | | loading.close() |
| | | return ElMessage.warning('还有正在处理的') |
| | | } |
| | | downloadApi(aaa).finally(res => { |
| | | loading.close(); |
| | | }); |
| | | } |