From e1b6bec85b3937523a5390f584f14fa960556d02 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Fri, 26 Jul 2024 14:42:51 +0800 Subject: [PATCH] =?UTF-8?q?dicom=E9=A2=84=E8=A7=88=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dicom-show/dicom-study.vue | 3 ++- src/views/dicom-show/dicom-visit.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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