下载优化
continuous-integration/drone/push Build is running Details

main
wangxiaoshuang 2025-12-23 16:23:44 +08:00
parent 9eac0a7d6c
commit 876ee4fe32
1 changed files with 30 additions and 11 deletions

View File

@ -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)
}