From d382c8cb953c102fb4c0d0e472598fcf1679b531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Tue, 25 Jan 2022 23:55:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E5=96=84=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE=E7=AE=80=E4=BB=8B?= =?UTF-8?q?=E5=92=8C=E5=9B=A2=E9=98=9F=E4=BB=8B=E7=BB=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/components/BarChart.vue | 12 +- src/views/dashboard/components/PieChart.vue | 11 +- src/views/dashboard/index.vue | 128 ++++++++++++++++++-- 3 files changed, 129 insertions(+), 22 deletions(-) diff --git a/src/views/dashboard/components/BarChart.vue b/src/views/dashboard/components/BarChart.vue index 0bfa09fc..8944b003 100644 --- a/src/views/dashboard/components/BarChart.vue +++ b/src/views/dashboard/components/BarChart.vue @@ -47,7 +47,7 @@ function initChart() { barChart.setOption({ title: { show: true, - text: '分公司业绩总览(2021年财报)', + text: '分公司业绩总览(2021年)', x: 'center', padding: 15, textStyle: { @@ -80,7 +80,7 @@ function initChart() { xAxis: [ { type: 'category', - data: ['上海', '北京', '浙江', '广东', '深圳', '四川', '湖北', '安徽', '湖南', '山东', '海外'], + data: ['上海', '北京', '浙江', '广东', '深圳', '四川', '湖北', '安徽'], axisPointer: { type: 'shadow' } @@ -111,7 +111,7 @@ function initChart() { name: '收入', type: 'bar', data: [ - 8000, 8200, 7000, 6200, 6500, 5500, 4500, 4200, 3800, 4200, 6700, 5213 + 8000, 8200, 7000, 6200, 6500, 5500, 4500, 4200, 3800, ], barWidth: 20 @@ -120,7 +120,7 @@ function initChart() { name: '毛利润', type: 'bar', data: [ - 6200, 6500, 5500, 4500, 4200, 3800, 4200, 6700, 5213, 8000, 8200, 7000 + 6200, 6500, 5500, 4500, 4200, 3800, 4200, 6700, 5213, ], barWidth: 20 }, @@ -128,13 +128,13 @@ function initChart() { name: '收入增长率', type: 'line', yAxisIndex: 1, - data: [42, 41, 53, 65, 67, 65, 52, 45, 43, 54, 42, 46] + data: [42, 41, 53, 65, 67, 65, 52, 45, 43] }, { name: '利润增长率', type: 'line', yAxisIndex: 1, - data: [82, 81, 56, 45, 51, 65, 65, 67, 78, 76, 67, 78] + data: [82, 81, 56, 45, 51, 65, 65, 67, 78] } ] } as EChartsOption) diff --git a/src/views/dashboard/components/PieChart.vue b/src/views/dashboard/components/PieChart.vue index aafa90ed..7841f289 100644 --- a/src/views/dashboard/components/PieChart.vue +++ b/src/views/dashboard/components/PieChart.vue @@ -77,13 +77,10 @@ function initChart() { borderRadius: 8 }, data: [ - { value: 22, name: 'rose 1' }, - { value: 24, name: 'rose 2' }, - { value: 32, name: 'rose 3' }, - { value: 30, name: 'rose 4' }, - { value: 28, name: 'rose 5' }, - { value: 26, name: 'rose 6' }, - { value: 22, name: 'rose 7' } + { value: 26, name: '家用电器' }, + { value: 27, name: '户外运动' }, + { value: 24, name: '汽车用品' }, + { value: 23, name: '手机数码' } ] } ] diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 4641960e..ac52601d 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -2,12 +2,13 @@