下载问题解决
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
d956d6b64b
commit
13c9bb8b73
|
|
@ -276,7 +276,7 @@ export default {
|
|||
]
|
||||
},
|
||||
btnLoading: false,
|
||||
hospitalGroupList: [],
|
||||
// hospitalGroupList: [],
|
||||
groupStatus: 1,
|
||||
currentData: {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -320,6 +320,7 @@ export default {
|
|||
async downloadImage(data) {
|
||||
try {
|
||||
let { files, name } = this.formatDownloadFile(data)
|
||||
// return console.log(files)
|
||||
let res = await downLoadFile(files, name, 'zip')
|
||||
|
||||
if (res && this.downloadId) {
|
||||
|
|
@ -351,7 +352,7 @@ export default {
|
|||
files.push(obj)
|
||||
}
|
||||
series.InstanceList.forEach((instance) => {
|
||||
let fileName = instance.Path.split('/').pop()
|
||||
let fileName = instance.FileName
|
||||
let obj = {
|
||||
name: `${study.PatientId}/${study.StudyTime.split(' ')[0]}_${series.Modality
|
||||
}/IMAGE/${fileName}`,
|
||||
|
|
@ -365,30 +366,6 @@ export default {
|
|||
})
|
||||
}
|
||||
})
|
||||
if (Array.isArray(data.StudyList) && data.StudyList.length > 0) {
|
||||
data.StudyList.forEach((study) => {
|
||||
if (Array.isArray(study.SeriesList) && study.SeriesList.length > 0) {
|
||||
study.SeriesList.forEach((series) => {
|
||||
if (
|
||||
Array.isArray(series.InstanceList) &&
|
||||
series.InstanceList.length > 0
|
||||
) {
|
||||
series.InstanceList.forEach((instance) => {
|
||||
let fileName = instance.Path.split('/').pop()
|
||||
let obj = {
|
||||
name: `${data.SubjectCode}_${data.VisitName}/${study.StudyCode
|
||||
}_${study.StudyTime.split(' ')[0]}_${series.Modality
|
||||
}/${fileName}`,
|
||||
url: this.OSSclientConfig.basePath + instance.Path,
|
||||
}
|
||||
files.push(obj)
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return { files, name }
|
||||
},
|
||||
// 影像下载成功确认
|
||||
|
|
|
|||
Loading…
Reference in New Issue