分割标记删除进行提示
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0a288b9f47
commit
5336cb5353
|
|
@ -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