diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/PetCtViewport.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/PetCtViewport.vue index 168c452b..268b39fb 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/PetCtViewport.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/PetCtViewport.vue @@ -475,20 +475,21 @@ export default { }) this.loading = false }, - async setSeriesInfo(obj, option = {}) { + async setSeriesInfo(obj, isLocate = false, option = {}) { try { let { data } = obj if (this.series && data.Id === this.series.Id && data.Description === this.series.Description) { data.SliceIndex = this.series.SliceIndex } + const renderingEngine = getRenderingEngine(this.renderingEngineId) + const viewport = renderingEngine.getViewport(this.viewportId) + if (isLocate) return csUtils.jumpToSlice(viewport.element, { imageIndex: data.SliceIndex }); + this.volumeId = data.SeriesInstanceUid this.ptVolumeId = null this.series = {} let { isFusion, isMip, colorMap } = option this.isFusion = isFusion; this.isMip = isMip; - const renderingEngine = getRenderingEngine(this.renderingEngineId) - const viewport = renderingEngine.getViewport(this.viewportId) - this.volumeId = data.SeriesInstanceUid if (this.isFusion) { this.$nextTick(() => { this.renderColorBar(this.presetName) diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue index 37356433..f9b95a0b 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue @@ -3352,9 +3352,9 @@ export default { this.$refs[`viewport-3`][0].setSeriesInfo(pt) this.$refs[`viewport-fusion-0`][0].setSeriesInfo(ctData) - this.$refs[`viewport-fusion-1`][0].setSeriesInfo(ptData, { colorMap: true }) - this.$refs[`viewport-fusion-2`][0].setSeriesInfo(fusionData, { isFusion: true, colorMap: true }) - this.$refs[`viewport-fusion-3`][0].setSeriesInfo(ptData, { isMip: true, colorMap: true }) + this.$refs[`viewport-fusion-1`][0].setSeriesInfo(ptData, false, { colorMap: true }) + this.$refs[`viewport-fusion-2`][0].setSeriesInfo(fusionData, false, { isFusion: true, colorMap: true }) + this.$refs[`viewport-fusion-3`][0].setSeriesInfo(ptData, false, { isMip: true, colorMap: true }) // this.resetAnnotation = false this.$nextTick(() => { this.$refs[`colorMap`].init()