From 7dbe8c92e187c8eee1a62ec3e9bcc804f7c08f89 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Thu, 18 Apr 2024 15:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=BD=B1=E5=83=8F=E9=A2=84?= =?UTF-8?q?=E8=A7=88bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dicom-show/dicom-preview.vue | 10 +++++++--- .../visit/crc-upload/components/uploadDicomFiles2.vue | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/dicom-show/dicom-preview.vue b/src/views/dicom-show/dicom-preview.vue index b3242fe0..5002dcf3 100644 --- a/src/views/dicom-show/dicom-preview.vue +++ b/src/views/dicom-show/dicom-preview.vue @@ -63,7 +63,7 @@ import * as dicomParser from 'dicom-parser' import * as cornerstone from 'cornerstone-core' import * as cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader' -import dicomStore from '@/utils/dicom-store.js' +import dicomStore from '@/utils/dicom-store' import dicomViewer from '@/components/Dicom/DicomViewer' import dicomPreview from '@/components/Dicom/DicomPreview' @@ -86,6 +86,10 @@ export default { uid: { type: String, default: '' + }, + studyList: { + type: Array, + default: [] } }, @@ -102,7 +106,7 @@ export default { var totalHeight = window.innerHeight || document.body.clientHeight var wrapper = this.$refs['preview-wrapper'] wrapper.style.height = (totalHeight - 70) + 'px' - if (!dicomStore.studyList || !this.uid) return + if (!this.studyList || !this.uid) return this.loadStudy() }, @@ -120,7 +124,7 @@ export default { return newObj }, loadStudy() { - var studyList = dicomStore.studyList + var studyList = this.studyList var studyUid = this.uid var studyItem = studyList.find(function(item) { return item.dicomInfo.studyUid === studyUid diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue index fa0d7c7e..decc6093 100644 --- a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue +++ b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue @@ -560,7 +560,7 @@ :visible.sync="previewVisible" append-to-body > - +