From ad2d7dd1fd6a1bc84f81626609b758661b4502ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sun, 29 Jan 2023 14:26:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A5=BC=E5=9B=BE=E5=9B=BE=E7=A4=BA=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xm/rpt/product/menuAgeDist.vue | 20 ++++++++++++++---- src/views/xm/rpt/product/menuAttDist.vue | 20 ++++++++++++++---- src/views/xm/rpt/product/questionAgeDist.vue | 20 ++++++++++++++---- src/views/xm/rpt/product/questionAttDist.vue | 21 +++++++++++++++---- .../xm/rpt/product/questionRetestDist.vue | 20 +++++++++++++----- src/views/xm/rpt/project/taskAgeDist.vue | 20 ++++++++++++++---- src/views/xm/rpt/project/taskAttDist.vue | 20 ++++++++++++++---- .../xm/rpt/testPlan/testCaseToPlanCalc.vue | 21 +++++++++---------- .../testPlan/testPlanCaseExecStatusDist.vue | 15 +++++++------ 9 files changed, 129 insertions(+), 48 deletions(-) diff --git a/src/views/xm/rpt/product/menuAgeDist.vue b/src/views/xm/rpt/product/menuAgeDist.vue index 38df2be3..f83fc6ff 100644 --- a/src/views/xm/rpt/product/menuAgeDist.vue +++ b/src/views/xm/rpt/product/menuAgeDist.vue @@ -157,10 +157,22 @@ title: { text: this.title, left: 'center' - }, + }, tooltip: { - trigger: 'item' + trigger: 'item', + formatter:'{b} {c}个 {d}%', }, + + toolbox: { + show: true, + right:"20px", + feature: { + dataView: { show: true, readOnly: false }, + saveAsImage: { show: true }, + } + }, + calculable: true, + legend: { top:'5%', left: 'center', @@ -180,8 +192,8 @@ }, label: { - show: true, - position: 'center' + show: true, + formatter:'{b} {c}个 {d}%', }, } ] diff --git a/src/views/xm/rpt/product/menuAttDist.vue b/src/views/xm/rpt/product/menuAttDist.vue index b879ce65..c75c1258 100644 --- a/src/views/xm/rpt/product/menuAttDist.vue +++ b/src/views/xm/rpt/product/menuAttDist.vue @@ -213,10 +213,22 @@ title: { text: this.title, left: 'center' - }, + }, tooltip: { - trigger: 'item' + trigger: 'item', + formatter:'{b} {c}个 {d}%', }, + + toolbox: { + show: true, + right:"20px", + feature: { + dataView: { show: true, readOnly: false }, + saveAsImage: { show: true }, + } + }, + calculable: true, + legend: { top:'5%', left: 'center', @@ -236,8 +248,8 @@ }, label: { - show: true, - position: 'center' + show: true, + formatter:'{b} {c}个 {d}%', }, } ] diff --git a/src/views/xm/rpt/product/questionAgeDist.vue b/src/views/xm/rpt/product/questionAgeDist.vue index 11067ad7..f4f9687f 100644 --- a/src/views/xm/rpt/product/questionAgeDist.vue +++ b/src/views/xm/rpt/product/questionAgeDist.vue @@ -187,10 +187,22 @@ title: { text: this.title, left: 'center' - }, + }, tooltip: { - trigger: 'item' + trigger: 'item', + formatter:'{b} {c}个 {d}%', }, + + toolbox: { + show: true, + right:"20px", + feature: { + dataView: { show: true, readOnly: false }, + saveAsImage: { show: true }, + } + }, + calculable: true, + legend: { top:'5%', left: 'center', @@ -210,8 +222,8 @@ }, label: { - show: true, - position: 'center' + show: true, + formatter:'{b} {c}个 {d}%', }, } ] diff --git a/src/views/xm/rpt/product/questionAttDist.vue b/src/views/xm/rpt/product/questionAttDist.vue index e635d7ae..15b4e919 100644 --- a/src/views/xm/rpt/product/questionAttDist.vue +++ b/src/views/xm/rpt/product/questionAttDist.vue @@ -252,13 +252,26 @@ this.myChart = this.$echarts.init(document.getElementById("xmQuestionAttDist")); this.myChart.setOption( { + title: { text: this.title, left: 'center' - }, + }, tooltip: { - trigger: 'item' + trigger: 'item', + formatter:'{b} {c}个 {d}%', }, + + toolbox: { + show: true, + right:"20px", + feature: { + dataView: { show: true, readOnly: false }, + saveAsImage: { show: true }, + } + }, + calculable: true, + legend: { top:'5%', left: 'center', @@ -278,8 +291,8 @@ }, label: { - show: true, - position: 'center' + show: true, + formatter:'{b} {c}个 {d}%', }, } ] diff --git a/src/views/xm/rpt/product/questionRetestDist.vue b/src/views/xm/rpt/product/questionRetestDist.vue index 0218ae31..6d1c0dac 100644 --- a/src/views/xm/rpt/product/questionRetestDist.vue +++ b/src/views/xm/rpt/product/questionRetestDist.vue @@ -221,12 +221,22 @@ title: { text: this.title, left: 'center' - }, + }, tooltip: { - trigger: 'item' + trigger: 'item', + formatter:'{b} {c}个 {d}%', }, - barMaxWidth: 100, + toolbox: { + show: true, + right:"20px", + feature: { + dataView: { show: true, readOnly: false }, + saveAsImage: { show: true }, + } + }, + calculable: true, + legend: { top:'5%', left: 'center', @@ -246,8 +256,8 @@ }, label: { - show: true, - position: 'center' + show: true, + formatter:'{b} {c}个 {d}%', }, } ] diff --git a/src/views/xm/rpt/project/taskAgeDist.vue b/src/views/xm/rpt/project/taskAgeDist.vue index 7015a150..f0f2a5d0 100644 --- a/src/views/xm/rpt/project/taskAgeDist.vue +++ b/src/views/xm/rpt/project/taskAgeDist.vue @@ -123,10 +123,22 @@ title: { text: this.title, left: 'center' - }, + }, tooltip: { - trigger: 'item' + trigger: 'item', + formatter:'{b} {c}个 {d}%', }, + + toolbox: { + show: true, + right:"20px", + feature: { + dataView: { show: true, readOnly: false }, + saveAsImage: { show: true }, + } + }, + calculable: true, + legend: { top:'5%', left: 'center', @@ -146,8 +158,8 @@ }, label: { - show: true, - position: 'center' + show: true, + formatter:'{b} {c}个 {d}%', }, } ] diff --git a/src/views/xm/rpt/project/taskAttDist.vue b/src/views/xm/rpt/project/taskAttDist.vue index c8aaad5a..0b77ede0 100644 --- a/src/views/xm/rpt/project/taskAttDist.vue +++ b/src/views/xm/rpt/project/taskAttDist.vue @@ -183,10 +183,22 @@ title: { text: this.title, left: 'center' - }, + }, tooltip: { - trigger: 'item' + trigger: 'item', + formatter:'{b} {c}个 {d}%', }, + + toolbox: { + show: true, + right:"20px", + feature: { + dataView: { show: true, readOnly: false }, + saveAsImage: { show: true }, + } + }, + calculable: true, + legend: { top:'5%', left: 'center', @@ -206,8 +218,8 @@ }, label: { - show: true, - position: 'center' + show: true, + formatter:'{b} {c}个 {d}%', }, } ] diff --git a/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue b/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue index 28f540fb..4ab6760b 100644 --- a/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue +++ b/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue @@ -161,11 +161,6 @@ text: this.title, left: 'center' }, - legend: { - top:'5%', - left: 'center', - data:this.legendCpd, - }, tooltip: { trigger: 'item', formatter:'{b} {c}个 {d}%', @@ -173,15 +168,19 @@ toolbox: { show: true, + right:"20px", feature: { - dataView: { show: true, readOnly: false }, - magicType: { show: true, type: ['line', 'bar'] }, - restore: { show: true }, - saveAsImage: { show: true } + dataView: { show: true, readOnly: false }, + saveAsImage: { show: true }, } - }, - + }, calculable: true, + + legend: { + top:'5%', + left: 'center', + data:this.legendCpd, + }, series: [ { type: 'pie', diff --git a/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue b/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue index 90da0c0c..44b1b785 100644 --- a/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue +++ b/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue @@ -153,7 +153,7 @@ title: { text: this.title, left: 'center' - }, + }, tooltip: { trigger: 'item', formatter:'{b} {c}个 {d}%', @@ -161,19 +161,18 @@ toolbox: { show: true, + right:"20px", feature: { - dataView: { show: true, readOnly: false }, - magicType: { show: true, type: ['line', 'bar'] }, - restore: { show: true }, - saveAsImage: { show: true } + dataView: { show: true, readOnly: false }, + saveAsImage: { show: true }, } - }, - + }, calculable: true, + legend: { top:'5%', left: 'center', - data:this.legendCpd, + data:this.legendCpd, }, series: [ {