| File was renamed from src/pages/project-app/projects/wayline.vue |
| | |
| | | </a-row> |
| | | </div> |
| | | <div class="height-100"> |
| | | <a-spin :spinning="loading" :delay="1000" tip="downloading" size="large"> |
| | | <div class="scrollbar uranus-scrollbar" v-if="waylinesData.data.length !== 0" @scroll="onScroll"> |
| | | <div v-for="wayline in waylinesData.data" :key="wayline.id"> |
| | | <div class="wayline-panel" style="padding-top: 5px;" @click="selectRoute(wayline)"> |
| | |
| | | </div> |
| | | </template> |
| | | </a-modal> |
| | | </a-spin> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | import { downloadFile } from '/@/utils/common' |
| | | import { IPage } from '/@/api/http/type' |
| | | |
| | | const loading = ref(false) |
| | | const store = useMyStore() |
| | | const pagination :IPage = { |
| | | page: 1, |
| | |
| | | } |
| | | |
| | | function downloadWayline (waylineId: string, fileName: string) { |
| | | loading.value = true |
| | | downloadWaylineFile(workspaceId, waylineId).then(res => { |
| | | if (res.code && res.code !== 0) { |
| | | if (!res) { |
| | | return |
| | | } |
| | | const data = new Blob([res.data], { type: 'application/zip' }) |
| | | const data = new Blob([res], { type: 'application/zip' }) |
| | | downloadFile(data, fileName + '.kmz') |
| | | }).finally(() => { |
| | | loading.value = false |
| | | }) |
| | | } |
| | | |