| | |
| | | </div> |
| | | <el-dialog |
| | | class="gd-dialog" |
| | | append-to-body |
| | | v-model="isShowEditView" |
| | | :title="titleTxt" |
| | | :width="pxToRem(800)" |
| | | :width="pxToRem(500)" |
| | | :close-on-click-modal="false" |
| | | :destroy-on-close="true" |
| | | @close="handleClose" |
| | |
| | | } else { |
| | | // 批量下载 |
| | | try { |
| | | console.log(selectedFiles.value, '9999') |
| | | loadingData = ElLoading.service({ background: 'rgba(0, 0, 0, 0.5)', text: '打包中,请稍等...' }) |
| | | const fileIds = selectedFiles.value.map(i => i.id).join(',') |
| | | // const res = await getDownloadStatusApi({ type: 'dpsjzx' }) |
| | | // if (!['CANCELLED', 'COMPLETED'].includes(res.data.data?.status || 'COMPLETED')) { |
| | | // return ElMessage.warning('还有正在处理的') |
| | | // } |
| | | console.log(fileIds, '7777') |
| | | await fjDownloadByByteApi({ attachIds: fileIds }).then(res => { |
| | | if (res.data.code === 200) { |
| | | ElMessage.success('下载成功') |