From 08215bbeb859bcd04fe98d85930c14c6f18dc529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Mon, 18 Jul 2022 11:34:05 +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/xmQuestion/XmQuestionEdit.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue index 161816ca..f3347309 100644 --- a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue +++ b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue @@ -493,16 +493,15 @@ this.selectMenuVisible=true; }, onSelectedMenu(menu){ - if(menu.ntype=='1'){ - this.$notify({position:'bottom-left',showClose:true,message: "您选择的【"+menu.menuName+"】属于需求池,请重新选择。建议选择树中叶子节点", type: 'error' }); + if(menu.dclass<'3'){ + this.$notify({position:'bottom-left',showClose:true,message: "您选择的【"+menu.menuName+"】不属于用户故事,请重新选择。", type: 'error' }); return; } this.editForm.menuId=menu.menuId this.editForm.menuName=menu.menuName this.editForm.productId=menu.productId - this.editForm.iterationId=menu.iterationId - this.editForm.iterationName=menu.iterationName this.selectMenuVisible=false; + this.editXmQuestionSomeFields(this.editForm,'menuId',menu) }, handleCloseMenuTag:function(){ this.editForm.menuId='' @@ -557,6 +556,10 @@ params.projectId=$event.id }else if(fieldName==='productId'){ params.productId=$event.id + }else if(fieldName==='menuId'){ + params.productId=$event.productId + params.menuId=$event.menuId + params.menuName=$event.menuName }else{ params[fieldName]=$event }