diff --git a/src/views/xm/rpt/product/menuDayAccumulate.vue b/src/views/xm/rpt/product/menuDayAccumulate.vue index 4ac384d7..ec09b9ef 100644 --- a/src/views/xm/rpt/product/menuDayAccumulate.vue +++ b/src/views/xm/rpt/product/menuDayAccumulate.vue @@ -12,7 +12,10 @@ - + + + + 查询 @@ -99,25 +102,18 @@ }//end return },//end data - methods: { - findMax( list ) { - var i, max = list[0]; - - if(list.length < 2) return max; - - for (i = 0; i < list.length; i++) { - if (list[i].distBudgetWorkload > max.distBudgetWorkload) { - max = list[i]; - } - } - return max; - }, + methods: { listXmProductStateHis(){ if(!this.filters.product){ this.$notify({position:'bottom-left',showClose:true,message:'请先选中产品',type:'warning'}) return; } var params={productId:this.filters.product.id,orderBy:'biz_date asc'} + + if(this.filters.startBizDate && this.filters.endBizDate){ + params.startBizDate=this.filters.startBizDate; + params.endBizDate=this.filters.endBizDate; + } listXmProductStateHis(params).then(res=>{ this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss; }) diff --git a/src/views/xm/rpt/product/menuDayTrend.vue b/src/views/xm/rpt/product/menuDayTrend.vue index 20efaf2e..4839cfd5 100644 --- a/src/views/xm/rpt/product/menuDayTrend.vue +++ b/src/views/xm/rpt/product/menuDayTrend.vue @@ -15,6 +15,9 @@ + + + 查询 @@ -101,25 +104,18 @@ }//end return },//end data - methods: { - findMax( list ) { - var i, max = list[0]; - - if(list.length < 2) return max; - - for (i = 0; i < list.length; i++) { - if (list[i].distBudgetWorkload > max.distBudgetWorkload) { - max = list[i]; - } - } - return max; - }, + methods: { listXmProductStateHis(){ if(!this.filters.product){ this.$notify({position:'bottom-left',showClose:true,message:'请先选中产品',type:'warning'}) return; } var params={productId:this.filters.product.id,orderBy:'biz_date asc'} + + if(this.filters.startBizDate && this.filters.endBizDate){ + params.startBizDate=this.filters.startBizDate; + params.endBizDate=this.filters.endBizDate; + } listXmProductStateHis(params).then(res=>{ this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss; }) diff --git a/src/views/xm/rpt/product/productWorkItemDayList.vue b/src/views/xm/rpt/product/productWorkItemDayList.vue index 3f03e1b9..18a40c23 100644 --- a/src/views/xm/rpt/product/productWorkItemDayList.vue +++ b/src/views/xm/rpt/product/productWorkItemDayList.vue @@ -12,10 +12,10 @@ - - + + - + 查询