From 22baa213ae12f73cd5467de2fc199f5a525ade56 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 15 Apr 2026 16:00:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E8=8B=A5=E5=B9=B2=E5=88=86?= =?UTF-8?q?=E6=AE=B5=E5=90=8E=E4=BF=9D=E5=AD=98=EF=BC=8C=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=8D=A1=E6=AD=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/dicoms3D/components/ReadPage.vue | 2 +- .../reading/dicoms3D/components/Segmentations.vue | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 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 3656c2e4..0d423a2f 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue @@ -2031,7 +2031,7 @@ export default { const errorMsg = { message: 'annotation Not allowed to operate' } throw errorMsg } - if (this.activeTool === 'CircularEraser') return false + if (this.activeTool !== 'Eraser') return false const i = this.tools.findIndex(i => i.toolName === annotation.metadata.toolName) if (i === -1) { if (annotation.metadata.toolName === SegmentBidirectionalTool.toolName) { 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 fae335d8..d6ec53cf 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/Segmentations.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/Segmentations.vue @@ -123,7 +123,7 @@ {{ $t('trials:reading:Segmentations:title:InactiveSegmentationsShow') - }} + }}
{{ index + 1 }}
@@ -729,6 +729,7 @@ export default { isSaved: false, segments: [] } + this.segmentIndex = null let segmentationId = await this.addOrUpdateSegmentation({ name: obj.name }) obj.segmentationId = segmentationId await this.createSegmentation(obj.segmentationId) @@ -748,7 +749,11 @@ export default { let id = await this.addOrUpdateSegment({ name: o.SegmentLabel, color: o.color, segmentIndex: o.segmentIndex, segmentationId: o.segmentationId }) o.id = id obj.segments.splice(index, 0, o); + segmentation.segmentIndex.setActiveSegmentIndex(obj.segmentationId, index + 1); this.changeColor(this.colors[index], { segmentationId: obj.segmentationId, segmentIndex: index + 1, color: this.colors[index] }) + if (index === this.trialCriterion.DefaultSegmentName.SegmentNameList.length - 1) { + segmentation.segmentIndex.setActiveSegmentIndex(obj.segmentationId, 1); + } }) this.segmentList.push(obj); this.segmentationId = obj.segmentationId; @@ -767,6 +772,7 @@ export default { isSaved: false, segments: [] } + this.segmentIndex = null let segmentationId = await this.addOrUpdateSegmentation({ name: obj.name }) obj.segmentationId = segmentationId await this.createSegmentation(segmentationId) @@ -786,7 +792,11 @@ export default { let id = await this.addOrUpdateSegment({ name: o.SegmentLabel, color: o.color, segmentIndex: o.segmentIndex, segmentationId: o.segmentationId }) o.id = id obj.segments.splice(index, 0, o); + segmentation.segmentIndex.setActiveSegmentIndex(obj.segmentationId, index + 1); this.changeColor(this.colors[index], { segmentationId: obj.segmentationId, segmentIndex: index + 1, color: this.colors[index] }) + if (index === this.trialCriterion.DefaultSegmentName.SegmentNameList.length - 1) { + segmentation.segmentIndex.setActiveSegmentIndex(obj.segmentationId, 1); + } }) this.segmentList.push(obj); this.segmentationId = segmentationId;