{{ $t('trials:reading:Segmentations:button:addSegmentGroup') }}
@@ -202,7 +203,7 @@
{{ k }}
{{ Number(item.stats[k].value).toFixed(2)
- }}{{ item.stats[k].unit }}
+ }}{{ item.stats[k].unit }}
{{ index + 1 }}
@@ -392,7 +393,8 @@ export default {
digitPlaces: 2,
isloaded: false,
popoverId: null,
- saveLoading: false
+ saveLoading: false,
+ popoverVisible: false
}
},
mounted() {
@@ -731,6 +733,7 @@ export default {
},
async addSegmentGroup() {
// let segmentationId = this.$guid();
+ this.popoverVisible = false
let obj = {
name: this.getSegmentationName(),
view: true,
@@ -826,15 +829,15 @@ export default {
segmentIndex: segmentIndex,
segmentationId: this.segmentationId,
SegmentLabel: this.getSegmentName(item.segments),
- color: item.segments.length >= this.colors.length ? this.colors[0] : this.colors[item.segments.length],
+ color: segmentIndex >= this.colors.length ? this.colors[0] : this.colors[segmentIndex],
stats: null,
bidirectional: null,
bidirectionalView: true,
view: true,
lock: false
}
- if (item.segments.length >= this.colors.length) {
- let index = item.segments.length % this.colors.length
+ if (segmentIndex >= this.colors.length) {
+ let index = segmentIndex % this.colors.length
let color = this.randomNearColor(this.colors[index], 4)
obj.color = color
}
diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue
index 436b6b4b..d732e1a1 100644
--- a/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue
+++ b/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue
@@ -59,10 +59,10 @@
Location: {{
`${Number(imageInfo.location).toFixed(digitPlaces)} mm`
- }}
+ }}
Slice Thickness: {{
`${Number(imageInfo.sliceThickness).toFixed(digitPlaces)} mm`
- }}
+ }}