From 4196de042766b4685016b1d997673dcd16e4807b Mon Sep 17 00:00:00 2001 From: chentaiyu Date: Tue, 20 Jul 2021 10:04:59 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E3=80=81=E4=BA=A7=E5=93=81=E3=80=81=E8=BF=AD=E4=BB=A3=E5=85=B3?= =?UTF-8?q?=E8=81=94=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xm/core/xmProduct/XmProductOverview.vue | 78 +++++++------------ .../xm/core/xmProject/XmProjectOverview.vue | 78 +++++++------------ 2 files changed, 60 insertions(+), 96 deletions(-) diff --git a/src/views/xm/core/xmProduct/XmProductOverview.vue b/src/views/xm/core/xmProduct/XmProductOverview.vue index 08c04197..af80e30b 100644 --- a/src/views/xm/core/xmProduct/XmProductOverview.vue +++ b/src/views/xm/core/xmProduct/XmProductOverview.vue @@ -206,7 +206,7 @@ 产品相关联项目与迭代数
-
+
@@ -449,57 +449,39 @@ export default { let projectAndIteration = this.$echarts.init(document.getElementById("projectAndIteration")); let option = { tooltip: { - trigger: 'item', - formatter: '{b} :
{c} ({d}%)' + trigger: 'axis', + formatter: '{b} : {c}', + axisPointer: { // 坐标轴指示器,坐标轴触发有效 + type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' + }, }, - legend: { - bottom: 10, - left: 'center', + yAxis: { + type: 'category', + data: ['项目数', '迭代数'] }, - series: [ - { - center:['55%','40%'],//饼图位置 - type: 'pie', - radius: '60%',//饼图半径大小 - label:{ //饼图图形上的文本标签 - normal:{ - show:true, - position:'outer', //标签的位置:外部 - textStyle : { - fontWeight : 100 , - fontSize: document.body.clientWidth / 120, //标签字体大小 - color: "#000000" - }, - formatter:'{b}\n{c}({d}%)',//b:name,c:value,d:占比 - alignTo:'edge', - margin:10 - } - }, - data: [ - {value: this.xmProduct.iterationCnt, - itemStyle: { - normal:{ - color: '#EE6666' - } - }, - name: '迭代数'}, - {value: this.xmProduct.projectCnt, - itemStyle: { - normal:{ - color: '#F4A460' - } - }, - name: '项目数'}, - ], - emphasis: { - itemStyle: { - shadowBlur: 10, - shadowOffsetX: 0, - shadowColor: 'rgba(0, 0, 0, 0.5)' - } + xAxis: { + type: 'value' + }, + series: [{ + label: { + normal:{ + show: true, + position: 'inside', + color:'#000000', + } + }, + data: [this.xmProduct.projectCnt, this.xmProduct.iterationCnt], + type: 'bar', + showBackground: true, + itemStyle: { + normal:{ + color: '#99CCFF' } + }, + backgroundStyle: { + color: '#FFFFFF' } - ] + }] }; // 绘制图表 diff --git a/src/views/xm/core/xmProject/XmProjectOverview.vue b/src/views/xm/core/xmProject/XmProjectOverview.vue index a9b88623..92ea811a 100644 --- a/src/views/xm/core/xmProject/XmProjectOverview.vue +++ b/src/views/xm/core/xmProject/XmProjectOverview.vue @@ -239,7 +239,7 @@ 所含产品和迭代情况
-
+
@@ -713,57 +713,39 @@ export default { let iterationAndProduct = this.$echarts.init(document.getElementById("iterationAndProduct")); let option = { tooltip: { - trigger: 'item', - formatter: '{b} :
{c} ({d}%)' + trigger: 'axis', + formatter: '{b} : {c}', + axisPointer: { // 坐标轴指示器,坐标轴触发有效 + type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' + }, }, - legend: { - bottom: 10, - left: 'center', + yAxis: { + type: 'category', + data: ['产品数', '迭代数'] }, - series: [ - { - center:['55%','40%'],//饼图位置 - type: 'pie', - radius: '60%',//饼图半径大小 - label:{ //饼图图形上的文本标签 - normal:{ - show:true, - position:'outer', //标签的位置:外部 - textStyle : { - fontWeight : 100 , - fontSize: document.body.clientWidth / 120, //标签字体大小 - color: "#000000" - }, - formatter:'{b}\n{c}({d}%)',//b:name,c:value,d:占比 - alignTo:'edge', - margin:10 - } - }, - data: [ - {value: this.selProject.iterationCnt, - itemStyle: { - normal:{ - color: '#EE6666' - } - }, - name: '迭代数'}, - {value: this.selProject.productCnt, - itemStyle: { - normal:{ - color: '#73C0DE' - } - }, - name: '产品数'}, - ], - emphasis: { - itemStyle: { - shadowBlur: 10, - shadowOffsetX: 0, - shadowColor: 'rgba(0, 0, 0, 0.5)' - } + xAxis: { + type: 'value' + }, + series: [{ + label: { + normal:{ + show: true, + position: 'inside', + color:'#000000', + } + }, + data: [this.selProject.productCnt, this.selProject.iterationCnt], + type: 'bar', + showBackground: true, + itemStyle: { + normal:{ + color: '#FFE4C4' } + }, + backgroundStyle: { + color: '#FFFFFF' } - ] + }] }; // 绘制图表 From 3e8178e7b1ae90357e0cdff56da80744ec2ff236 Mon Sep 17 00:00:00 2001 From: chentaiyu Date: Tue, 20 Jul 2021 12:06:52 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=AD=E4=BB=A3?= =?UTF-8?q?=E6=A6=82=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/xmIteration/XmIterationOverview.vue | 421 +++++++++--------- .../XmIterationOverviewComplex.vue | 130 +++--- .../xm/core/xmProject/XmProjectOverview.vue | 5 +- 3 files changed, 267 insertions(+), 289 deletions(-) diff --git a/src/views/xm/core/xmIteration/XmIterationOverview.vue b/src/views/xm/core/xmIteration/XmIterationOverview.vue index 4eaf08ad..0f521802 100644 --- a/src/views/xm/core/xmIteration/XmIterationOverview.vue +++ b/src/views/xm/core/xmIteration/XmIterationOverview.vue @@ -1,23 +1,18 @@ diff --git a/src/views/xm/core/xmProject/XmProjectOverview.vue b/src/views/xm/core/xmProject/XmProjectOverview.vue index 92ea811a..41e37fcb 100644 --- a/src/views/xm/core/xmProject/XmProjectOverview.vue +++ b/src/views/xm/core/xmProject/XmProjectOverview.vue @@ -269,7 +269,6 @@