From fed26776898e240ccf3de750e7662f6b449f9311 Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Tue, 12 May 2026 10:55:07 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=89=B2=E5=88=86=E7=BB=84=E9=87=8D?=
=?UTF-8?q?=E5=91=BD=E5=90=8D=E6=97=B6=E4=BC=A0=E5=85=A5=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=E5=A4=A7=E5=B0=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../dicoms3D/components/Segmentations.vue | 20 ++++++-------------
1 file changed, 6 insertions(+), 14 deletions(-)
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 9e0c4a1c..177d4080 100644
--- a/src/views/trials/trials-panel/reading/dicoms3D/components/Segmentations.vue
+++ b/src/views/trials/trials-panel/reading/dicoms3D/components/Segmentations.vue
@@ -127,7 +127,7 @@
{{
$t('trials:reading:Segmentations:title:InactiveSegmentationsShow')
- }}
+ }}
@@ -302,7 +302,7 @@
{{
$t('trials:reading:Segmentations:button:recovery')
- }}
+ }}
@@ -937,11 +937,7 @@ export default {
this.segmentList.push(obj);
this.segmentationId = obj.segmentationId;
this.segmentIndex = 1
- // segmentation.segmentIndex.setActiveSegmentIndex(this.segmentationId, 1);
- // viewportIds.forEach(id => {
- // segmentation.config.color.setSegmentIndexColor(id, obj.segmentationId, 1, this.hex2Rgb(this.colors[0]))
- // })
- // this.selectSegmentGroup()
+
},
async addSegment() {
if (this.saveLoading) return false
@@ -1026,9 +1022,6 @@ export default {
},
changeColor(e, item) {
DicomEvent.$emit('changeColor', item)
- // this.viewportIds.forEach(id => {
- // segmentation.config.color.setSegmentIndexColor(id, item.segmentationId, item.segmentIndex, this.hex2Rgb(e))
- // })
},
// 清空所有分割
delAllSegment(isChange) {
@@ -1073,7 +1066,6 @@ export default {
} else {
this.segmentationId = null
}
- // this.readingSegmentByConfig()
this.resetViewport()
this.$emit('resetQuestion')
},
@@ -1090,7 +1082,6 @@ export default {
if (!res) return false
segmentation.removeSegment(this.segmentationId, Number(segmentIndex), { setNextSegmentAsActive: false, recordHistory: false })
segmentation.helpers.clearSegmentValue(this.segmentationId, Number(segmentIndex), { recordHistory: false })
- // segmentation.updateSegmentations({ segmentationId: this.segmentationId })
let index = this.segmentList[groupIndex].segments.findIndex(item => item.segmentIndex === segmentIndex)
this.segmentList[groupIndex].segments.splice(index, 1)
let annotations = annotation.state.getAllAnnotations().filter(item => item.metadata.segmentationId === this.segmentationId && item.metadata.segmentIndex === segmentIndex);
@@ -1122,7 +1113,7 @@ export default {
if (key === 'segmentGroup') {
let group = this.segmentList.find(i => i.segmentationId === this.segmentationId)
group.name = name
- this.addOrUpdateSegmentation({ name, id: group.segmentationId, url: group.segUrl })
+ this.addOrUpdateSegmentation({ name, id: group.segmentationId, url: group.segUrl, size: group.size })
} else {
item.SegmentLabel = name
this.addOrUpdateSegment({ name: item.SegmentLabel, color: item.color, segmentIndex: item.segmentIndex, segmentationId: item.segmentationId, segmentJson: JSON.stringify({ stats: item.stats, bidirectional: item.bidirectional }), id: item.id })
@@ -1456,7 +1447,6 @@ export default {
let { spacing, numFrames } = volume
let constant = numFrames * spacing[2] / 100
this.brushThreshold.dynamicRadius = Math.ceil(this.brushSize * constant)
- // console.log(this.brushThreshold.dynamicRadius)
},
setBrushThreshold() {
const toolGroupId = this.isMPR ? this.volumeToolGroupId : `${this.viewportKey}-${this.activeViewportIndex}`
@@ -1845,6 +1835,7 @@ export default {
if (!obj) continue;
obj.name = item.SegmentationName;
obj.segUrl = item.SEGUrl;
+ obj.size = item.FileSize;
obj.isSaved = item.IsSaved;
obj.segmentationId = item.Id;
obj.segments = []
@@ -1910,6 +1901,7 @@ export default {
name: item.SegmentationName,
view: true,
segUrl: item.SEGUrl,
+ size: item.FileSize,
isSaved: item.IsSaved,
segments: []
}