下载优化
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
9eac0a7d6c
commit
876ee4fe32
|
|
@ -345,18 +345,37 @@ export default {
|
||||||
if (item.SCPStudyId) {
|
if (item.SCPStudyId) {
|
||||||
data.ScpStudyIdList.push(item.SCPStudyId)
|
data.ScpStudyIdList.push(item.SCPStudyId)
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
// return this.downloadZipDirect(data)
|
let params = null
|
||||||
this.onUploadProgress(this.downloadId)
|
data.PatientIdList.forEach(item => {
|
||||||
await PatientStudyBatchDownload(data)
|
if (!params) {
|
||||||
// if (res.IsSuccess) {
|
params = `PatientIdList=${item}`
|
||||||
// // let confirm = await this.$confirm(this.$t('trials:imageSummary:confirm:space').replace('xxx', this.formatSize(res.OtherInfo.ImageSize)))
|
} else {
|
||||||
// // if (!confirm) return false
|
params += `&PatientIdList=${item}`
|
||||||
// // this.downloadId = res.OtherInfo.downloadId
|
}
|
||||||
// // this.downloadImage(res.Result, res.OtherInfo)
|
})
|
||||||
// // this.downloadVisible = true
|
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) {
|
} catch (err) {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue