From a6c4fe1f6288f947274d1c12170e310a39105125 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 19:11:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E9=80=89=E4=B8=AD=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dateRange/index.vue | 124 ++++++++++++++++++ src/main.js | 2 + .../xm/rpt/product/productWorkItemDayList.vue | 10 ++ 3 files changed, 136 insertions(+) create mode 100644 src/components/dateRange/index.vue 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; })