From 4bcb1f6b5e8c638b28795b77612186acf2990667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 9 Jun 2022 12:39:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xm/core/xmMenu/XmEpicFeatures.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/xm/core/xmMenu/XmEpicFeatures.vue b/src/views/xm/core/xmMenu/XmEpicFeatures.vue index 230a7a5d..dd42c2dc 100644 --- a/src/views/xm/core/xmMenu/XmEpicFeatures.vue +++ b/src/views/xm/core/xmMenu/XmEpicFeatures.vue @@ -825,6 +825,10 @@ this.$notify({position:'bottom-left',showClose:true,message:'请先选择一个或者多个需求',type:'warning'}) return; } + if(this.sels.some(k=>k.dclass=='1')){ + this.$notify({position:'bottom-left',showClose:true,message:"只能调整特性的上级,请选择特性",type:'warning'}) + return; + } this.parentMenuVisible=true; }else{ this.$notify({position:'bottom-left',showClose:true,message:'请先选择产品',type:'warning'}) @@ -833,11 +837,17 @@ }, onParentMenuSelected(menu){ + if(!menu||!menu.menuId){ this.$notify({position:'bottom-left',showClose:true,message:'请先选择一个上级需求',type:'warning'}) return; } + if(menu.dclass!='1'){ + this.$notify({position:'bottom-left',showClose:true,message:menu.menuName+'是特性,不能作为上级,请选择史诗作为上级',type:'warning'}) + return; + } + this.parentMenuVisible=false; var params={ menuIds:this.sels.map(i=>i.menuId),