| | |
| | | <!-- 表格部分 --> |
| | | <div class="dataTable"> |
| | | <el-table |
| | | v-loading="loading" |
| | | v-loading="loadings" |
| | | element-loading-text="加载中" |
| | | stripe |
| | | :data="tableData" |
| | |
| | | visible: '可见光', |
| | | ir: '红外', |
| | | }; |
| | | const loading = ref(true); |
| | | const loadings = ref(true); |
| | | let loading |
| | | const total = ref(0); |
| | | const startTime = dayjs().subtract(6, 'day').startOf('day'); |
| | | const endTime = dayjs().endOf('day'); |
| | |
| | | }; |
| | | getaiImagesPageAPI(params, { current: jobListParams.current, size: jobListParams.size }).then( |
| | | res => { |
| | | loading.value = true; |
| | | loadings.value = true; |
| | | total.value = res.data.data.total; |
| | | tableData.value = res.data.data.records.map(i => ({ |
| | | ...i, |
| | |
| | | file_name: i.name.split('/').pop(), |
| | | })); |
| | | // console.log('res', tableData.value); |
| | | loading.value = false; |
| | | loadings.value = false; |
| | | } |
| | | ); |
| | | }; |
| | |
| | | }, index * 500); // 每个文件下载间隔50毫秒 |
| | | }); |
| | | } else { |
| | | // loading = ElLoading.service({ background: 'rgba(0, 0, 0, 0.5)', text: '打包中,请稍等...' }) |
| | | loading = ElLoading.service({ background: 'rgba(0, 0, 0, 0.5)', text: '打包中,请稍等...' }) |
| | | const fileIds = list.map(i =>i.id); |
| | | console.log('fileIds', fileIds, list); |
| | | let aaa = { |
| | |
| | | }; |
| | | |
| | | downloadApi(aaa).then(res => { |
| | | // console.log('res.data.data', res.data.data); |
| | | console.log('res.data.data', res.data.data); |
| | | aLinkDownload(res.data.data, `sjzx-file-pack-${dayjs().format('YYYYMMDDHHmmss')}.zip`); |
| | | // loading.close() |
| | | loading.close() |
| | | }); |
| | | } |
| | | }; |