[update] 修改UAT问题:标准化活动只能删叶子结点
This commit is contained in:
@@ -240,10 +240,15 @@ export default {
|
||||
},
|
||||
// 删除节点
|
||||
handleDelete () {
|
||||
console.log('--------this.selectedNode', this.selectedNode)
|
||||
if (this.selectedNode.level === 0) {
|
||||
this.$message.warning(this.$t('businessSupport.standardizationActivity.rootNodeNoDelete'))
|
||||
return
|
||||
}
|
||||
if (this.selectedNode.children && this.selectedNode.children.length > 0) {
|
||||
this.$message.warning(this.$t('businessSupport.standardizationActivity.onlyDeleteLeaf'))
|
||||
return
|
||||
}
|
||||
this.$confirm({
|
||||
title: this.$t('confirmDeletion'),
|
||||
content: this.$t('areYouSure'),
|
||||
|
||||
Reference in New Issue
Block a user