diff --git a/src/views/trials/trials-inspection/index.vue b/src/views/trials/trials-inspection/index.vue index 99ccec1..e1a7d80 100644 --- a/src/views/trials/trials-inspection/index.vue +++ b/src/views/trials/trials-inspection/index.vue @@ -345,18 +345,37 @@ export default { if (item.SCPStudyId) { data.ScpStudyIdList.push(item.SCPStudyId) } - }) - // return this.downloadZipDirect(data) - this.onUploadProgress(this.downloadId) - await PatientStudyBatchDownload(data) - // if (res.IsSuccess) { - // // let confirm = await this.$confirm(this.$t('trials:imageSummary:confirm:space').replace('xxx', this.formatSize(res.OtherInfo.ImageSize))) - // // if (!confirm) return false - // // this.downloadId = res.OtherInfo.downloadId - // // this.downloadImage(res.Result, res.OtherInfo) - // // this.downloadVisible = true - // } + let params = null + data.PatientIdList.forEach(item => { + if (!params) { + params = `PatientIdList=${item}` + } else { + params += `&PatientIdList=${item}` + } + }) + data.ScpStudyIdList.forEach(item => { + if (!params) { + params = `ScpStudyIdList=${item}` + } else { + params += `&ScpStudyIdList=${item}` + } + }) + if (!params) { + params = `CurrentNoticeId=${this.downloadId}` + } else { + params += `&CurrentNoticeId=${this.downloadId}` + } + if (params) { + params += `&access_token=${getToken()}` + let url = `/api/download/GetPatientStudyBatchDownload?${params}` + // let url = `http://106.14.89.110:30021/download/DownloadBigFileBatch?fileName=Test_HIR_New_log.ldf` + let a = document.createElement('a') + a.href = url + a.click() + a = null + } + } catch (err) { console.log(err) }