9 changed files with 237 additions and 538 deletions
-
4src/views/xm/core/xmTestPlan/rpt/CompsCard.vue
-
21src/views/xm/core/xmTestPlan/rpt/CompsSet.vue
-
44src/views/xm/core/xmTestPlan/rpt/biz/questionAskUserSort.vue
-
259src/views/xm/core/xmTestPlan/rpt/biz/questionDayAccumulate.vue
-
257src/views/xm/core/xmTestPlan/rpt/biz/questionDayTrend.vue
-
44src/views/xm/core/xmTestPlan/rpt/biz/questionFuncSort.vue
-
44src/views/xm/core/xmTestPlan/rpt/biz/questionHandlerUserSort.vue
-
44src/views/xm/core/xmTestPlan/rpt/biz/questionMenuSort.vue
-
58src/views/xm/core/xmTestPlan/rpt/biz/questionSort.vue
@ -0,0 +1,44 @@ |
|||
<template> |
|||
<section> |
|||
<el-row> |
|||
<question-sort ref="questionSort" :rpt-config-visible="rptConfigVisible" :group-by="'ask_userid'"/> |
|||
</el-row> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
|
|||
import questionSort from './questionSort' |
|||
import { mapGetters } from 'vuex' |
|||
import dayjs from 'dayjs' |
|||
|
|||
export default { |
|||
components: {questionSort}, |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo' |
|||
]), |
|||
}, |
|||
|
|||
watch: { |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
rptConfigVisible:false, |
|||
} |
|||
}, |
|||
|
|||
methods: { |
|||
|
|||
}, |
|||
|
|||
|
|||
mounted() { |
|||
|
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
</style> |
|||
@ -1,259 +0,0 @@ |
|||
<template> |
|||
<section> |
|||
|
|||
<el-row :gutter="5"> |
|||
<el-col :span="18"> <div> |
|||
<div class="main" id="questionDayAccumulate" |
|||
style="width:100%;height:600px;margin:0 auto;"></div> |
|||
</div> |
|||
</el-col> |
|||
<el-col :span="6" class="border padding"> |
|||
<el-form :model="filters"> |
|||
<el-form-item label="归属产品"> |
|||
<xm-product-select v-if="!xmProduct" ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" @clear="onProductClear"></xm-product-select> |
|||
</el-form-item> |
|||
<el-form-item label="日期区间"> |
|||
<br> |
|||
<mdp-date-range v-model="filters" value-format="yyyy-MM-dd" start-key="startBizDate" end-key="endBizDate"></mdp-date-range> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="primary" icon="el-icon-search" @click="listXmProductStateHis">查询</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</el-col> |
|||
</el-row> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
import util from '@/common/js/util';//全局公共库 |
|||
import { initSimpleDicts } from '@/api/mdp/meta/item';//下拉框数据查询 |
|||
import { mapGetters } from 'vuex' |
|||
|
|||
import { listXmProductStateHis } from '@/api/xm/core/xmProductStateHis'; |
|||
import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//新增界面 |
|||
export default { |
|||
|
|||
components: { |
|||
XmProductSelect, |
|||
}, |
|||
props:['xmProduct','xmProject'], |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles' |
|||
]), |
|||
datesCpd(){ |
|||
if(this.xmProductStateHiss.length==0){ |
|||
return [] |
|||
}else{ |
|||
return this.xmProductStateHiss.map(i=>i.bizDate) |
|||
} |
|||
}, |
|||
closedBugsCpd(){ |
|||
if(this.xmProductStateHiss.length==0){ |
|||
return [] |
|||
}else{ |
|||
return this.xmProductStateHiss.map(i=>i.closedBugs) |
|||
} |
|||
}, |
|||
activeBugsCpd(){ |
|||
if(this.xmProductStateHiss.length==0){ |
|||
return [] |
|||
}else{ |
|||
return this.xmProductStateHiss.map(i=> i.menuUnstartCnt) |
|||
} |
|||
}, |
|||
confirmedBugsCpd(){ |
|||
if(this.xmProductStateHiss.length==0){ |
|||
return [] |
|||
}else{ |
|||
return this.xmProductStateHiss.map(i=> i.confirmedBugs) |
|||
} |
|||
}, |
|||
|
|||
resolvedBugsCpd(){ |
|||
if(this.xmProductStateHiss.length==0){ |
|||
return [] |
|||
}else{ |
|||
return this.xmProductStateHiss.map(i=>i.resolvedBugs) |
|||
} |
|||
}, |
|||
|
|||
}, |
|||
watch: { |
|||
datesCpd(){ |
|||
|
|||
this.$nextTick(()=>{ |
|||
this.drawCharts(); |
|||
}) |
|||
|
|||
} |
|||
}, |
|||
data() { |
|||
return { |
|||
filters:{ |
|||
category:'', |
|||
product:null, |
|||
project:null, |
|||
}, |
|||
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 },//查询中... |
|||
dateRanger:[], |
|||
maxTableHeight:300, |
|||
visible:false, |
|||
xmProductStateHiss:[], |
|||
|
|||
}//end return |
|||
},//end data |
|||
methods: { |
|||
listXmProductStateHis(){ |
|||
if(!this.filters.product){ |
|||
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; |
|||
}) |
|||
}, |
|||
open(params){ |
|||
this.visible=true; |
|||
this.filters.product=params.xmProduct |
|||
this.filters.project=params.xmProject |
|||
this.filters.Product=params.xmProduct |
|||
this.xmProductStateHiss=[] |
|||
if(this.$refs['xmProductSelect'])this.$refs['xmProductSelect'].clearSelect(); |
|||
this.$nextTick(()=>{ |
|||
this.listXmProductStateHis(); |
|||
}) |
|||
|
|||
}, |
|||
drawCharts() { |
|||
this.myChart = this.$echarts.init(document.getElementById("questionDayAccumulate")); |
|||
this.myChart.setOption( |
|||
{ |
|||
title: { |
|||
text: '缺陷累积图' |
|||
}, |
|||
|
|||
tooltip: { |
|||
trigger: 'axis', |
|||
axisPointer: { |
|||
type: 'cross', |
|||
label: { |
|||
backgroundColor: '#6a7985' |
|||
} |
|||
} |
|||
}, |
|||
legend: { |
|||
data: ['新提出', '执行中', '已解决', '已关闭'] |
|||
}, |
|||
grid: { |
|||
left: '3%', |
|||
right: '4%', |
|||
bottom: '3%', |
|||
containLabel: true |
|||
}, |
|||
toolbox: { |
|||
feature: { |
|||
saveAsImage: {} |
|||
} |
|||
}, |
|||
xAxis: { |
|||
type: 'category', |
|||
boundaryGap: false, |
|||
data: this.datesCpd, |
|||
}, |
|||
yAxis: { |
|||
type: 'value' |
|||
}, |
|||
series: [ |
|||
{ |
|||
name: '新提出', |
|||
type: 'line', |
|||
stack: 'Total', |
|||
areaStyle: {}, |
|||
emphasis: { |
|||
focus: 'series' |
|||
}, |
|||
data: this.activeBugsCpd |
|||
}, |
|||
{ |
|||
name: '执行中', |
|||
type: 'line', |
|||
stack: 'Total', |
|||
areaStyle: {}, |
|||
emphasis: { |
|||
focus: 'series' |
|||
}, |
|||
data: this.confirmedBugsCpd, |
|||
}, |
|||
{ |
|||
name: '已解决', |
|||
type: 'line', |
|||
stack: 'Total', |
|||
areaStyle: {}, |
|||
emphasis: { |
|||
focus: 'series' |
|||
}, |
|||
data: this.resolvedBugsCpd, |
|||
}, |
|||
{ |
|||
name: '已关闭', |
|||
type: 'line', |
|||
stack: 'Total', |
|||
areaStyle: {}, |
|||
emphasis: { |
|||
focus: 'series' |
|||
}, |
|||
|
|||
label: { |
|||
show: true, |
|||
position: 'top' |
|||
}, |
|||
data: this.closedBugsCpd, |
|||
} |
|||
] |
|||
} |
|||
) |
|||
}, |
|||
|
|||
|
|||
onProductSelected(product){ |
|||
this.filters.product=product |
|||
this.xmProductStateHiss=[]; |
|||
this.listXmProductStateHis(); |
|||
}, |
|||
|
|||
onProductClear(){ |
|||
this.filters.product=null |
|||
|
|||
this.xmProductStateHiss=[]; |
|||
|
|||
}, |
|||
},//end method |
|||
mounted() { |
|||
/** |
|||
initSimpleDicts('all',['demandSource','demandLvl','demandType','priority','menuStatus'] ).then(res=>{ |
|||
this.dicts=res.data.data; |
|||
}) |
|||
*/ |
|||
//this.charts(); |
|||
//this.drawCharts() |
|||
|
|||
}//end mounted |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style scoped> |
|||
.image { |
|||
width: 100%; |
|||
display: block; |
|||
} |
|||
</style> |
|||
@ -1,257 +0,0 @@ |
|||
<template> |
|||
<section> |
|||
|
|||
<el-row :gutter="5"> |
|||
<el-col :span="18"> |
|||
<div> |
|||
<div class="main" id="questionDayTrend" |
|||
style="width:100%;height:600px;margin:0 auto;"></div> |
|||
<div class="progress"></div> |
|||
</div> |
|||
</el-col> |
|||
<el-col :span="6" class="border padding"> |
|||
<el-form :model="filters"> |
|||
<el-form-item label="归属产品" v-if="!xmProduct" > |
|||
<xm-product-select ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" @clear="onProductClear"></xm-product-select> |
|||
</el-form-item> |
|||
<el-form-item label="日期区间"> |
|||
<br> |
|||
<mdp-date-range v-model="filters" value-format="yyyy-MM-dd" start-key="startBizDate" end-key="endBizDate"></mdp-date-range> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="primary" icon="el-icon-search" @click="listXmProductStateHis">查询</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</el-col> |
|||
</el-row> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
import util from '@/common/js/util';//全局公共库 |
|||
import { initSimpleDicts } from '@/api/mdp/meta/item';//下拉框数据查询 |
|||
import { mapGetters } from 'vuex' |
|||
|
|||
import { listXmProductStateHis } from '@/api/xm/core/xmProductStateHis'; |
|||
import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//新增界面 |
|||
export default { |
|||
|
|||
components: { |
|||
XmProductSelect, |
|||
}, |
|||
props:['xmProduct','xmProject'], |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles' |
|||
]), |
|||
datesCpd(){ |
|||
if(this.xmProductStateHiss.length==0){ |
|||
return [] |
|||
}else{ |
|||
return this.xmProductStateHiss.map(i=>i.bizDate) |
|||
} |
|||
}, |
|||
closedBugsCpd(){ |
|||
if(this.xmProductStateHiss.length==0){ |
|||
return [] |
|||
}else{ |
|||
return this.xmProductStateHiss.map(i=>i.closedBugs) |
|||
} |
|||
}, |
|||
activeBugsCpd(){ |
|||
if(this.xmProductStateHiss.length==0){ |
|||
return [] |
|||
}else{ |
|||
return this.xmProductStateHiss.map(i=> i.activeBugs) |
|||
} |
|||
}, |
|||
confirmedBugsCpd(){ |
|||
if(this.xmProductStateHiss.length==0){ |
|||
return [] |
|||
}else{ |
|||
return this.xmProductStateHiss.map(i=> i.confirmedBugs) |
|||
} |
|||
}, |
|||
|
|||
resolvedBugsCpd(){ |
|||
if(this.xmProductStateHiss.length==0){ |
|||
return [] |
|||
}else{ |
|||
return this.xmProductStateHiss.map(i=>i.resolvedBugs) |
|||
} |
|||
}, |
|||
|
|||
}, |
|||
watch: { |
|||
datesCpd(){ |
|||
|
|||
this.$nextTick(()=>{ |
|||
this.drawCharts(); |
|||
}) |
|||
|
|||
} |
|||
}, |
|||
data() { |
|||
return { |
|||
filters:{ |
|||
category:'', |
|||
product:null, |
|||
project:null, |
|||
}, |
|||
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 },//查询中... |
|||
dateRanger:[], |
|||
maxTableHeight:300, |
|||
visible:false, |
|||
xmProductStateHiss:[], |
|||
|
|||
}//end return |
|||
},//end data |
|||
methods: { |
|||
listXmProductStateHis(){ |
|||
if(!this.filters.product){ |
|||
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; |
|||
}) |
|||
}, |
|||
open(params){ |
|||
this.visible=true; |
|||
this.filters.product=params.xmProduct |
|||
this.filters.project=params.xmProject |
|||
this.filters.Product=params.xmProduct |
|||
if(this.$refs['xmProductSelect'])this.$refs['xmProductSelect'].clearSelect(); |
|||
this.$nextTick(()=>{ |
|||
this.listXmProductStateHis(); |
|||
}) |
|||
|
|||
}, |
|||
drawCharts() { |
|||
this.myChart = this.$echarts.init(document.getElementById("questionDayTrend")); |
|||
this.myChart.setOption( |
|||
{ |
|||
legend: { |
|||
right: 40, |
|||
data: ['新提出','执行中','已解决','已关闭'] |
|||
}, |
|||
xAxis: { |
|||
type: 'category', |
|||
data: this.datesCpd |
|||
}, |
|||
yAxis: { |
|||
type: 'value' |
|||
}, |
|||
series: [ |
|||
{ |
|||
name:'新提出', |
|||
data: this.activeBugsCpd, |
|||
type: 'line', |
|||
smooth: true, |
|||
itemStyle: { |
|||
normal: { |
|||
// 折点颜色样式 |
|||
color: 'orange', |
|||
lineStyle: { |
|||
// 折线颜色样式 |
|||
color: 'orange' |
|||
} |
|||
} |
|||
}, |
|||
}, |
|||
|
|||
{ |
|||
name:'执行中', |
|||
data: this.confirmedBugsCpd, |
|||
type: 'line', |
|||
smooth: true, |
|||
itemStyle: { |
|||
normal: { |
|||
// 折点颜色样式 |
|||
color: 'blue', |
|||
lineStyle: { |
|||
// 折线颜色样式 |
|||
color: 'blue' |
|||
} |
|||
} |
|||
}, |
|||
}, |
|||
|
|||
{ |
|||
name:'已解决', |
|||
data: this.resolvedBugsCpd, |
|||
type: 'line', |
|||
smooth: true, |
|||
itemStyle: { |
|||
normal: { |
|||
// 折点颜色样式 |
|||
color: 'green', |
|||
lineStyle: { |
|||
// 折线颜色样式 |
|||
color: 'green' |
|||
} |
|||
} |
|||
}, |
|||
}, |
|||
|
|||
{ |
|||
name:'已关闭', |
|||
data: this.closedBugsCpd, |
|||
type: 'line', |
|||
smooth: true, |
|||
itemStyle: { |
|||
normal: { |
|||
// 折点颜色样式 |
|||
color: 'red', |
|||
lineStyle: { |
|||
// 折线颜色样式 |
|||
color: 'red' |
|||
} |
|||
} |
|||
}, |
|||
} |
|||
] |
|||
} |
|||
) |
|||
}, |
|||
|
|||
onProductSelected(product){ |
|||
this.filters.product=product |
|||
this.xmProductStateHiss=[]; |
|||
this.listXmProductStateHis(); |
|||
}, |
|||
|
|||
onProductClear(){ |
|||
this.filters.product=null |
|||
|
|||
this.xmProductStateHiss=[]; |
|||
|
|||
}, |
|||
},//end method |
|||
mounted() { |
|||
/** |
|||
initSimpleDicts('all',['demandSource','demandLvl','demandType','priority','menuStatus'] ).then(res=>{ |
|||
this.dicts=res.data.data; |
|||
}) |
|||
*/ |
|||
//this.charts(); |
|||
//this.drawCharts(); |
|||
|
|||
}//end mounted |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style scoped> |
|||
.image { |
|||
width: 100%; |
|||
display: block; |
|||
} |
|||
</style> |
|||
@ -0,0 +1,44 @@ |
|||
<template> |
|||
<section> |
|||
<el-row> |
|||
<question-sort ref="questionSort" :rpt-config-visible="rptConfigVisible" :group-by="'func_id'"/> |
|||
</el-row> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
|
|||
import questionSort from './questionSort' |
|||
import { mapGetters } from 'vuex' |
|||
import dayjs from 'dayjs' |
|||
|
|||
export default { |
|||
components: {questionSort}, |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo' |
|||
]), |
|||
}, |
|||
|
|||
watch: { |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
rptConfigVisible:false, |
|||
} |
|||
}, |
|||
|
|||
methods: { |
|||
|
|||
}, |
|||
|
|||
|
|||
mounted() { |
|||
|
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
</style> |
|||
@ -0,0 +1,44 @@ |
|||
<template> |
|||
<section> |
|||
<el-row> |
|||
<question-sort ref="questionSort" :rpt-config-visible="rptConfigVisible" :group-by="'handler_userid'"/> |
|||
</el-row> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
|
|||
import questionSort from './questionSort' |
|||
import { mapGetters } from 'vuex' |
|||
import dayjs from 'dayjs' |
|||
|
|||
export default { |
|||
components: {questionSort}, |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo' |
|||
]), |
|||
}, |
|||
|
|||
watch: { |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
rptConfigVisible:false, |
|||
} |
|||
}, |
|||
|
|||
methods: { |
|||
|
|||
}, |
|||
|
|||
|
|||
mounted() { |
|||
|
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
</style> |
|||
@ -0,0 +1,44 @@ |
|||
<template> |
|||
<section> |
|||
<el-row> |
|||
<question-sort ref="questionSort" :rpt-config-visible="rptConfigVisible" :group-by="'menu_id'"/> |
|||
</el-row> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
|
|||
import questionSort from './questionSort' |
|||
import { mapGetters } from 'vuex' |
|||
import dayjs from 'dayjs' |
|||
|
|||
export default { |
|||
components: {questionSort}, |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo' |
|||
]), |
|||
}, |
|||
|
|||
watch: { |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
rptConfigVisible:false, |
|||
} |
|||
}, |
|||
|
|||
methods: { |
|||
|
|||
}, |
|||
|
|||
|
|||
mounted() { |
|||
|
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue