From eda4b31ddaede0db1dc08f5e88097f0d50055d91 Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Tue, 9 Jun 2026 14:57:38 +0800
Subject: [PATCH] =?UTF-8?q?DICOM=E5=88=86=E5=89=B2=E5=B7=A5=E5=85=B7?=
=?UTF-8?q?=E7=9A=84=E4=B8=AA=E6=80=A7=E5=8C=96=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../reading/dicoms3D/components/ReadPage.vue | 7 ++++++
.../dicoms3D/components/Segmentations.vue | 24 +++++++++++++++++--
2 files changed, 29 insertions(+), 2 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 205d0398..3ab942af 100644
--- a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue
+++ b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue
@@ -988,6 +988,13 @@ export default {
this.cols = 2
this.activeViewportIndex = 1
}
+ if (localStorage.getItem('SegmentConfig') && this.readingTool === 3) {
+ let obj = JSON.parse(localStorage.getItem('SegmentConfig'))
+ this.SegmentConfig.renderOutline = obj.renderOutline
+ this.SegmentConfig.renderFill = obj.renderFill
+ this.SegmentConfig.fillAlpha = obj.fillAlpha
+ this.SegmentConfig.outlineWidth = obj.outlineWidth
+ }
this.$nextTick(() => {
this.loadRelatedTasks()
diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/Segmentations.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/Segmentations.vue
index 822dcd35..61994fb3 100644
--- a/src/views/trials/trials-panel/reading/dicoms3D/components/Segmentations.vue
+++ b/src/views/trials/trials-panel/reading/dicoms3D/components/Segmentations.vue
@@ -137,7 +137,7 @@
{{
$t('trials:reading:Segmentations:title:InactiveSegmentationsShow')
- }}
+ }}
@@ -320,7 +320,7 @@
{{
$t('trials:reading:Segmentations:button:recovery')
- }}
+ }}
@@ -564,6 +564,7 @@ export default {
})
const digitPlaces = Number(localStorage.getItem('digitPlaces'))
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
+ this.getSegmentConfig()
// document.addEventListener("click", () => {
// this.popoverId = null
// });
@@ -588,6 +589,7 @@ export default {
SegmentConfig: {
handler() {
// this.readingSegmentByConfig()
+ this.setSegmentConfig()
},
deep: true
},
@@ -611,6 +613,23 @@ export default {
}
},
methods: {
+ getSegmentConfig() {
+ if (!localStorage.getItem('SegmentConfig')) return false
+ let obj = JSON.parse(localStorage.getItem('SegmentConfig'))
+ this.sliderStep = obj.sliderStep
+ this.sliderMax = obj.sliderMax
+ },
+ setSegmentConfig() {
+ let obj = {
+ sliderStep: this.sliderStep,
+ sliderMax: this.sliderMax,
+ renderOutline: this.SegmentConfig.renderOutline,
+ renderFill: this.SegmentConfig.renderFill,
+ fillAlpha: this.SegmentConfig.fillAlpha,
+ outlineWidth: this.SegmentConfig.outlineWidth,
+ }
+ localStorage.setItem('SegmentConfig', JSON.stringify(obj))
+ },
handleSliderChange(value) {
// console.log(value, 'value')
let data = this.sliderSection.find(item => item.max === value)
@@ -620,6 +639,7 @@ export default {
if (this.brushSize >= data.max) {
this.brushSize = data.max
}
+ this.setSegmentConfig()
},
fileSizeFormatter(size) {
if (!size) return