diff --git a/src/components/dateRange/index.vue b/src/components/dateRange/index.vue new file mode 100644 index 00000000..d5ea8712 --- /dev/null +++ b/src/components/dateRange/index.vue @@ -0,0 +1,124 @@ + + + + + diff --git a/src/main.js b/src/main.js index 0c00acb6..caf9e7dc 100644 --- a/src/main.js +++ b/src/main.js @@ -22,9 +22,11 @@ import Print from 'vue-print-nb' +import DateRange from '@/components/dateRange/index' Vue.prototype.$echarts = echarts Vue.use(Print); //注册 +Vue.component('date-range',DateRange) Vue.use(Element, { size: 'small', // set element-ui default size i18n: (key, value) => i18n.t(key, value) diff --git a/src/views/xm/rpt/product/productWorkItemDayList.vue b/src/views/xm/rpt/product/productWorkItemDayList.vue index 0b91474f..3f03e1b9 100644 --- a/src/views/xm/rpt/product/productWorkItemDayList.vue +++ b/src/views/xm/rpt/product/productWorkItemDayList.vue @@ -12,6 +12,9 @@ + + + 查询 @@ -65,6 +68,8 @@ product:null, iteration:null, project:null, + startBizDate:'', + endBizDate:'', }, dicts:{},//下拉选择框的所有静态数据 params=[{categoryId:'0001',itemCode:'sex'}] 返回结果 {'sex':[{optionValue:'1',optionName:'男',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'女',seqOrder:'2',fp:'',isDefault:'0'}]} load:{ list: false, edit: false, del: false, add: false },//查询中... @@ -81,7 +86,12 @@ 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; })