下载问题解决
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-11-21 17:37:35 +08:00
parent d956d6b64b
commit 13c9bb8b73
2 changed files with 3 additions and 26 deletions

View File

@ -276,7 +276,7 @@ export default {
] ]
}, },
btnLoading: false, btnLoading: false,
hospitalGroupList: [], // hospitalGroupList: [],
groupStatus: 1, groupStatus: 1,
currentData: {} currentData: {}
} }

View File

@ -320,6 +320,7 @@ export default {
async downloadImage(data) { async downloadImage(data) {
try { try {
let { files, name } = this.formatDownloadFile(data) let { files, name } = this.formatDownloadFile(data)
// return console.log(files)
let res = await downLoadFile(files, name, 'zip') let res = await downLoadFile(files, name, 'zip')
if (res && this.downloadId) { if (res && this.downloadId) {
@ -351,7 +352,7 @@ export default {
files.push(obj) files.push(obj)
} }
series.InstanceList.forEach((instance) => { series.InstanceList.forEach((instance) => {
let fileName = instance.Path.split('/').pop() let fileName = instance.FileName
let obj = { let obj = {
name: `${study.PatientId}/${study.StudyTime.split(' ')[0]}_${series.Modality name: `${study.PatientId}/${study.StudyTime.split(' ')[0]}_${series.Modality
}/IMAGE/${fileName}`, }/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 } return { files, name }
}, },
// //