From 5c30e7e3637590c763f9c4597bcbd2d0be1e0463 Mon Sep 17 00:00:00 2001 From: x_ying <2438792676@qq.com> Date: Mon, 25 Jul 2022 16:32:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/echarts/catePie.vue | 92 ++++++++++++ src/views/components/echarts/lendAcross.vue | 133 ++++++++++++++++++ src/views/components/echarts/typePie.vue | 98 +++++++++++++ src/views/system/archiveStatistics/index.vue | 79 ++++++++--- .../archiveStatistics/module/acrossBar.vue | 104 ++++++++++++++ .../archiveStatistics/module/barEcharts.vue | 43 +++--- .../archiveStatistics/module/lineEchart.vue | 124 ++++++++++++++++ 7 files changed, 631 insertions(+), 42 deletions(-) create mode 100644 src/views/components/echarts/catePie.vue create mode 100644 src/views/components/echarts/lendAcross.vue create mode 100644 src/views/components/echarts/typePie.vue create mode 100644 src/views/system/archiveStatistics/module/acrossBar.vue create mode 100644 src/views/system/archiveStatistics/module/lineEchart.vue diff --git a/src/views/components/echarts/catePie.vue b/src/views/components/echarts/catePie.vue new file mode 100644 index 0000000..1eb6c68 --- /dev/null +++ b/src/views/components/echarts/catePie.vue @@ -0,0 +1,92 @@ + + + + + diff --git a/src/views/components/echarts/lendAcross.vue b/src/views/components/echarts/lendAcross.vue new file mode 100644 index 0000000..026976e --- /dev/null +++ b/src/views/components/echarts/lendAcross.vue @@ -0,0 +1,133 @@ + + + + + diff --git a/src/views/components/echarts/typePie.vue b/src/views/components/echarts/typePie.vue new file mode 100644 index 0000000..4144465 --- /dev/null +++ b/src/views/components/echarts/typePie.vue @@ -0,0 +1,98 @@ + + + + + diff --git a/src/views/system/archiveStatistics/index.vue b/src/views/system/archiveStatistics/index.vue index db92888..4a0f6c7 100644 --- a/src/views/system/archiveStatistics/index.vue +++ b/src/views/system/archiveStatistics/index.vue @@ -3,13 +3,18 @@
-
- +
+ + +

+

档案借阅

+

+
+ +
- -
@@ -17,36 +22,58 @@

档案类别

- +
-
- +
+ + +

+

档案类型

+

+
+ +
- - + +
+ + +

+

出入库管理情况

+

-
- - - -
+ +
+ + +

+

档案检索排名

+

+ +
- + -
- +
+ + +

+

档案实际情况

+

+ +
@@ -55,11 +82,23 @@ diff --git a/src/views/system/archiveStatistics/module/acrossBar.vue b/src/views/system/archiveStatistics/module/acrossBar.vue new file mode 100644 index 0000000..c65f57f --- /dev/null +++ b/src/views/system/archiveStatistics/module/acrossBar.vue @@ -0,0 +1,104 @@ + + + + + diff --git a/src/views/system/archiveStatistics/module/barEcharts.vue b/src/views/system/archiveStatistics/module/barEcharts.vue index 76d8a69..2503f0a 100644 --- a/src/views/system/archiveStatistics/module/barEcharts.vue +++ b/src/views/system/archiveStatistics/module/barEcharts.vue @@ -1,6 +1,7 @@ @@ -15,7 +16,7 @@ export default { methods: { drawChart() { const app = {} - const chartDom = document.getElementById('main') + const chartDom = document.getElementById('main1') const myChart = echarts.init(chartDom) let option = null @@ -110,30 +111,28 @@ export default { type: 'shadow' } }, - legend: { - data: ['Forest', 'Steppe'] - }, - toolbox: { - show: true, - orient: 'vertical', - left: 'right', - top: 'center', - feature: { - mark: { show: true }, - dataView: { show: true, readOnly: false }, - magicType: { show: true, type: ['line', 'bar', 'stack'] }, - restore: { show: true }, - saveAsImage: { show: true } + legend: { // 图例 + data: ['出库', '入库'], + right: 60, + icon: 'circle', + textStyle: { + color: '#fff' } }, + grid: { + left: '3%', + right: '3%', + bottom: '8%', + top: '15%', + containLabel: true + }, xAxis: [{ type: 'category', axisTick: { show: false }, data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], axisLine: {// 轴线的颜色以及宽度 lineStyle: { - color: '#113D72', - type: 'solid' + color: '#113D72' } }, axisLabel: {// x轴文字的配置 @@ -181,7 +180,7 @@ export default { emphasis: { focus: 'series' }, - data: [320, 332, 301, 334, 390], + data: [320, 332, 401, 334, 390, 320, 332, 301, 334, 390, 320, 332], color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [ { offset: 0, @@ -202,7 +201,7 @@ export default { emphasis: { focus: 'series' }, - data: [220, 182, 191, 234, 290], + data: [220, 182, 191, 234, 290, 220, 182, 191, 234, 290, 220, 182], color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [ { offset: 0, @@ -224,8 +223,8 @@ export default { diff --git a/src/views/system/archiveStatistics/module/lineEchart.vue b/src/views/system/archiveStatistics/module/lineEchart.vue new file mode 100644 index 0000000..d8c3ca1 --- /dev/null +++ b/src/views/system/archiveStatistics/module/lineEchart.vue @@ -0,0 +1,124 @@ + + + + +