From a455ba07ec4ec2d0a528813919a1db9c24c441a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 17 Mar 2022 02:31:40 +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/xmProduct/XmProductMng.vue | 8 +++ src/views/xm/core/xmProject/XmProjectMng.vue | 74 +++++++++++++------- 2 files changed, 55 insertions(+), 27 deletions(-) diff --git a/src/views/xm/core/xmProduct/XmProductMng.vue b/src/views/xm/core/xmProduct/XmProductMng.vue index 65b83c32..137daeae 100644 --- a/src/views/xm/core/xmProduct/XmProductMng.vue +++ b/src/views/xm/core/xmProduct/XmProductMng.vue @@ -12,6 +12,10 @@ + + + + @@ -337,6 +341,7 @@ queryScope:'compete',//compete/branchId/''/productId id:'',//产品编号 pmUser:null,//产品经理 + pstatus:'', }, xmProducts: [],//查询结果 pageInfo:{//分页数据 @@ -472,6 +477,9 @@ if(this.filters.pmUser){ params.pmUserid=this.filters.pmUser.userid } + if(this.filters.pstatus){ + params.pstatus=this.filters.pstatus + } this.load.list = true; listXmProductWithState(params).then((res) => { var tips=res.data.tips; diff --git a/src/views/xm/core/xmProject/XmProjectMng.vue b/src/views/xm/core/xmProject/XmProjectMng.vue index f66697de..299aef24 100644 --- a/src/views/xm/core/xmProject/XmProjectMng.vue +++ b/src/views/xm/core/xmProject/XmProjectMng.vue @@ -154,34 +154,45 @@ - - - - + + + + - - - - - - - + - - - - - - - + + + + + + + + - - + + + + + + + + @@ -197,7 +208,7 @@ - + @@ -462,6 +474,9 @@ if(this.filters.productId){ params.productId = this.filters.productId } + if(this.filters.status){ + params.status = this.filters.status + } params.createTimeStart=this.dateRanger[0] params.createTimeEnd=this.dateRanger[1] listXmProject(params).then((res) => { @@ -819,6 +834,11 @@ return status; } }, + formatterByDicts(row,column,cellValue){ + if(column.property=='status'){ + return this.formatProjectStatus(cellValue); + } + }, loadTasksToXmProjectState(row){ var params={projectId:row.id} @@ -857,7 +877,7 @@ initSimpleDicts('all',['projectType','urgencyLevel','priority','projectStatus']).then(res=>{ this.dicts=res.data.data; }) - this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table1.$el); + this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el); this.showInfo = false; this.getXmProjects(this.guiderStart); });