|
|
|
@ -12,7 +12,7 @@ |
|
|
|
<el-col :span="6" class="border"> |
|
|
|
<el-form :model="filters" class="padding"> |
|
|
|
<el-form-item label="归属项目"> |
|
|
|
<xm-project-select v-if="!xmProject" ref="xmProjectSelect" style="display:inline;" :auto-select="false" :link-product-id="xmProductCpd.id?xmProductCpd.id.id:null" @row-click="onProjectSelected" @clear="onProjectClear"></xm-project-select> |
|
|
|
<xm-project-select v-if="!xmProject" ref="xmProjectSelect" style="display:inline;" :auto-select="false" :link-product-id="xmProductCpd?xmProductCpd.id:null" @row-click="onProjectSelected" @clear="onProjectClear"></xm-project-select> |
|
|
|
<span v-else>{{xmProject.id}} <span v-if="xmProject.name"><br/>{{ xmProject.name }} </span> </span> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="归属产品" > |
|
|
|
@ -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 |
|
|
|
|