diff --git a/src/views/xm/rpt/product/questionAgeDist.vue b/src/views/xm/rpt/product/questionAgeDist.vue index 576d4b7d..ed0e55c7 100644 --- a/src/views/xm/rpt/product/questionAgeDist.vue +++ b/src/views/xm/rpt/product/questionAgeDist.vue @@ -12,7 +12,7 @@ - + {{xmProject.id}}
{{ xmProject.name }}
@@ -81,13 +81,14 @@ import { getXmQuestionAgeDist } from '@/api/xm/core/xmQuestion'; + import XmProjectSelect from '@/views/xm/core/components/XmProjectSelect';//项目选择 import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//产品选择界面 import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect';//迭代选择界面 export default { components: { - XmIterationSelect,XmProductSelect, + XmProjectSelect,XmIterationSelect,XmProductSelect, }, props:['xmProduct','xmIteration','xmProject'], computed: { @@ -227,18 +228,29 @@ if(this.filters.priority){ params.priority=this.filters.priority } - params.groupBy=this.groupBy + + if(this.filters.project){ + params.projectId=this.filters.project.id + } if(this.filters.product){ params.productId=this.filters.product.id - } - + } if(this.filters.iteration){ params.linkIterationId=this.filters.iteration.id } + params.groupBy=this.groupBy getXmQuestionAgeDist(params).then(res=>{ this.xmQuestionAgeDists=res.data.data }) + }, + onProjectSelected(project){ + this.filters.project=project + }, + + onProjectClear(){ + this.filters.project=null + }, onProductSelected(product){ this.filters.product=product diff --git a/src/views/xm/rpt/product/questionAttDist.vue b/src/views/xm/rpt/product/questionAttDist.vue index 6eaf28bb..dc657a43 100644 --- a/src/views/xm/rpt/product/questionAttDist.vue +++ b/src/views/xm/rpt/product/questionAttDist.vue @@ -17,7 +17,7 @@ - + {{xmProject.id}}
{{ xmProject.name }}
@@ -85,13 +85,14 @@ import { getXmQuestionAttDist } from '@/api/xm/core/xmQuestion'; + import XmProjectSelect from '@/views/xm/core/components/XmProjectSelect';//项目选择 import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//产品选择界面 import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect';//迭代选择界面 export default { components: { - XmIterationSelect,XmProductSelect, + XmProjectSelect,XmIterationSelect,XmProductSelect, }, props:['xmProduct','xmIteration','xmProject'], computed: { @@ -300,18 +301,29 @@ if(this.filters.priority){ params.priority=this.filters.priority } - params.groupBy=this.groupBy + + if(this.filters.project){ + params.projectId=this.filters.project.id + } if(this.filters.product){ params.productId=this.filters.product.id - } - + } if(this.filters.iteration){ params.linkIterationId=this.filters.iteration.id } + params.groupBy=this.groupBy getXmQuestionAttDist(params).then(res=>{ this.xmQuestionAttDists=res.data.data }) + }, + onProjectSelected(project){ + this.filters.project=project + }, + + onProjectClear(){ + this.filters.project=null + }, onProductSelected(product){ this.filters.product=product diff --git a/src/views/xm/rpt/product/questionRetestDist.vue b/src/views/xm/rpt/product/questionRetestDist.vue index 8188d727..568e7a58 100644 --- a/src/views/xm/rpt/product/questionRetestDist.vue +++ b/src/views/xm/rpt/product/questionRetestDist.vue @@ -12,7 +12,7 @@ - + {{xmProject.id}}
{{ xmProject.name }}
@@ -80,13 +80,14 @@ import { getXmQuestionRetestDist } from '@/api/xm/core/xmQuestion'; + import XmProjectSelect from '@/views/xm/core/components/XmProjectSelect';//项目选择 import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//产品选择界面 import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect';//迭代选择界面 export default { components: { - XmIterationSelect,XmProductSelect, + XmProjectSelect,XmIterationSelect,XmProductSelect, }, props:['xmProduct','xmIteration','xmProject'], computed: { @@ -270,16 +271,17 @@ if(this.filters.priority){ params.priority=this.filters.priority } - params.groupBy=this.groupBy + + if(this.filters.project){ + params.projectId=this.filters.project.id + } if(this.filters.product){ params.productId=this.filters.product.id - } - + } if(this.filters.iteration){ - params.iterationId=this.filters.iteration.id + params.linkIterationId=this.filters.iteration.id } - - + params.groupBy=this.groupBy if ( this.pageInfo.orderFields != null && this.pageInfo.orderFields.length > 0 @@ -296,6 +298,14 @@ this.xmQuestionRetests=res.data.data }) + }, + onProjectSelected(project){ + this.filters.project=project + }, + + onProjectClear(){ + this.filters.project=null + }, onProductSelected(product){ this.filters.product=product diff --git a/src/views/xm/rpt/product/questionSort.vue b/src/views/xm/rpt/product/questionSort.vue index 81d544fa..41e24634 100644 --- a/src/views/xm/rpt/product/questionSort.vue +++ b/src/views/xm/rpt/product/questionSort.vue @@ -18,7 +18,7 @@ - + {{xmProject.id}}
{{ xmProject.name }}
@@ -86,13 +86,14 @@ import { getXmQuestionSort } from '@/api/xm/core/xmQuestion'; + import XmProjectSelect from '@/views/xm/core/components/XmProjectSelect';//项目选择 import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//产品选择界面 import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect';//迭代选择界面 export default { components: { - XmIterationSelect,XmProductSelect, + XmProjectSelect,XmIterationSelect,XmProductSelect, }, props:['xmProduct','xmIteration','xmProject','initGroupBy'], computed: { @@ -241,16 +242,20 @@ if(this.filters.priority){ params.priority=this.filters.priority } - params.groupBy=this.groupBy + + if(this.filters.project){ + params.projectId=this.filters.project.id + } if(this.filters.product){ params.productId=this.filters.product.id - } - + } if(this.filters.iteration){ params.linkIterationId=this.filters.iteration.id } + params.groupBy=this.groupBy + if ( this.pageInfo.orderFields != null && this.pageInfo.orderFields.length > 0 @@ -267,6 +272,14 @@ this.xmQuestionSorts=res.data.data }) + }, + onProjectSelected(project){ + this.filters.project=project + }, + + onProjectClear(){ + this.filters.project=null + }, onProductSelected(product){ this.filters.product=product