上传预览多帧更改
parent
4a7f8a0a93
commit
d2fae40100
|
|
@ -399,7 +399,7 @@ export default {
|
||||||
var data = e.detail.image.data
|
var data = e.detail.image.data
|
||||||
this.dicomInfo.hospital = data.string('x00080080')
|
this.dicomInfo.hospital = data.string('x00080080')
|
||||||
// let instanceInfo = this.series.instanceInfoList.find(item => item.ImageId === e.detail.image.imageId)
|
// let instanceInfo = this.series.instanceInfoList.find(item => item.ImageId === e.detail.image.imageId)
|
||||||
let instanceInfo = this.series?.instanceInfoList.find(item => {
|
let instanceInfo = this.series?.instanceInfoList?.find(item => {
|
||||||
let s1 = item.ImageId ? item.ImageId.split("?")[0] : ''
|
let s1 = item.ImageId ? item.ImageId.split("?")[0] : ''
|
||||||
let s2 = e.detail.image.imageId ? e.detail.image.imageId.split("?")[0] : ''
|
let s2 = e.detail.image.imageId ? e.detail.image.imageId.split("?")[0] : ''
|
||||||
return s1 === s2
|
return s1 === s2
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@
|
||||||
v-for="(instance, idx) in item.instanceInfoList"
|
v-for="(instance, idx) in item.instanceInfoList"
|
||||||
:key="instance.InstanceUid"
|
:key="instance.InstanceUid"
|
||||||
class="frame_content"
|
class="frame_content"
|
||||||
|
:class="{ 'frame_content_active': activeInstanceUid === instance.InstanceUid }"
|
||||||
:style="{'margin-bottom':idx<item.instanceInfoList.length-1? '5px':'0px'}"
|
:style="{'margin-bottom':idx<item.instanceInfoList.length-1? '5px':'0px'}"
|
||||||
@click="showMultiFrames(item, index, instance)"
|
@click="showMultiFrames(item, index, instance)"
|
||||||
>
|
>
|
||||||
|
|
@ -136,7 +137,8 @@ export default {
|
||||||
studyTitle: '',
|
studyTitle: '',
|
||||||
seriesCount: 0,
|
seriesCount: 0,
|
||||||
seriesList: [],
|
seriesList: [],
|
||||||
currentSeriesIndex: -1
|
currentSeriesIndex: -1,
|
||||||
|
activeInstanceUid: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -231,6 +233,7 @@ export default {
|
||||||
},
|
},
|
||||||
showMultiFrames(series, seriesIndex, instanceInfo) {
|
showMultiFrames(series, seriesIndex, instanceInfo) {
|
||||||
this.currentSeriesIndex = seriesIndex
|
this.currentSeriesIndex = seriesIndex
|
||||||
|
this.activeInstanceUid = instanceInfo.InstanceUid
|
||||||
const imageIds = []
|
const imageIds = []
|
||||||
if (instanceInfo.NumberOfFrames && instanceInfo.NumberOfFrames > 1) {
|
if (instanceInfo.NumberOfFrames && instanceInfo.NumberOfFrames > 1) {
|
||||||
for (let j = 0; j < instanceInfo.NumberOfFrames; j++) {
|
for (let j = 0; j < instanceInfo.NumberOfFrames; j++) {
|
||||||
|
|
@ -252,6 +255,7 @@ export default {
|
||||||
showSeriesImage(seriesIndex) {
|
showSeriesImage(seriesIndex) {
|
||||||
// if (seriesIndex === this.currentSeriesIndex) return;
|
// if (seriesIndex === this.currentSeriesIndex) return;
|
||||||
this.currentSeriesIndex = seriesIndex
|
this.currentSeriesIndex = seriesIndex
|
||||||
|
this.activeInstanceUid = null
|
||||||
this.$refs.dicomViewer.loadImageStack(this.seriesList[seriesIndex])
|
this.$refs.dicomViewer.loadImageStack(this.seriesList[seriesIndex])
|
||||||
},
|
},
|
||||||
closeDialog() {
|
closeDialog() {
|
||||||
|
|
@ -429,4 +433,8 @@ export default {
|
||||||
border-color: #213a54 !important;
|
border-color: #213a54 !important;
|
||||||
background-color: #213a54;
|
background-color: #213a54;
|
||||||
}
|
}
|
||||||
|
.frame_content_active {
|
||||||
|
border-color: #213a54 !important;
|
||||||
|
background-color: #213a54;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue