From 1c4d4ca4ce7198f281fa5e4891332e9fedba0553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Wed, 16 Feb 2022 19:22:02 +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/XmMenuAdd.vue | 26 +++++++++++------ src/views/xm/core/xmMenu/XmMenuEdit.vue | 38 ++++++++++++++----------- src/views/xm/core/xmMenu/XmMenuMng.vue | 4 +-- 3 files changed, 42 insertions(+), 26 deletions(-) diff --git a/src/views/xm/core/xmMenu/XmMenuAdd.vue b/src/views/xm/core/xmMenu/XmMenuAdd.vue index 25923e61..9a25f014 100644 --- a/src/views/xm/core/xmMenu/XmMenuAdd.vue +++ b/src/views/xm/core/xmMenu/XmMenuAdd.vue @@ -3,19 +3,25 @@ - - {{parentMenu.seqNo}}     {{parentMenu.menuName}} + + + + {{parentMenu.seqNo}}     {{parentMenu.menuName}} - - 无上级 + + 无归属需求集 + + 需求集 + 需求 + + + + 建议:{{parentMenu.seqNo}}.{{parentMenu.children?parentMenu.children.length+1:1}} - - - {{addForm.mmUsername}} 未配置 @@ -105,7 +111,7 @@ }, //新增界面数据 项目需求表 addForm: { - menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',seqNo:'1',mmUserid:'',mmUsername:'' + menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',seqNo:'1',mmUserid:'',mmUsername:'',ntype:'0',childrenCnt:0,sinceVersion:'' }, userSelectVisible:false, /**begin 在下面加自定义属性,记得补上面的一个逗号**/ @@ -124,6 +130,10 @@ this.$message({showClose: true, message: '请选择产品/或者上级需求进行新增', type:'error' }); return; } + if(this.parentMenu && this.parentMenu.ntype=="0"){ + this.$message({showClose: true, message: '需求集下不能再建立子需求', type:'error' }); + return; + } this.$refs.addForm.validate((valid) => { if (valid) { diff --git a/src/views/xm/core/xmMenu/XmMenuEdit.vue b/src/views/xm/core/xmMenu/XmMenuEdit.vue index 0f7b7ccf..9a5eeb83 100644 --- a/src/views/xm/core/xmMenu/XmMenuEdit.vue +++ b/src/views/xm/core/xmMenu/XmMenuEdit.vue @@ -4,24 +4,30 @@ - - - - - - - - - - - - + + + + + + + + + + + + + + + 需求集 + 需求 + + + + + - - - {{editForm.mmUsername}} 未配置 @@ -105,7 +111,7 @@ import XmMenuOverview from './XmMenuOverview.vue'; }, //新增界面数据 项目需求表 editForm: { - menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',seqNo:'1',mmUserid:'',mmUsername:'' + menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',seqNo:'1',mmUserid:'',mmUsername:'',ntype:'0',childrenCnt:0,sinceVersion:'' }, userSelectVisible:false, /**begin 在下面加自定义属性,记得补上面的一个逗号**/ diff --git a/src/views/xm/core/xmMenu/XmMenuMng.vue b/src/views/xm/core/xmMenu/XmMenuMng.vue index d244ec5b..4809eba2 100644 --- a/src/views/xm/core/xmMenu/XmMenuMng.vue +++ b/src/views/xm/core/xmMenu/XmMenuMng.vue @@ -303,13 +303,13 @@ addFormVisible: false,//新增xmMenu界面是否显示 //新增xmMenu界面初始化数据 addForm: { - menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'' + menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',ntype:'0',childrenCnt:0,sinceVersion:'' }, editFormVisible: false,//编辑界面是否显示 //编辑xmMenu界面初始化数据 editForm: { - menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'' + menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',ntype:'0',childrenCnt:0,sinceVersion:'' }, parentMenu:null, menuTemplateVisible:false,