分割分组重命名时传入文件大小
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
a55278e323
commit
fed2677689
|
|
@ -127,7 +127,7 @@
|
|||
</el-switch>
|
||||
<span style="margin-left: 5px;">{{
|
||||
$t('trials:reading:Segmentations:title:InactiveSegmentationsShow')
|
||||
}}</span>
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<template v-if="segmentList.length > 0">
|
||||
|
|
@ -302,7 +302,7 @@
|
|||
<template slot-scope="scope">
|
||||
<el-button type="text" @click.stop="restoreSegmentationVersion(scope.row)">{{
|
||||
$t('trials:reading:Segmentations:button:recovery')
|
||||
}}</el-button>
|
||||
}}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
@ -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: []
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue