From 5ab70dfee1ece9952629958e9d82bf75a37c16a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 28 Oct 2021 11:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=85=E4=BA=8B=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xm/core/xmMenu/XmMenuMng.vue | 105 ++++++++++++++++++------- 1 file changed, 76 insertions(+), 29 deletions(-) diff --git a/src/views/xm/core/xmMenu/XmMenuMng.vue b/src/views/xm/core/xmMenu/XmMenuMng.vue index 5fc6ae44..b44d2848 100644 --- a/src/views/xm/core/xmMenu/XmMenuMng.vue +++ b/src/views/xm/core/xmMenu/XmMenuMng.vue @@ -67,40 +67,41 @@ 责任人: {{filters.mmUser.username}} - 选责任人 - 我的 + 选责任人 + 我的 故事名称: - + - 查询 - 导出 - 由模板快速导入 + 查询 + 导出 + 由模板快速导入 - 由任务汇总统计数据 + 由任务汇总统计数据 - - + + + 上级故事: + + {{item.menuName}}/ + + - + + + + + + + + + + + @@ -278,6 +298,9 @@ mmUser:null, iterationFilterType:'',//join、not-join、'' taskFilterType:'',//join、not-join、'' + + parentMenu:null, + parentMenuList:[], }, xmMenus: [],//查询结果 pageInfo:{//分页数据 @@ -403,6 +426,10 @@ if(this.selProject){ params.projectId=this.selProject.id } + + if(this.filters.parentMenu){ + params.pmenuId=this.filters.parentMenu.menuId + } params.ctimeStart=this.dateRanger[0]+" 00:00:00" params.ctimeEnd=this.dateRanger[1]+" 23:59:59" let callback= (res)=>{ @@ -471,6 +498,8 @@ }, onProductSelected:function(product){ this.filters.product=product + this.filters.parentMenu=null; + this.filters.parentMenuList=[]; this.productVisible=false; this.getXmMenus() }, @@ -798,6 +827,24 @@ }, toSelectProduct(){ this.productVisible=true; + }, + searchSubMenus(row,index){ + + this.filters.parentMenu=row + this.filters.parentMenuList.push(row); + this.pageInfo.count=true; + this.searchXmMenus(); + }, + clearParentMenu(menu,index){ + if(index==1){ + this.filters.parentMenu=null; + }else{ + this.filters.parentMenu=this.filters.parentMenuList[index-1]; + } + + this.filters.parentMenuList.splice(index,this.filters.parentMenuList.length-index) + this.pageInfo.count=true + this.searchXmMenus(); } },//end methods components: {