新建若干分段后保存,保存卡死
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' }
|
const errorMsg = { message: 'annotation Not allowed to operate' }
|
||||||
throw errorMsg
|
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)
|
const i = this.tools.findIndex(i => i.toolName === annotation.metadata.toolName)
|
||||||
if (i === -1) {
|
if (i === -1) {
|
||||||
if (annotation.metadata.toolName === SegmentBidirectionalTool.toolName) {
|
if (annotation.metadata.toolName === SegmentBidirectionalTool.toolName) {
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,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>
|
</div>
|
||||||
<template v-if="segmentList.length > 0">
|
<template v-if="segmentList.length > 0">
|
||||||
|
|
@ -201,7 +201,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">{{ index + 1 }}</div>
|
<div class="serialNum" slot="reference">{{ index + 1 }}</div>
|
||||||
|
|
@ -729,6 +729,7 @@ export default {
|
||||||
isSaved: false,
|
isSaved: false,
|
||||||
segments: []
|
segments: []
|
||||||
}
|
}
|
||||||
|
this.segmentIndex = null
|
||||||
let segmentationId = await this.addOrUpdateSegmentation({ name: obj.name })
|
let segmentationId = await this.addOrUpdateSegmentation({ name: obj.name })
|
||||||
obj.segmentationId = segmentationId
|
obj.segmentationId = segmentationId
|
||||||
await this.createSegmentation(obj.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 })
|
let id = await this.addOrUpdateSegment({ name: o.SegmentLabel, color: o.color, segmentIndex: o.segmentIndex, segmentationId: o.segmentationId })
|
||||||
o.id = id
|
o.id = id
|
||||||
obj.segments.splice(index, 0, o);
|
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] })
|
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.segmentList.push(obj);
|
||||||
this.segmentationId = obj.segmentationId;
|
this.segmentationId = obj.segmentationId;
|
||||||
|
|
@ -767,6 +772,7 @@ export default {
|
||||||
isSaved: false,
|
isSaved: false,
|
||||||
segments: []
|
segments: []
|
||||||
}
|
}
|
||||||
|
this.segmentIndex = null
|
||||||
let segmentationId = await this.addOrUpdateSegmentation({ name: obj.name })
|
let segmentationId = await this.addOrUpdateSegmentation({ name: obj.name })
|
||||||
obj.segmentationId = segmentationId
|
obj.segmentationId = segmentationId
|
||||||
await this.createSegmentation(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 })
|
let id = await this.addOrUpdateSegment({ name: o.SegmentLabel, color: o.color, segmentIndex: o.segmentIndex, segmentationId: o.segmentationId })
|
||||||
o.id = id
|
o.id = id
|
||||||
obj.segments.splice(index, 0, o);
|
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] })
|
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.segmentList.push(obj);
|
||||||
this.segmentationId = segmentationId;
|
this.segmentationId = segmentationId;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue