From 9962b1a829686623a5dc869982bdd14ea15b309c Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Wed, 28 May 2025 18:46:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E8=89=B2bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/dicoms/components/DicomViewer.vue | 15 ++++++++------- .../dicoms/customize/CustomizeDicomViewer.vue | 19 ++++++++++--------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue b/src/views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue index 8bfe1c85..0e7571f7 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue @@ -2258,13 +2258,14 @@ export default { this.customWwc.visible = false }, toggleInvert() { - if (this.activeTool === 'reversecolor') { - this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].resetWwwc() - this.activeTool = '' - } else { - this.activeTool = 'reversecolor' - this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].toggleInvert() - } + // if (this.activeTool === 'reversecolor') { + // this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].resetWwwc() + // this.activeTool = '' + // } else { + // this.activeTool = 'reversecolor' + // this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].toggleInvert() + // } + this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].toggleInvert() }, setImageIndexSync() { this.isScrollSync = !this.isScrollSync diff --git a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue index 958bcb56..3efe1ba2 100644 --- a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue +++ b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue @@ -2308,15 +2308,16 @@ export default { this.customWwc.visible = false }, toggleInvert() { - if (this.activeTool === 'reversecolor') { - this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].resetWwwc() - this.activeTool = '' - } else { - this.activeTool = 'reversecolor' - this.$refs[ - `dicomCanvas${this.currentDicomCanvasIndex}` - ][0].toggleInvert() - } + // if (this.activeTool === 'reversecolor') { + // this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].resetWwwc() + // this.activeTool = '' + // } else { + // this.activeTool = 'reversecolor' + // this.$refs[ + // `dicomCanvas${this.currentDicomCanvasIndex}` + // ][0].toggleInvert() + // } + this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].toggleInvert() }, setImageIndexSync() { this.isScrollSync = !this.isScrollSync