diff --git a/src/views/xm/core/xmMenu/XmMenuEdit.vue b/src/views/xm/core/xmMenu/XmMenuEdit.vue index 68cba710..69ce81a8 100644 --- a/src/views/xm/core/xmMenu/XmMenuEdit.vue +++ b/src/views/xm/core/xmMenu/XmMenuEdit.vue @@ -519,6 +519,24 @@ import { MdpFormMixin } from '@/components/mdp-ui/mixin/MdpFormMixin'; } else if (fieldName === 'funcId') { params.funcId = $event.id params.funcName = $event.name + } else if (fieldName === 'dclass') { + if(this.editForm.pmenuId>'0'){ + if($event=='1'){ + setTimeout(()=>this.editForm.dclass=this.dataBak[fieldName],1) + this.$notify.error('需求项遵循【史诗 > 特性 > 故事】规则,当前需求具有上级,不允许变更为【史诗】类型') + return; + } + } + if(this.editForm.childrenCnt>0 && $event=='3'){ + setTimeout(()=>this.editForm.dclass=this.dataBak[fieldName],1) + this.$notify.error('当前需求具有多个子节点,不允许变更为【故事】类型') + return; + } + if($event=='3'){ + params.ntype='0' + }else{ + params.ntype='1' + } } else { if (typeof $event === 'string') { params[fieldName] = $event