Browse Source

优化

master
陈裕财 3 years ago
parent
commit
385c42690b
  1. 16
      src/views/xm/core/xmTestPlan/rpt/biz/questionAgeDist.vue
  2. 16
      src/views/xm/core/xmTestPlan/rpt/biz/questionAttDist.vue
  3. 33
      src/views/xm/core/xmTestPlan/rpt/biz/questionSort.vue
  4. 16
      src/views/xm/core/xmTestPlan/rpt/biz/testPlanCaseExecStatusDist.vue
  5. 61
      src/views/xm/core/xmTestPlan/rpt/biz/testPlanCaseUserDist.vue

16
src/views/xm/core/xmTestPlan/rpt/biz/questionAgeDist.vue

@ -149,8 +149,20 @@
left: 'center'
},
tooltip: {
trigger: 'item'
trigger: 'item',
},
toolbox: {
show: true,
right:"20px",
feature: {
dataView: { show: true, readOnly: false },
saveAsImage: { show: true },
}
},
calculable: true,
legend: {
top:'5%',
left: 'center',
@ -171,7 +183,7 @@
label: {
show: true,
position: 'center'
},
}
]

16
src/views/xm/core/xmTestPlan/rpt/biz/questionAttDist.vue

@ -221,8 +221,20 @@
left: 'center'
},
tooltip: {
trigger: 'item'
trigger: 'item',
},
toolbox: {
show: true,
right:"20px",
feature: {
dataView: { show: true, readOnly: false },
saveAsImage: { show: true },
}
},
calculable: true,
legend: {
top:'5%',
left: 'center',
@ -243,7 +255,7 @@
label: {
show: true,
position: 'center'
},
}
]

33
src/views/xm/core/xmTestPlan/rpt/biz/questionSort.vue

@ -1,7 +1,6 @@
<template>
<section>
<el-row class="padding">
<span>{{compCfg?compCfg.name:'缺陷排行榜'}}</span>
<el-popover trigger="manual" v-model="conditionBtnVisible" style="float:right;" width="300">
<el-button slot="reference" icon="el-icon-more" @click="conditionBtnVisible=!conditionBtnVisible"></el-button>
<el-row>
@ -150,6 +149,27 @@
this.myChart = this.$echarts.init(document.getElementById(this.id));
this.myChart.setOption(
{
title: {
text: this.title,
left: 'left'
},
tooltip: {
trigger: 'axis',
},
barMaxWidth: 100,
toolbox: {
show: true,
right:"20px",
feature: {
dataView: { show: true, readOnly: false },
magicType: { show: true, type: ['line', 'bar'] },
saveAsImage: { show: true }
}
},
calculable: true,
xAxis: {
type: 'category',
data: this.legendCpd
@ -160,7 +180,16 @@
series: [
{
data: this.xmQuestionSortsCpd,
type: 'bar'
type: 'bar',
label:{
show: true,
},
markPoint: {
data: [
{ type: 'max', name: 'Max' },
{ type: 'min', name: 'Min' }
]
},
}
]
}

16
src/views/xm/core/xmTestPlan/rpt/biz/testPlanCaseExecStatusDist.vue

@ -110,8 +110,20 @@
left: 'center'
},
tooltip: {
trigger: 'item'
trigger: 'item',
},
toolbox: {
show: true,
right:"20px",
feature: {
dataView: { show: true, readOnly: false },
saveAsImage: { show: true },
}
},
calculable: true,
legend: {
top:'5%',
left: 'center',
@ -132,7 +144,7 @@
label: {
show: true,
position: 'center'
},
}
]

61
src/views/xm/core/xmTestPlan/rpt/biz/testPlanCaseUserDist.vue

@ -103,32 +103,65 @@
text: this.title,
left: 'center'
},
tooltip: {
trigger: 'item'
trigger: 'item',
},
barMaxWidth: 100,
toolbox: {
show: true,
right:"20px",
feature: {
dataView: { show: true, readOnly: false },
magicType: { show: true, type: ['line', 'bar'] },
saveAsImage: { show: true }
}
},
calculable: true,
legend: {
top:'5%',
left: 'center',
data:this.legendCpd,
data: ['已执行', '未执行']
},
xAxis: {
type: 'category',
data: this.legendCpd
},
yAxis: {
type: 'value'
},
series: [
{
type: 'pie',
radius: '50%',
data: this.xmTestPlanCaseUserDistsCpd,
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
name: '已执行',
type: 'bar',
data: this.hadExecCpd,
label:{
show: true,
},
markPoint: {
data: [
{ type: 'max', name: 'Max' },
{ type: 'min', name: 'Min' }
]
},
},
{
name: '未执行',
type: 'bar',
data: this.notExecCpd,
label:{
show: true,
position: 'center'
},
}
markPoint: {
data: [
{ type: 'max', name: 'Max' },
{ type: 'min', name: 'Min' }
]
},
},
]
}
)

Loading…
Cancel
Save