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
>
-
+