影像预览bug修复
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-08-19 13:45:09 +08:00
parent 77aa182e2f
commit 5c7c2d6ef6
2 changed files with 5 additions and 3 deletions

View File

@ -200,7 +200,7 @@ export default {
this.stack.seriesId = dicomSeries.seriesId this.stack.seriesId = dicomSeries.seriesId
this.stack.seriesNumber = dicomSeries.seriesNumber this.stack.seriesNumber = dicomSeries.seriesNumber
this.stack.imageIds = dicomSeries.imageIds this.stack.imageIds = dicomSeries.imageIds
this.stack.currentImageIdIndex = dicomSeries.imageIdIndex ? dicomSeries.imageIdIndex : 0 this.stack.currentImageIdIndex = dicomSeries.imageIdIndex && dicomSeries.imageIdIndex < dicomSeries.imageIds.length ? dicomSeries.imageIdIndex : 0
this.stack.firstImageLoading = true this.stack.firstImageLoading = true
this.stack.description = dicomSeries.description this.stack.description = dicomSeries.description
this.toolState.viewportInvert = false this.toolState.viewportInvert = false

View File

@ -405,7 +405,8 @@ export default {
loadImageStack(dicomSeries) { loadImageStack(dicomSeries) {
this.currentDicomCanvas.toolState.clipPlaying = false this.currentDicomCanvas.toolState.clipPlaying = false
this.$nextTick(() => { this.$nextTick(() => {
this.currentDicomCanvas.loadImageStack(dicomSeries) let series = Object.assign({}, dicomSeries)
this.currentDicomCanvas.loadImageStack(series)
}) })
}, },
loadOtherImageStack(seriesList) { loadOtherImageStack(seriesList) {
@ -415,7 +416,8 @@ export default {
Array.from(elements).forEach((element, index) => { Array.from(elements).forEach((element, index) => {
const canvasIndex = element.getAttribute('data-index') const canvasIndex = element.getAttribute('data-index')
if (index < seriesList.length && element.style.display !== 'none') { if (index < seriesList.length && element.style.display !== 'none') {
this.$refs[`dicomCanvas${canvasIndex}`].loadImageStack(seriesList[index]) let series = Object.assign({}, seriesList[index])
this.$refs[`dicomCanvas${canvasIndex}`].loadImageStack(series)
} }
}) })
}) })