diff --git a/src/views/xm/rpt/branch/branchWorkItemDayList.vue b/src/views/xm/rpt/branch/branchWorkItemDayList.vue index d870ba6d..ee323c18 100644 --- a/src/views/xm/rpt/branch/branchWorkItemDayList.vue +++ b/src/views/xm/rpt/branch/branchWorkItemDayList.vue @@ -145,13 +145,28 @@ } }); this.myChart.setOption({ + title: { - text: '工作项分布', - }, + text: this.title, + left: 'center' + }, + tooltip: { - trigger: 'axis', - showContent: false + trigger: 'item', + formatter:'{b} {c}次', + }, + 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, legend: { }, diff --git a/src/views/xm/rpt/branch/menuDayTrend.vue b/src/views/xm/rpt/branch/menuDayTrend.vue index e074a01b..76831256 100644 --- a/src/views/xm/rpt/branch/menuDayTrend.vue +++ b/src/views/xm/rpt/branch/menuDayTrend.vue @@ -151,7 +151,28 @@ drawCharts() { this.myChart = this.$echarts.init(document.getElementById("iterationMenuDayTrend")); this.myChart.setOption( - { + { + title: { + text: this.title, + left: 'center' + }, + + tooltip: { + trigger: 'item', + formatter:'{b} {c}次', + }, + 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, legend: { right: 40, data: ['未开始故事数','执行中故事数','已完成故事数','已关闭故事数'] diff --git a/src/views/xm/rpt/branch/questionDayTrend.vue b/src/views/xm/rpt/branch/questionDayTrend.vue index 6bc6116c..7ec0f158 100644 --- a/src/views/xm/rpt/branch/questionDayTrend.vue +++ b/src/views/xm/rpt/branch/questionDayTrend.vue @@ -152,7 +152,28 @@ drawCharts() { this.myChart = this.$echarts.init(document.getElementById("iterationQuestionDayTrend")); this.myChart.setOption( - { + { + title: { + text: this.title, + left: 'center' + }, + + tooltip: { + trigger: 'item', + formatter:'{b} {c}次', + }, + 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, legend: { right: 40, data: ['新提出','执行中','已解决','已关闭'] diff --git a/src/views/xm/rpt/iteration/IterationWorkItemDayList.vue b/src/views/xm/rpt/iteration/IterationWorkItemDayList.vue index 2b4afa11..47bdedf8 100644 --- a/src/views/xm/rpt/iteration/IterationWorkItemDayList.vue +++ b/src/views/xm/rpt/iteration/IterationWorkItemDayList.vue @@ -165,14 +165,31 @@ } }); this.myChart.setOption({ + title: { - text: '工作项分布', - }, + text: this.title, + left: 'center' + }, + tooltip: { - trigger: 'axis', - showContent: false + trigger: 'item', + formatter:'{b} {c}次', + }, + 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, legend: { + top:'5%', + left: 'center', }, dataset: { diff --git a/src/views/xm/rpt/iteration/burnout.vue b/src/views/xm/rpt/iteration/burnout.vue index 459b7bcb..2af17dbe 100644 --- a/src/views/xm/rpt/iteration/burnout.vue +++ b/src/views/xm/rpt/iteration/burnout.vue @@ -192,7 +192,8 @@ trigger: 'axis' }, legend: { - right: 40, + top:'5%', + left: 'center', data: ['理想线','预估剩余工时', '剩余工时'] }, xAxis: { diff --git a/src/views/xm/rpt/iteration/menuDayAccumulate.vue b/src/views/xm/rpt/iteration/menuDayAccumulate.vue index fc7a95a8..5c0587de 100644 --- a/src/views/xm/rpt/iteration/menuDayAccumulate.vue +++ b/src/views/xm/rpt/iteration/menuDayAccumulate.vue @@ -187,6 +187,8 @@ } }, legend: { + top:'5%', + left: 'center', data: ['未开始', '执行中', '已完成', '已关闭'] }, grid: { diff --git a/src/views/xm/rpt/iteration/menuDayTrend.vue b/src/views/xm/rpt/iteration/menuDayTrend.vue index bd43e796..e93b475d 100644 --- a/src/views/xm/rpt/iteration/menuDayTrend.vue +++ b/src/views/xm/rpt/iteration/menuDayTrend.vue @@ -173,9 +173,31 @@ drawCharts() { this.myChart = this.$echarts.init(document.getElementById("iterationMenuDayTrend")); this.myChart.setOption( - { + { + title: { + text: this.title, + left: 'center' + }, + + tooltip: { + trigger: 'item', + formatter:'{b} {c}次', + }, + 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, legend: { - right: 40, + top:'5%', + left: 'center', data: ['未开始故事数','执行中故事数','已完成故事数','已关闭故事数'] }, xAxis: { diff --git a/src/views/xm/rpt/iteration/questionDayAccumulate.vue b/src/views/xm/rpt/iteration/questionDayAccumulate.vue index ca8690f5..41d86ec7 100644 --- a/src/views/xm/rpt/iteration/questionDayAccumulate.vue +++ b/src/views/xm/rpt/iteration/questionDayAccumulate.vue @@ -185,6 +185,8 @@ } }, legend: { + top:'5%', + left: 'center', data: ['新提出', '执行中', '已解决', '已关闭'] }, grid: { diff --git a/src/views/xm/rpt/iteration/questionDayTrend.vue b/src/views/xm/rpt/iteration/questionDayTrend.vue index f030ff9f..20fcde8d 100644 --- a/src/views/xm/rpt/iteration/questionDayTrend.vue +++ b/src/views/xm/rpt/iteration/questionDayTrend.vue @@ -172,9 +172,31 @@ drawCharts() { this.myChart = this.$echarts.init(document.getElementById("iterationQuestionDayTrend")); this.myChart.setOption( - { + { + title: { + text: this.title, + left: 'center' + }, + + tooltip: { + trigger: 'item', + formatter:'{b} {c}次', + }, + 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, legend: { - right: 40, + top:'5%', + left: 'center', data: ['新提出','执行中','已解决','已关闭'] }, xAxis: { diff --git a/src/views/xm/rpt/product/menuDayAccumulate.vue b/src/views/xm/rpt/product/menuDayAccumulate.vue index 594b937a..ef903891 100644 --- a/src/views/xm/rpt/product/menuDayAccumulate.vue +++ b/src/views/xm/rpt/product/menuDayAccumulate.vue @@ -175,6 +175,8 @@ } }, legend: { + top:'5%', + left: 'center', data: ['未开始', '执行中', '已完成', '已关闭'] }, grid: { diff --git a/src/views/xm/rpt/product/menuDayTrend.vue b/src/views/xm/rpt/product/menuDayTrend.vue index 60d251f6..7b519cb0 100644 --- a/src/views/xm/rpt/product/menuDayTrend.vue +++ b/src/views/xm/rpt/product/menuDayTrend.vue @@ -163,10 +163,30 @@ this.myChart = this.$echarts.init(document.getElementById("menuDayTrend")); this.myChart.setOption( { + title: { + text: this.title, + left: 'center' + }, + tooltip: { + trigger: 'item', + formatter:'{b} {c}次', + }, 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, legend: { - right: 40, + top:'5%', + left: 'center', data: ['未开始故事数','执行中故事数','已完成故事数','已关闭故事数'] }, xAxis: { diff --git a/src/views/xm/rpt/product/menuSort.vue b/src/views/xm/rpt/product/menuSort.vue index 5add491d..ede2549b 100644 --- a/src/views/xm/rpt/product/menuSort.vue +++ b/src/views/xm/rpt/product/menuSort.vue @@ -169,9 +169,28 @@ drawCharts() { this.myChart = this.$echarts.init(document.getElementById("xmMenuSort")); this.myChart.setOption( - { + { + title: { + text: this.title, + left: 'center' + }, + tooltip: { + trigger: 'item', + formatter:'{b} {c}次', + }, 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, xAxis: { type: 'category', data: this.legendCpd diff --git a/src/views/xm/rpt/product/productWorkItemDayList.vue b/src/views/xm/rpt/product/productWorkItemDayList.vue index 8a0e4a5a..6cb63d6d 100644 --- a/src/views/xm/rpt/product/productWorkItemDayList.vue +++ b/src/views/xm/rpt/product/productWorkItemDayList.vue @@ -157,14 +157,31 @@ } }); this.myChart.setOption({ - title: { - text: '工作项分布', - }, + + title: { + text: this.title, + left: 'center' + }, + tooltip: { - trigger: 'axis', - showContent: false + trigger: 'item', + formatter:'{b} {c}次', }, + 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, legend: { + top:'5%', + left: 'center', }, dataset: { diff --git a/src/views/xm/rpt/product/questionDayAccumulate.vue b/src/views/xm/rpt/product/questionDayAccumulate.vue index 785045e7..a059db19 100644 --- a/src/views/xm/rpt/product/questionDayAccumulate.vue +++ b/src/views/xm/rpt/product/questionDayAccumulate.vue @@ -177,6 +177,8 @@ } }, legend: { + top:'5%', + left: 'center', data: ['新提出', '执行中', '已解决', '已关闭'] }, grid: { diff --git a/src/views/xm/rpt/product/questionDayTrend.vue b/src/views/xm/rpt/product/questionDayTrend.vue index 2c81a12f..561a2ff0 100644 --- a/src/views/xm/rpt/product/questionDayTrend.vue +++ b/src/views/xm/rpt/product/questionDayTrend.vue @@ -163,9 +163,31 @@ drawCharts() { this.myChart = this.$echarts.init(document.getElementById("questionDayTrend")); this.myChart.setOption( - { + { + title: { + text: this.title, + left: 'center' + }, + + tooltip: { + trigger: 'item', + formatter:'{b} {c}次', + }, + 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, legend: { - right: 40, + top:'5%', + left: 'center', data: ['新提出','执行中','已解决','已关闭'] }, xAxis: { diff --git a/src/views/xm/rpt/product/questionSort.vue b/src/views/xm/rpt/product/questionSort.vue index 7657600e..3b704634 100644 --- a/src/views/xm/rpt/product/questionSort.vue +++ b/src/views/xm/rpt/product/questionSort.vue @@ -210,9 +210,28 @@ drawCharts() { this.myChart = this.$echarts.init(document.getElementById("xmQuestionSort")); this.myChart.setOption( - { + { + title: { + text: this.title, + left: 'center' + }, + tooltip: { + trigger: 'item', + formatter:'{b} {c}次', + }, 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, xAxis: { type: 'category', data: this.legendCpd diff --git a/src/views/xm/rpt/project/projectWorkItemDayList.vue b/src/views/xm/rpt/project/projectWorkItemDayList.vue index 86948c12..86b8d957 100644 --- a/src/views/xm/rpt/project/projectWorkItemDayList.vue +++ b/src/views/xm/rpt/project/projectWorkItemDayList.vue @@ -135,16 +135,31 @@ } }); this.myChart.setOption({ - title: { - text: '工作项分布', - }, + + title: { + text: this.title, + left: 'center' + }, + tooltip: { - trigger: 'axis', - showContent: false + trigger: 'item', + formatter:'{b} {c}次', }, - 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, legend: { + top:'5%', + left: 'center', }, dataset: { diff --git a/src/views/xm/rpt/project/projectWorkloadSetDayList.vue b/src/views/xm/rpt/project/projectWorkloadSetDayList.vue index 3d59de92..32298232 100644 --- a/src/views/xm/rpt/project/projectWorkloadSetDayList.vue +++ b/src/views/xm/rpt/project/projectWorkloadSetDayList.vue @@ -153,17 +153,31 @@ }); } }); - this.myChart.setOption({ + this.myChart.setOption({ title: { - text: '工作项分布', - }, + text: this.title, + left: 'center' + }, + tooltip: { - trigger: 'axis', - showContent: false + trigger: 'item', + formatter:'{b} {c}次', }, - 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, legend: { + top:'5%', + left: 'center', }, dataset: { diff --git a/src/views/xm/rpt/project/projectWorkloadSetMonthList.vue b/src/views/xm/rpt/project/projectWorkloadSetMonthList.vue index 912aeb1f..df9a818d 100644 --- a/src/views/xm/rpt/project/projectWorkloadSetMonthList.vue +++ b/src/views/xm/rpt/project/projectWorkloadSetMonthList.vue @@ -153,17 +153,31 @@ }); } }); - this.myChart.setOption({ + this.myChart.setOption({ title: { - text: '工作项分布', - }, + text: this.title, + left: 'center' + }, + tooltip: { - trigger: 'axis', - showContent: false + trigger: 'item', + formatter:'{b} {c}次', }, - 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, legend: { + top:'5%', + left: 'center', }, dataset: { diff --git a/src/views/xm/rpt/project/taskDayTrend.vue b/src/views/xm/rpt/project/taskDayTrend.vue index 18a5b113..64eb290b 100644 --- a/src/views/xm/rpt/project/taskDayTrend.vue +++ b/src/views/xm/rpt/project/taskDayTrend.vue @@ -139,11 +139,31 @@ drawCharts() { this.myChart = this.$echarts.init(document.getElementById("taskDayTrend")); this.myChart.setOption( - { + { + title: { + text: this.title, + left: 'center' + }, + tooltip: { + trigger: 'item', + formatter:'{b} {c}次', + }, 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, legend: { - right: 40, + top:'5%', + left: 'center', data: ['待领取','执行中','已完成','已结算','已关闭'] }, xAxis: { diff --git a/src/views/xm/rpt/project/taskSort.vue b/src/views/xm/rpt/project/taskSort.vue index 13d04573..b3dd464d 100644 --- a/src/views/xm/rpt/project/taskSort.vue +++ b/src/views/xm/rpt/project/taskSort.vue @@ -139,9 +139,28 @@ drawCharts() { this.myChart = this.$echarts.init(document.getElementById("xmTaskSort")); this.myChart.setOption( - { + { + title: { + text: this.title, + left: 'center' + }, + tooltip: { + trigger: 'item', + formatter:'{b} {c}次', + }, 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, xAxis: { type: 'category', data: this.legendCpd diff --git a/src/views/xm/rpt/testPlan/testDayTimesCalc.vue b/src/views/xm/rpt/testPlan/testDayTimesCalc.vue index 372c63cf..8e0ce81a 100644 --- a/src/views/xm/rpt/testPlan/testDayTimesCalc.vue +++ b/src/views/xm/rpt/testPlan/testDayTimesCalc.vue @@ -192,11 +192,6 @@ text: this.title, left: 'center' }, - legend: { - top:'5%', - left: 'center', - data: ['次数'] - }, tooltip: { trigger: 'item', @@ -215,6 +210,11 @@ calculable: true, + legend: { + top:'5%', + left: 'center', + data: ['次数'] + }, xAxis: { type: 'category', data: this.datesCpd diff --git a/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue b/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue index 12460c07..318d2508 100644 --- a/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue +++ b/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue @@ -167,17 +167,17 @@ drawCharts() { this.myChart = this.$echarts.init(document.getElementById("testPlanCaseUserDist")); this.myChart.setOption( - { + { title: { - text: '测试用例执行结果数量分布', - subtext: '' - }, + text: this.title, + left: 'center' + }, + tooltip: { - trigger: 'axis' - }, - legend: { - data: ['已执行', '未执行'] + trigger: 'item', + formatter:'{b} {c}次', }, + barMaxWidth: 100, toolbox: { show: true, feature: { @@ -186,9 +186,15 @@ restore: { show: true }, saveAsImage: { show: true } } - }, - barMaxWidth: 100, + }, + calculable: true, + + legend: { + top:'5%', + left: 'center', + data: ['已执行', '未执行'] + }, xAxis: { type: 'category', data: this.legendCpd