新建若干分段后保存,保存卡死
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
09c1c3ff12
commit
22baa213ae
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
</el-switch>
|
||||
<span style="margin-left: 5px;">{{
|
||||
$t('trials:reading:Segmentations:title:InactiveSegmentationsShow')
|
||||
}}</span>
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<template v-if="segmentList.length > 0">
|
||||
|
|
@ -201,7 +201,7 @@
|
|||
<div v-for="k in statsKey" :key="k" class="statsBox">
|
||||
<span>{{ k }}</span>
|
||||
<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>
|
||||
</template>
|
||||
<div class="serialNum" slot="reference">{{ index + 1 }}</div>
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue