[update] 修改UAT问题:标准化活动只能删叶子结点

This commit is contained in:
lideqin
2024-09-14 17:40:27 +08:00
parent 22abdf7b6b
commit 67f8afefc6
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ module.exports = {
pleaseUploadGroupInfo: '请上传集团参与情况资料',
pleaseUploadPaymentInfo: '请上传支付信息资料',
pleaseUploadMeeting: '请上传参会记录会议资料',
rootNodeNoDelete: '根节点不可以删除,请重新选择'
rootNodeNoDelete: '根节点不可以删除,请重新选择',
onlyDeleteLeaf: '只能删除叶子结点,请重新选择'
},
// 问答库
questionAnswer: {
@@ -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'),