diff --git a/src/views/trials/trials-inspection/components/view-study-list.vue b/src/views/trials/trials-inspection/components/view-study-list.vue index 88ab521..0a84d68 100644 --- a/src/views/trials/trials-inspection/components/view-study-list.vue +++ b/src/views/trials/trials-inspection/components/view-study-list.vue @@ -276,7 +276,7 @@ export default { ] }, btnLoading: false, - hospitalGroupList: [], + // hospitalGroupList: [], groupStatus: 1, currentData: {} } diff --git a/src/views/trials/trials-inspection/index.vue b/src/views/trials/trials-inspection/index.vue index 7a8f27b..15e6698 100644 --- a/src/views/trials/trials-inspection/index.vue +++ b/src/views/trials/trials-inspection/index.vue @@ -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 } }, // 影像下载成功确认