From 53f66d4c13550f3ca031b9a9536e0f129967c9cc Mon Sep 17 00:00:00 2001 From: wangxi <982339955@qq.com> Date: Mon, 9 Aug 2021 15:53:04 +0800 Subject: [PATCH] =?UTF-8?q?[mod]=E9=A5=BC=E7=8A=B6=E5=9B=BE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moduleCom/educationalWisdom/utils/PieEcharts.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/educationalWisdom/utils/PieEcharts.vue b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/educationalWisdom/utils/PieEcharts.vue index 72cfb82..61ebac7 100644 --- a/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/educationalWisdom/utils/PieEcharts.vue +++ b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/moduleCom/educationalWisdom/utils/PieEcharts.vue @@ -39,6 +39,11 @@ type: String, default: '' }, + // 判断饼状环形(true-环,false-饼) + isRing: { + type: Boolean, + default: false + }, // 扇形区域数据 opinionData: { type: Array, @@ -53,6 +58,7 @@ } }, mounted(){ + console.log('this.opinion',this.opinion) this.$nextTick(function() { this.drawPie('myChart') }) @@ -85,8 +91,8 @@ { name:this.seriesName, // 提示框标题 type: 'pie', - radius : '65%', - center: ['50%', '50%'], + radius :this.isRing?['40%','65%']: '50%', + center: ['50%', '40%'], selectedMode: 'single', data:this.opinionData, // 扇形区域数据 itemStyle: {