[update] 修改UAT问题:标准化活动只能删叶子结点
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user