From 3e386b5d646dd1ab2d0f81f3a212efb6502a91e6 Mon Sep 17 00:00:00 2001 From: A <1445840182@qq.com> Date: Thu, 14 Jul 2022 23:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E6=8E=89=E5=9B=BE=E4=BE=8B=E5=85=B7?= =?UTF-8?q?=E4=BD=93=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/echartsPositionPie.vue | 18 +++++++++--------- src/components/echartsTaskPie.vue | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/components/echartsPositionPie.vue b/src/components/echartsPositionPie.vue index 630d3aa..bcd8c65 100644 --- a/src/components/echartsPositionPie.vue +++ b/src/components/echartsPositionPie.vue @@ -63,9 +63,9 @@ export default { console.log(isAllZero, "isAllZero") let option = null if (isAllZero == true) { - for (let i = 0; i < this.dataList.length; i++) { - this.dataList[i].name = this.dataList[i].name + ":" + this.dataList[i].value + "人" - } + // for (let i = 0; i < this.dataList.length; i++) { + // this.dataList[i].name = this.dataList[i].name + ":" + this.dataList[i].value + "人" + // } console.log(this.dataList, "this.dataListgroup") option = { tooltip: { @@ -87,7 +87,7 @@ export default { { name: '统计', type: 'pie', - center: ['35%', '55%'], + center: ['45%', '55%'], // radius: ['40%', '70%'], avoidLabelOverlap: false, label: { @@ -115,9 +115,9 @@ export default { ] }; } else { - for (let i = 0; i < this.dataList.length; i++) { - this.dataList[i].name = this.dataList[i].name + ":" + this.dataList[i].value + "人" - } + // for (let i = 0; i < this.dataList.length; i++) { + // this.dataList[i].name = this.dataList[i].name + ":" + this.dataList[i].value + "人" + // } option = { tooltip: { trigger: 'item' @@ -126,7 +126,7 @@ export default { { name: '统计', type: 'pie', - center: ['35%', '55%'], + center: ['45%', '55%'], // radius: ['40%', '70%'], avoidLabelOverlap: false, label: { @@ -155,7 +155,7 @@ export default { type: 'scroll', orient: 'vertical', // right: 10, - left: '59%', + left: '80%', // right:'50%', top: 20, bottom: 20, diff --git a/src/components/echartsTaskPie.vue b/src/components/echartsTaskPie.vue index 2825609..c98a95f 100644 --- a/src/components/echartsTaskPie.vue +++ b/src/components/echartsTaskPie.vue @@ -63,9 +63,9 @@ export default { console.log(isAllZero, "isAllZero") let option = null if (isAllZero == true) { - for (let i = 0; i < this.dataList.length; i++) { - this.dataList[i].name = this.dataList[i].name + " 已完成工作项:" + this.dataList[i].value + "项" - } + // for (let i = 0; i < this.dataList.length; i++) { + // this.dataList[i].name = this.dataList[i].name + " 已完成工作项:" + this.dataList[i].value + "项" + // } console.log(this.dataList, "this.dataListgroup") option = { tooltip: { @@ -87,7 +87,7 @@ export default { { name: '统计', type: 'pie', - center: ['35%', '55%'], + center: ['45%', '55%'], // radius: ['40%', '70%'], avoidLabelOverlap: false, label: { @@ -115,9 +115,9 @@ export default { ] }; } else { - for (let i = 0; i < this.dataList.length; i++) { - this.dataList[i].name = this.dataList[i].name + " 已完成工作项:" + this.dataList[i].value + "项" - } + // for (let i = 0; i < this.dataList.length; i++) { + // this.dataList[i].name = this.dataList[i].name + " 已完成工作项:" + this.dataList[i].value + "项" + // } option = { tooltip: { trigger: 'item' @@ -126,7 +126,7 @@ export default { { name: '统计', type: 'pie', - center: ['35%', '55%'], + center: ['45%', '55%'], // radius: ['40%', '70%'], avoidLabelOverlap: false, label: { @@ -155,7 +155,7 @@ export default { type: 'scroll', orient: 'vertical', // right: 10, - left: '59%', + left: '80%', // right:'50%', top: 20, bottom: 20,