分割标记删除进行提示
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0a288b9f47
commit
5336cb5353
|
|
@ -84,7 +84,7 @@
|
|||
</el-switch>
|
||||
<span style="margin-left: 5px;">{{
|
||||
$t('trials:reading:Segmentations:title:InactiveSegmentationsShow')
|
||||
}}</span>
|
||||
}}</span>
|
||||
</div>
|
||||
<!-- <div class="SegmentConfig" v-if="SegmentConfig.InactiveSegmentations.show">
|
||||
<span>{{ $t('trials:reading:Segmentations:title:Opacity') }}</span>
|
||||
|
|
@ -155,7 +155,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">{{ item.segmentIndex }}</div>
|
||||
|
|
@ -677,6 +677,8 @@ export default {
|
|||
},
|
||||
// 删除分割分组
|
||||
async delSegmentGroup() {
|
||||
let confirm = await this.$confirm(this.$t('trials:reading:Segmentations:confirm:delSegmentions'))
|
||||
if (!confirm) return false
|
||||
let res = await this.deleteSegmentation(this.segmentationId)
|
||||
if (!res) return false
|
||||
segmentation.removeSegmentation(this.segmentationId)
|
||||
|
|
@ -698,6 +700,8 @@ export default {
|
|||
},
|
||||
// 删除分割片段
|
||||
async delSegment(segmentIndex) {
|
||||
let confirm = await this.$confirm(this.$t('trials:reading:Segmentations:confirm:delSegment'))
|
||||
if (!confirm) return false
|
||||
let groupIndex = this.segmentList.findIndex(item => item.segmentationId === this.segmentationId)
|
||||
if (this.segmentList[groupIndex].segments.length <= 1) return this.$confirm(this.$t('trials:reading:Segmentations:confirm:hasOneSegment'))
|
||||
let s = this.segmentList[groupIndex].segments.find(item => item.segmentIndex === segmentIndex)
|
||||
|
|
|
|||
Loading…
Reference in New Issue