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,