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')
- }}
+ }}
@@ -201,7 +201,7 @@
{{ k }}
{{ Number(item.stats[k].value).toFixed(2)
- }}{{ item.stats[k].unit }}
+ }}{{ item.stats[k].unit }}
{{ 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;