From 2efb229c96aaea32e9c74360688011af50d537e8 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 31 Mar 2026 17:13:29 +0800 Subject: [PATCH] 1 --- .../reading/dicoms3D/components/ReadPage.vue | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) 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 9dcd67ca..29e1c7c7 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue @@ -2826,11 +2826,22 @@ export default { this.timer = null this.timeNum = 0 } + let index = null this.timer = setInterval(() => { this.timeNum++ const renderingEngine = getRenderingEngine(renderingEngineId) renderingEngine.resize(true, false) renderingEngine.render() + // let viewportIds = [`${this.viewportKey}-0`, `${this.viewportKey}-1`, `${this.viewportKey}-2`] + // if (!this.isMPR) { + // viewportIds = [] + // for (let i = 0; i < this.cells.length; i++) { + // const viewportId = `${this.viewportKey}-${i}` + // viewportIds.push(viewportId) + // } + // } + index = index || index === 0 ? index : this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series.SliceIndex + this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setFullScreen(index) if (this.timeNum >= 3) { clearInterval(this.timer) this.timer = null @@ -2853,15 +2864,8 @@ export default { }) } - if (this.isFusion || this.isMPR || this.readingTool === 3) { + if (this.isFusion) { let viewportIds = [`${this.viewportKey}-0`, `${this.viewportKey}-1`, `${this.viewportKey}-2`] - if (!this.isFusion && !this.isMPR) { - viewportIds = [] - for (let i = 0; i < this.cells.length; i++) { - const viewportId = `${this.viewportKey}-${i}` - viewportIds.push(viewportId) - } - } viewportIds.forEach(id => { const index = this.$refs[id][0].series.SliceIndex this.$refs[id][0].setFullScreen(index)