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