From 83b0887f5e0bc225c8d34ef2834fd639162f98f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sat, 12 Mar 2022 17:28:18 +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/XmMenuMng.vue | 30 +++++++++++++++++--------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/src/views/xm/core/xmMenu/XmMenuMng.vue b/src/views/xm/core/xmMenu/XmMenuMng.vue index 9fe981a5..8b959e64 100644 --- a/src/views/xm/core/xmMenu/XmMenuMng.vue +++ b/src/views/xm/core/xmMenu/XmMenuMng.vue @@ -13,15 +13,17 @@ - + - - + + - - - + + + + + @@ -288,6 +290,7 @@ }, watch:{ xmIteration:function(){ + this.filters.iterationFilterType="join-curr-iteration" this.getXmMenus() }, xmProduct:function(){ @@ -295,6 +298,7 @@ this.getXmMenus() }, selProject:function(){ + this.filters.taskFilterType='join-curr-project' this.getXmMenus(); } }, @@ -417,9 +421,8 @@ if(this.filters.iterationFilterType){ params.iterationFilterType=this.filters.iterationFilterType } - if(this.xmIteration){ - params.iterationFilterType='join' - params.iterationId=this.xmIteration.id + if(this.xmIteration){ + params.filterIterationId=this.xmIteration.id } if(this.filters.taskFilterType){ params.taskFilterType=this.filters.taskFilterType @@ -442,7 +445,7 @@ if(this.filters.tags && this.filters.tags.length>0){ params.tagIdList=this.filters.tags.map(i=>i.tagId) } - if(!(params.ctimeStart||params.pmenuId||params.projectId||params.iterationId||params.iterationFilterType||params.mmUserid||params.key||params.taskFilterType||params.tagIdList||params.status)){ + if(!(params.ctimeStart||params.pmenuId||params.projectId||params.filterIterationId||params.iterationFilterType||params.mmUserid||params.key||params.taskFilterType||params.tagIdList||params.status)){ params.isTop="1" } return params; @@ -879,6 +882,13 @@ if(this.xmProduct && this.xmProduct.id){ this.productVisible=false; } + if(this.selProject && this.selProject.id){ + this.filters.taskFilterType='join-curr-project' + } + + if(this.xmIteration && this.xmIteration.id){ + this.filters.iterationFilterType='join-curr-iteration' + } this.$nextTick(() => { this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el); this.getXmMenus();