From f256d5c39a23c8ab92aa18f74fe6659597b9c948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 2 Feb 2023 12:42:20 +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 | 39 ++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/src/views/xm/core/xmMenu/XmMenuMng.vue b/src/views/xm/core/xmMenu/XmMenuMng.vue index e0eb1385..9d566ce0 100644 --- a/src/views/xm/core/xmMenu/XmMenuMng.vue +++ b/src/views/xm/core/xmMenu/XmMenuMng.vue @@ -88,6 +88,12 @@ + + + 归属模块: + + {{ filters.func.name }} 清除选择模块 + 需求类型: @@ -385,7 +391,7 @@ - + + + + + @@ -426,6 +436,7 @@ import XmTableConfig from '@/views/xm/core/components/XmTableConfig';//修改界面 import XmGroupDialog from '@/views/xm/core/xmGroup/XmGroupDialog';//修改界面 import UsersSelect from "@/views/mdp/sys/user/UsersSelect"; + import XmFuncSelect from '../xmFunc/XmFuncSelect' import XmEpicFeaturesSelect from "../xmMenu/XmEpicFeaturesSelect"; import XmMenuAgileKanbanUser from "../xmMenu/XmMenuAgileKanbanUser"; @@ -471,6 +482,17 @@ key.pmenuId='' } return key.iterationId+key.projectId+key.productId+key.pmenuId + }, + xmProductCpd(){ + if(this.filters.product && this.filters.product.id){ + return this.filters.product + } + if(this.xmIteration && this.xmIteration.id){ + return {id:this.xmIteration.productId,productName:this.xmIteration.productName} + } + if(this.parentMenu && this.parentMenu.menuId){ + return {id:this.parentMenu.productId,productName:this.parentMenu.productName} + } } }, watch:{ @@ -494,6 +516,7 @@ filters: { key: '', product:null, + func:null, mmUser:{}, iterationFilterType:'',//join、not-join、'' taskFilterType:'',//join、not-join、'' @@ -563,7 +586,8 @@ /**begin 自定义属性请在下面加 请加备注**/ expandRowKeysCpd:[], moreVisible:false, - displayType:'table' + displayType:'table', + funcVisible:false, /**end 自定义属性请在上面加 请加备注**/ } },//end data @@ -663,6 +687,9 @@ if(this.filters.product){ params.productId=this.filters.product.id } + if(this.filters.func){ + params.funcId=this.filters.func.id + } if(this.filters.status){ params.status=this.filters.status } @@ -1327,7 +1354,12 @@ Object.assign(this.editForm,params) }, onAddSubMenu(row){ - } + }, + + onFuncSelected(row){ + this.filters.func=row + this.funcVisible=false; + }, },//end methods components: { @@ -1348,6 +1380,7 @@ XmIterationSelect, MdpSelectUserXm, XmMenuAgileKanbanUser, + XmFuncSelect, //在下面添加其它组件 }, mounted() {