From 7ce04341a5185c61b9019957d2e2c6873b553a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 2 Feb 2023 22:05:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xm/rpt/product/menuAgeDist.vue | 2 +- src/views/xm/rpt/product/menuAttDist.vue | 2 +- src/views/xm/rpt/product/questionAgeDist.vue | 2 +- src/views/xm/rpt/product/questionAttDist.vue | 18 +++++++++++++++++- .../xm/rpt/product/questionRetestDist.vue | 2 +- src/views/xm/rpt/project/taskAgeDist.vue | 2 +- src/views/xm/rpt/project/taskAttDist.vue | 2 +- .../xm/rpt/testPlan/testCaseToPlanCalc.vue | 2 +- 8 files changed, 24 insertions(+), 8 deletions(-) diff --git a/src/views/xm/rpt/product/menuAgeDist.vue b/src/views/xm/rpt/product/menuAgeDist.vue index d02d7d20..77c949a8 100644 --- a/src/views/xm/rpt/product/menuAgeDist.vue +++ b/src/views/xm/rpt/product/menuAgeDist.vue @@ -224,7 +224,7 @@ series: [ { type: 'pie', - radius: '50%', + radius: ['50%','70%'], data: this.xmMenuAgeDistsCpd, emphasis: { itemStyle: { diff --git a/src/views/xm/rpt/product/menuAttDist.vue b/src/views/xm/rpt/product/menuAttDist.vue index 2c2b204a..2dbc8d5c 100644 --- a/src/views/xm/rpt/product/menuAttDist.vue +++ b/src/views/xm/rpt/product/menuAttDist.vue @@ -281,7 +281,7 @@ series: [ { type: 'pie', - radius: '50%', + radius: ['50%','70%'], data: this.xmMenuAttDistsCpd, emphasis: { itemStyle: { diff --git a/src/views/xm/rpt/product/questionAgeDist.vue b/src/views/xm/rpt/product/questionAgeDist.vue index 9096069e..cb5d2438 100644 --- a/src/views/xm/rpt/product/questionAgeDist.vue +++ b/src/views/xm/rpt/product/questionAgeDist.vue @@ -253,7 +253,7 @@ series: [ { type: 'pie', - radius: '50%', + radius: ['50%','70%'], data: this.xmQuestionAgeDistsCpd, emphasis: { itemStyle: { diff --git a/src/views/xm/rpt/product/questionAttDist.vue b/src/views/xm/rpt/product/questionAttDist.vue index 039c5fcd..81bc695e 100644 --- a/src/views/xm/rpt/product/questionAttDist.vue +++ b/src/views/xm/rpt/product/questionAttDist.vue @@ -305,10 +305,26 @@ bottom: 'bottom', data:this.legendCpd, }, + graphic: { + type: 'text', + left: 'center', + top: 'center', + style: { + // text: '总数', + text: + '总数'+this.total , + + textAlign: 'center', + fill: '#333', + width: 30, + height: 30, + fontSize: 14 + } + }, series: [ { type: 'pie', - radius: '50%', + radius: ['50%','70%'], data: this.xmQuestionAttDistsCpd, emphasis: { itemStyle: { diff --git a/src/views/xm/rpt/product/questionRetestDist.vue b/src/views/xm/rpt/product/questionRetestDist.vue index 431a86bc..da21fd52 100644 --- a/src/views/xm/rpt/product/questionRetestDist.vue +++ b/src/views/xm/rpt/product/questionRetestDist.vue @@ -288,7 +288,7 @@ series: [ { type: 'pie', - radius: '50%', + radius: ['50%','70%'], data: this.xmQuestionRetestDistsCpd, emphasis: { itemStyle: { diff --git a/src/views/xm/rpt/project/taskAgeDist.vue b/src/views/xm/rpt/project/taskAgeDist.vue index 1004edc1..bed1f60e 100644 --- a/src/views/xm/rpt/project/taskAgeDist.vue +++ b/src/views/xm/rpt/project/taskAgeDist.vue @@ -198,7 +198,7 @@ series: [ { type: 'pie', - radius: '50%', + radius: ['50%','70%'], data: this.xmTaskAgeDistsCpd, emphasis: { itemStyle: { diff --git a/src/views/xm/rpt/project/taskAttDist.vue b/src/views/xm/rpt/project/taskAttDist.vue index 7a71a014..9dee40cb 100644 --- a/src/views/xm/rpt/project/taskAttDist.vue +++ b/src/views/xm/rpt/project/taskAttDist.vue @@ -258,7 +258,7 @@ series: [ { type: 'pie', - radius: '50%', + radius: ['50%','70%'], data: this.xmTaskAttDistsCpd, emphasis: { itemStyle: { diff --git a/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue b/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue index 0d1ba596..a1d7ba70 100644 --- a/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue +++ b/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue @@ -230,7 +230,7 @@ series: [ { type: 'pie', - radius: '50%', + radius: ['50%','70%'], data: this.xmTestCaseToPlanCalcListCpd, emphasis: { itemStyle: {