|
|
@ -7,10 +7,19 @@ |
|
|
<div class="progress"></div> |
|
|
<div class="progress"></div> |
|
|
</div> |
|
|
</div> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6" class="border"> |
|
|
|
|
|
|
|
|
<el-col :span="6" v-if="showParams"> |
|
|
|
|
|
<el-popover trigger="manual" v-model="filterVisible" style="float:right;" width="500"> |
|
|
|
|
|
<el-button slot="reference" style="margin-top:10px;" icon="el-icon-more" @click="filterVisible=!filterVisible"></el-button> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-button type="danger" icon="el-icon-delete" @click="doDelete">从报告移出该报表</el-button> |
|
|
|
|
|
<el-button icon="el-icon-close" style="float:right;" @click="filterVisible=false">关闭</el-button> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
<el-form :model="params" class="padding" :style="{width:'100%',overflow: 'auto'}" ref="filtersRef"> |
|
|
<el-form :model="params" class="padding" :style="{width:'100%',overflow: 'auto'}" ref="filtersRef"> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="15"> |
|
|
<el-form-item label="分组属性"> |
|
|
<el-form-item label="分组属性"> |
|
|
<el-select style="width:100px;" size="small" v-model="params.groupBy" @change="onXmQuestionSomeFieldsChange('groupBy',$event)" clearable> |
|
|
|
|
|
|
|
|
<el-select style="width:100px;" size="small" v-model="params.groupBy" @change="onXmQuestionSomeFieldsChange('groupBy',$event)"> |
|
|
<el-option v-for="i in this.groupBys" :label="i.name" :key="i.id" :value="i.id"></el-option> |
|
|
<el-option v-for="i in this.groupBys" :label="i.name" :key="i.id" :value="i.id"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -18,6 +27,7 @@ |
|
|
<el-form-item label="测试库" v-if="xmTestCasedb && xmTestCasedb.id" > |
|
|
<el-form-item label="测试库" v-if="xmTestCasedb && xmTestCasedb.id" > |
|
|
<span >{{xmTestCasedb.id}} <span v-if="xmTestCasedb.name"><br/>{{ xmTestCasedb.name }} </span> </span> |
|
|
<span >{{xmTestCasedb.id}} <span v-if="xmTestCasedb.name"><br/>{{ xmTestCasedb.name }} </span> </span> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="归属项目"> |
|
|
<el-form-item label="归属项目"> |
|
|
<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> |
|
|
<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> |
|
|
<span v-else>{{xmProject.id}} <span v-if="xmProject.name"><br/>{{ xmProject.name }} </span> </span> |
|
|
@ -44,6 +54,8 @@ |
|
|
<el-button v-if="filters.testPlan" type="text" @click="filters.testPlan=null" plain icon="el-icon-circle-close">清除</el-button> |
|
|
<el-button v-if="filters.testPlan" type="text" @click="filters.testPlan=null" plain icon="el-icon-circle-close">清除</el-button> |
|
|
<el-button v-if="!filters.testPlan" type="text" @click="$refs['xmTestPlanSelectRef'].open()" plain>选择计划</el-button> |
|
|
<el-button v-if="!filters.testPlan" type="text" @click="$refs['xmTestPlanSelectRef'].open()" plain>选择计划</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="9"> |
|
|
<el-form-item label="缺陷状态" prop="bugStatus"> |
|
|
<el-form-item label="缺陷状态" prop="bugStatus"> |
|
|
<el-select style="width:100px;" size="small" v-model="params.bugStatus" @change="onXmQuestionSomeFieldsChange('bugStatus',$event)" clearable> |
|
|
<el-select style="width:100px;" size="small" v-model="params.bugStatus" @change="onXmQuestionSomeFieldsChange('bugStatus',$event)" clearable> |
|
|
<el-option v-for="i in this.dicts.bugStatus" :label="i.name" :key="i.id" :value="i.id"></el-option> |
|
|
<el-option v-for="i in this.dicts.bugStatus" :label="i.name" :key="i.id" :value="i.id"></el-option> |
|
|
@ -80,10 +92,17 @@ |
|
|
<el-option v-for="i in dicts.bugRepRate" :label="i.name" :key="i.id" :value="i.id"></el-option> |
|
|
<el-option v-for="i in dicts.bugRepRate" :label="i.name" :key="i.id" :value="i.id"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" icon="el-icon-search" @click="searchXmQuestionAttDist">查询</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" style="float:right;" icon="el-icon-search" @click="searchXmQuestionAttDist">查询</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
</el-popover> |
|
|
|
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<xm-test-plan-select ref="xmTestPlanSelectRef" :casedb-id="xmTestCasedb?xmTestCasedb.id:null" :product-id="xmProduct?xmProduct.id:null" :project-id="xmProject?xmProject.id:null" placeholder="迭代" @select="onXmTestPlanSelected" @clear="onXmTestPlanClear"></xm-test-plan-select > |
|
|
<xm-test-plan-select ref="xmTestPlanSelectRef" :casedb-id="xmTestCasedb?xmTestCasedb.id:null" :product-id="xmProduct?xmProduct.id:null" :project-id="xmProject?xmProject.id:null" placeholder="迭代" @select="onXmTestPlanSelected" @clear="onXmTestPlanClear"></xm-test-plan-select > |
|
|
@ -214,6 +233,8 @@ |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
|
|
|
|
|
|
filterVisible:false, |
|
|
filters:{ |
|
|
filters:{ |
|
|
product:null, |
|
|
product:null, |
|
|
project:null, |
|
|
project:null, |
|
|
|