diff --git a/src/views/dicom-show/dicom-study.vue b/src/views/dicom-show/dicom-study.vue index 7507f1ee..68c31dbc 100644 --- a/src/views/dicom-show/dicom-study.vue +++ b/src/views/dicom-show/dicom-study.vue @@ -156,6 +156,7 @@ import { changeURLStatic } from '@/utils/history.js' cornerstoneWADOImageLoader.external.dicomParser = dicomParser cornerstoneWADOImageLoader.external.cornerstone = cornerstone const maximumSizeInBytes = 1024 * 1024 * 1024 * 6 +cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes) export default { components: { 'dicom-viewer': dicomViewer @@ -658,7 +659,7 @@ export default { const seriesIndex = params.seriesIndex var prefetchInstanceCount = this.seriesList[seriesIndex].prefetchInstanceCount var instanceCount = this.seriesList[seriesIndex].instanceCount - if (this.seriesList[seriesIndex].imageloadedArr.indexOf(imageId) < 0) { + if (this.seriesList[seriesIndex].imageloadedArr.indexOf(imageId) < 0 && this.seriesList[seriesIndex].imageloadedArr.length < this.seriesList[seriesIndex].instanceCount) { const i = this.currentLoadIns.findIndex(i => i.imageId === imageId) if (i > -1) { prefetchInstanceCount = prefetchInstanceCount - this.currentLoadIns[i].percentComplete + percentComplete diff --git a/src/views/dicom-show/dicom-visit.vue b/src/views/dicom-show/dicom-visit.vue index ebf8a3c4..05b0a943 100644 --- a/src/views/dicom-show/dicom-visit.vue +++ b/src/views/dicom-show/dicom-visit.vue @@ -275,6 +275,7 @@ import { changeURLStatic } from '@/utils/history.js' cornerstoneWADOImageLoader.external.dicomParser = dicomParser cornerstoneWADOImageLoader.external.cornerstone = cornerstone const maximumSizeInBytes = 1024 * 1024 * 1024 * 6 +cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes) export default { name: 'DicomsOfVisit', components: { @@ -690,7 +691,7 @@ export default { const seriesIndex = params.idx.split('|')[1] var prefetchInstanceCount = this.studyList[studyIndex].SeriesList[seriesIndex].prefetchInstanceCount var instanceCount = this.studyList[studyIndex].SeriesList[seriesIndex].instanceCount - if (this.studyList[studyIndex].SeriesList[seriesIndex].imageloadedArr.indexOf(imageId) < 0) { + if (this.studyList[studyIndex].SeriesList[seriesIndex].imageloadedArr.indexOf(imageId) < 0 && this.studyList[studyIndex].SeriesList[seriesIndex].imageloadedArr.length < this.studyList[studyIndex].SeriesList[seriesIndex].instanceCount) { const i = this.currentLoadIns.findIndex(i => i.imageId === imageId) if (i > -1) { prefetchInstanceCount = prefetchInstanceCount - this.currentLoadIns[i].percentComplete + percentComplete