From 49c7482d76bcbe508c0175588fab4b8edc87b180 Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Wed, 6 May 2026 17:55:11 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8C=BF=E5=90=8D=E6=95=B0=E6=8D=AE=E9=83=A8?=
=?UTF-8?q?=E5=88=86=E9=97=AE=E9=A2=98=E8=A7=A3=E5=86=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Dicom/DicomViewer.vue | 11 ++++++-----
src/views/dicom-show/dicom-study.vue | 2 +-
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/components/Dicom/DicomViewer.vue b/src/components/Dicom/DicomViewer.vue
index 2a8bfcdc..41c39b9c 100644
--- a/src/components/Dicom/DicomViewer.vue
+++ b/src/components/Dicom/DicomViewer.vue
@@ -103,7 +103,7 @@
{{
$t('DicomViewer:anonymous:PixelAnonymity')
- }}
+ }}
@@ -504,8 +504,6 @@ export default {
methods: {
comparison(f) {
- this.isComparison = f
- this.$emit("update:Comparison", f)
const elements = document.querySelectorAll('.dicom-item')
const scope = this
Array.from(elements).forEach((element, index) => {
@@ -514,12 +512,14 @@ export default {
}
})
scope.activeTool = null
- if (this.isComparison) {
+ if (f) {
this.$refs[`dicomCanvas0`].getNote_RectangleRoi().then(obj => {
let { image } = obj
let instanceInfo = this.series.instanceInfoList.find(item => item.ImageId === image.imageId)
if (!instanceInfo.IsMasked) return this.$confirm(this.$t("DicomViewer:anonymous:notMasked"))
this.changeLayout('1x2')
+ this.isComparison = f
+ this.$emit("update:Comparison", f)
let serie = {}
Object.keys(this.series).forEach(key => {
if (key !== 'instanceInfoList' && key !== 'imageIds') {
@@ -555,10 +555,11 @@ export default {
this.$refs[`dicomCanvas1`].loadImageStack(dicomCanvas1_info)
})
} else {
+ this.isComparison = f
+ this.$emit("update:Comparison", f)
this.changeLayout('1x1')
this.$refs[`dicomCanvas0`].loadImageStack(this.series)
}
-
},
recovery(isAll = false) {
if (this.isComparison) return false
diff --git a/src/views/dicom-show/dicom-study.vue b/src/views/dicom-show/dicom-study.vue
index bbc60004..afee92cb 100644
--- a/src/views/dicom-show/dicom-study.vue
+++ b/src/views/dicom-show/dicom-study.vue
@@ -531,7 +531,7 @@ export default {
}
},
showSeriesImage(e, seriesIndex, series) {
- if (!this.isComparison) return false
+ if (this.isComparison) return false
this.activeSeriesId = series.seriesId
workSpeedclose(true)
// if (seriesIndex === this.currentSeriesIndex) return