本地影像预览bug修复

uat_us
caiyiling 2024-04-18 15:24:45 +08:00
parent 1b5c62df75
commit 7dbe8c92e1
2 changed files with 8 additions and 4 deletions

View File

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

View File

@ -560,7 +560,7 @@
:visible.sync="previewVisible"
append-to-body
>
<DicomPreview :uid="uid" />
<DicomPreview :uid="uid" :studyList="uploadQueues"/>
</el-dialog>
<!--pet-ct临床数据上传-->
<el-dialog