From d7cb50d260973dd4753a82241e52da9167a695ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Mon, 4 Apr 2022 03:14:27 +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 --- .../xm/rpt/product/productWorkItemDayList.vue | 50 +++++++++++++++---- 1 file changed, 41 insertions(+), 9 deletions(-) diff --git a/src/views/xm/rpt/product/productWorkItemDayList.vue b/src/views/xm/rpt/product/productWorkItemDayList.vue index 7bb37d07..16c434af 100644 --- a/src/views/xm/rpt/product/productWorkItemDayList.vue +++ b/src/views/xm/rpt/product/productWorkItemDayList.vue @@ -1,11 +1,24 @@ @@ -15,10 +28,12 @@ import { initSimpleDicts } from '@/api/mdp/meta/item';//下拉框数据查询 import { mapGetters } from 'vuex' + import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//新增界面 import { listXmProductStateHis } from '@/api/xm/core/xmProductStateHis'; export default { - components: { + components: { + XmProductSelect, }, props:['xmProduct'], computed: { @@ -74,7 +89,11 @@ return max; }, listXmProductStateHis(){ - var params={productId:'mmcloud-xm',orderBy:'biz_date asc'} + if(!this.filters.product){ + this.$notify({showClose:true,message:'请先选中产品',type:'warning'}) + return; + } + var params={productId:this.filters.product.id,orderBy:'biz_date asc'} listXmProductStateHis(params).then(res=>{ this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss; }) @@ -84,6 +103,7 @@ this.filters.product=params.xmProduct this.filters.project=params.xmProject this.filters.iteration=params.xmIteration + this.xmProductStateHiss=[] this.$nextTick(()=>{ this.listXmProductStateHis(); }) @@ -187,7 +207,19 @@ } ] }); - } + }, + + onProductSelected(product){ + this.filters.product=product + this.xmProductStateHiss=[]; + }, + + onProductClear(){ + this.filters.product=null + + this.xmProductStateHiss=[]; + + }, },//end method mounted() { /**