Browse Source

优化报表

master
陈裕财 3 years ago
parent
commit
73576c5851
  1. 2
      src/views/xm/rpt/product/menuDayTrend.vue
  2. 2
      src/views/xm/rpt/product/menuSort.vue
  3. 2
      src/views/xm/rpt/product/questionRetestDist.vue
  4. 2
      src/views/xm/rpt/product/questionSort.vue
  5. 2
      src/views/xm/rpt/project/projectWorkItemDayList.vue
  6. 2
      src/views/xm/rpt/project/projectWorkloadSetDayList.vue
  7. 2
      src/views/xm/rpt/project/projectWorkloadSetMonthList.vue
  8. 2
      src/views/xm/rpt/project/taskDayAccumulate.vue
  9. 2
      src/views/xm/rpt/project/taskDayTrend.vue
  10. 2
      src/views/xm/rpt/project/taskSort.vue
  11. 25
      src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue
  12. 36
      src/views/xm/rpt/testPlan/testDayTimesCalc.vue
  13. 21
      src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue
  14. 48
      src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue

2
src/views/xm/rpt/product/menuDayTrend.vue

@ -162,6 +162,8 @@
this.myChart = this.$echarts.init(document.getElementById("menuDayTrend"));
this.myChart.setOption(
{
barMaxWidth: 100,
legend: {
right: 40,
data: ['未开始故事数','执行中故事数','已完成故事数','已关闭故事数']

2
src/views/xm/rpt/product/menuSort.vue

@ -170,6 +170,8 @@
this.myChart = this.$echarts.init(document.getElementById("xmMenuSort"));
this.myChart.setOption(
{
barMaxWidth: 100,
xAxis: {
type: 'category',
data: this.legendCpd

2
src/views/xm/rpt/product/questionRetestDist.vue

@ -227,6 +227,8 @@
tooltip: {
trigger: 'item'
},
barMaxWidth: 100,
legend: {
top:'5%',
left: 'center',

2
src/views/xm/rpt/product/questionSort.vue

@ -209,6 +209,8 @@
this.myChart = this.$echarts.init(document.getElementById("xmQuestionSort"));
this.myChart.setOption(
{
barMaxWidth: 100,
xAxis: {
type: 'category',
data: this.legendCpd

2
src/views/xm/rpt/project/projectWorkItemDayList.vue

@ -143,6 +143,8 @@
trigger: 'axis',
showContent: false
},
barMaxWidth: 100,
legend: {
},

2
src/views/xm/rpt/project/projectWorkloadSetDayList.vue

@ -162,6 +162,8 @@
trigger: 'axis',
showContent: false
},
barMaxWidth: 100,
legend: {
},

2
src/views/xm/rpt/project/projectWorkloadSetMonthList.vue

@ -162,6 +162,8 @@
trigger: 'axis',
showContent: false
},
barMaxWidth: 100,
legend: {
},

2
src/views/xm/rpt/project/taskDayAccumulate.vue

@ -153,6 +153,8 @@
}
}
},
barMaxWidth: 100,
legend: {
data: ['未开始', '执行中', '已完成', '已关闭']
},

2
src/views/xm/rpt/project/taskDayTrend.vue

@ -141,6 +141,8 @@
this.myChart = this.$echarts.init(document.getElementById("taskDayTrend"));
this.myChart.setOption(
{
barMaxWidth: 100,
legend: {
right: 40,
data: ['待领取','执行中','已完成','已结算','已关闭']

2
src/views/xm/rpt/project/taskSort.vue

@ -141,6 +141,8 @@
this.myChart = this.$echarts.init(document.getElementById("xmTaskSort"));
this.myChart.setOption(
{
barMaxWidth: 100,
xAxis: {
type: 'category',
data: this.legendCpd

25
src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue

@ -161,15 +161,28 @@
title: {
text: this.title,
left: 'center'
},
tooltip: {
trigger: 'item'
},
},
legend: {
top:'5%',
left: 'center',
data:this.legendCpd,
},
tooltip: {
trigger: 'item',
formatter:'{b} {c}个 {d}%',
},
toolbox: {
show: true,
feature: {
dataView: { show: true, readOnly: false },
magicType: { show: true, type: ['line', 'bar'] },
restore: { show: true },
saveAsImage: { show: true }
}
},
calculable: true,
series: [
{
type: 'pie',
@ -184,8 +197,8 @@
},
label: {
show: true,
position: 'center'
show: true,
formatter:'{b} {c}个 {d}%',
},
}
]

36
src/views/xm/rpt/testPlan/testDayTimesCalc.vue

@ -190,9 +190,19 @@
this.myChart = this.$echarts.init(document.getElementById("testDayTimesCalc"));
this.myChart.setOption(
{
legend: {
right: 40,
data: ['新提出','执行中','已解决','已关闭']
title: {
text: this.dialogTitle,
left: 'center'
},
legend: {
top:'5%',
left: 'center',
data: ['次数']
},
tooltip: {
trigger: 'item',
formatter:'{b} {c}次',
},
xAxis: {
type: 'category',
@ -201,12 +211,30 @@
yAxis: {
type: 'value'
},
barMaxWidth: 100,
toolbox: {
show: true,
feature: {
dataView: { show: true, readOnly: false },
magicType: { show: true, type: ['line', 'bar'] },
restore: { show: true },
saveAsImage: { show: true }
}
},
calculable: true,
series: [
{
name:'已执行',
name:'次数',
data: this.testDayTimesCpd,
type: 'bar',
smooth: true,
markPoint: {
data: [
{ type: 'max', name: 'Max' },
{ type: 'min', name: 'Min' }
]
},
}
]
}

21
src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue

@ -156,12 +156,25 @@
left: 'center'
},
tooltip: {
trigger: 'item'
trigger: 'item',
formatter:'{b} {c}个 {d}%',
},
toolbox: {
show: true,
feature: {
dataView: { show: true, readOnly: false },
magicType: { show: true, type: ['line', 'bar'] },
restore: { show: true },
saveAsImage: { show: true }
}
},
calculable: true,
legend: {
top:'5%',
left: 'center',
data:this.legendCpd,
data:this.legendCpd,
},
series: [
{
@ -177,8 +190,8 @@
},
label: {
show: true,
position: 'center'
show: true,
formatter:'{b} {c}个 {d}%',
},
}
]

48
src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue

@ -169,6 +169,27 @@
this.myChart = this.$echarts.init(document.getElementById("testPlanCaseUserDist"));
this.myChart.setOption(
{
title: {
text: '测试用例执行结果数量分布',
subtext: ''
},
tooltip: {
trigger: 'axis'
},
legend: {
data: ['已执行', '未执行']
},
toolbox: {
show: true,
feature: {
dataView: { show: true, readOnly: false },
magicType: { show: true, type: ['line', 'bar'] },
restore: { show: true },
saveAsImage: { show: true }
}
},
barMaxWidth: 100,
calculable: true,
xAxis: {
type: 'category',
data: this.legendCpd
@ -179,20 +200,25 @@
series: [
{
name: '已执行',
type: 'bar',
barGap: 0,
emphasis: {
focus: 'series'
},
data: this.hadExecCpd
type: 'bar',
data: this.hadExecCpd,
markPoint: {
data: [
{ type: 'max', name: 'Max' },
{ type: 'min', name: 'Min' }
]
},
},
{
name: '未执行',
type: 'bar',
emphasis: {
focus: 'series'
},
data: this.notExecCpd
type: 'bar',
data: this.notExecCpd,
markPoint: {
data: [
{ type: 'max', name: 'Max' },
{ type: 'min', name: 'Min' }
]
},
},
]
}

Loading…
Cancel
Save