问题绑定分割标记后查看

uat_us
wangxiaoshuang 2026-03-24 17:55:57 +08:00
parent 25b909c660
commit 19d5144b70
1 changed files with 15 additions and 4 deletions

View File

@ -84,7 +84,7 @@
</el-switch> </el-switch>
<span style="margin-left: 5px;">{{ <span style="margin-left: 5px;">{{
$t('trials:reading:Segmentations:title:InactiveSegmentationsShow') $t('trials:reading:Segmentations:title:InactiveSegmentationsShow')
}}</span> }}</span>
</div> </div>
<!-- <div class="SegmentConfig" v-if="SegmentConfig.InactiveSegmentations.show"> <!-- <div class="SegmentConfig" v-if="SegmentConfig.InactiveSegmentations.show">
<span>{{ $t('trials:reading:Segmentations:title:Opacity') }}</span> <span>{{ $t('trials:reading:Segmentations:title:Opacity') }}</span>
@ -155,7 +155,7 @@
<div v-for="k in statsKey" :key="k" class="statsBox"> <div v-for="k in statsKey" :key="k" class="statsBox">
<span>{{ k }}</span> <span>{{ k }}</span>
<span v-if="item.stats[k]">{{ Number(item.stats[k].value).toFixed(2) <span v-if="item.stats[k]">{{ Number(item.stats[k].value).toFixed(2)
}}<i>{{ item.stats[k].unit }}</i></span> }}<i>{{ item.stats[k].unit }}</i></span>
</div> </div>
</template> </template>
<div class="serialNum" slot="reference">{{ item.segmentIndex }}</div> <div class="serialNum" slot="reference">{{ item.segmentIndex }}</div>
@ -405,6 +405,13 @@ export default {
}) })
this.resetViewport(false) this.resetViewport(false)
item.bidirectional = null item.bidirectional = null
if (DATA) {
this.segmentationId = DATA.SegmentationId;
this.segmentIndex = DATA.SegmentMumber;
setTimeout(() => {
this.selectSegment(DATA)
})
}
} }
bidirectionalData.forEach((bidirectional) => { bidirectionalData.forEach((bidirectional) => {
const { segmentIndex } = bidirectional; const { segmentIndex } = bidirectional;
@ -1054,8 +1061,11 @@ export default {
// console.log(segmentStat, 'segmentStat') // console.log(segmentStat, 'segmentStat')
segmentStat.count.label = 'Voxels'; segmentStat.count.label = 'Voxels';
let segmentGroup = this.segmentList.find(item => item.segmentationId === segmentationId) let segmentGroup = this.segmentList.find(item => item.segmentationId === segmentationId)
let segment = segmentGroup.segments.find(item => item.segmentIndex === segmentIndex) if (segmentGroup) {
segment.stats = segmentStat; let segment = segmentGroup.segments.find(item => item.segmentIndex === segmentIndex)
segment.stats = segmentStat;
}
} }
} }
} else { } else {
@ -1292,6 +1302,7 @@ export default {
// this.getBidirectional(o) // this.getBidirectional(o)
// }) // })
if (SEGMENT && index === segments.length - 1) { if (SEGMENT && index === segments.length - 1) {
console.log(SEGMENT, 'SEGMENT')
return this.getBidirectional(o, SEGMENT) return this.getBidirectional(o, SEGMENT)
} }
this.getBidirectional(o) this.getBidirectional(o)