diff --git a/src/views/dicom-show/dicom-visit.vue b/src/views/dicom-show/dicom-visit.vue index b06d13c8..b30ca52c 100644 --- a/src/views/dicom-show/dicom-visit.vue +++ b/src/views/dicom-show/dicom-visit.vue @@ -152,92 +152,106 @@
- - - +
+ {{ study.Description }}
- -
- +
+ +
+
+
- - + + + - + + @@ -293,6 +307,7 @@ export default { visitInfo: '', activeName: 'current-study', relationStudyList: [], + relationStudyListByVisitName: [], cachedImages: [], isReading: null, isStartLoad: false, @@ -692,7 +707,20 @@ export default { const res = await getAllRelationStudyList(this.subjectVisitId) loading.close() this.relationStudyList = res.Result + this.relationStudyListByVisitName = [] + res.Result.forEach(item => { + let index = this.relationStudyListByVisitName.findIndex(d => d.VisitName === item.VisitName) + if (index < 0) { + this.relationStudyListByVisitName.push({ + VisitName: item.VisitName, + series: [item] + }) + } else { + this.relationStudyListByVisitName[index].series.push(item) + } + }) } catch (e) { + console.log(e) loading.close() } } @@ -798,6 +826,9 @@ export default { this.imageList.push({ imageId: imageId, seriesId: series.seriesId, priority }) }) } + if (this.imageList.length > 0) { + this.loopLoad() + } } }, loadAllImages() {