From 459de384658697cc4be25c03db187c34fef6822f Mon Sep 17 00:00:00 2001 From: ahanhanhan Date: Thu, 22 Feb 2024 15:53:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/rankList/index.vue | 9 ++- src/views/dashboard/LineChart.vue | 80 ++++----------------- src/views/dashboard/PanelGroup.vue | 44 ++++++++++-- src/views/dashboard/mixins/echartsConfig.js | 63 ++++++++++++++++ src/views/index.vue | 6 +- 5 files changed, 126 insertions(+), 76 deletions(-) create mode 100644 src/views/dashboard/mixins/echartsConfig.js diff --git a/src/views/components/rankList/index.vue b/src/views/components/rankList/index.vue index 94a1dfa..f53a923 100644 --- a/src/views/components/rankList/index.vue +++ b/src/views/components/rankList/index.vue @@ -5,7 +5,7 @@
{{ label }}
@@ -43,11 +43,16 @@ export default { type: String, default: '' }, + data: { + type: Array, + default: ()=> [] + }, operation: { type: Array, default: ()=> ([{ label: '总', prop: '' }, { label: '日', prop: '' }]) } }, + data() { return { activeIndex: 0 @@ -105,6 +110,8 @@ export default { } .list-content { + width: 100%; + overflow: hidden; .list-item { height: 37px; line-height: 37px; diff --git a/src/views/dashboard/LineChart.vue b/src/views/dashboard/LineChart.vue index 702ff73..3c5c6dc 100644 --- a/src/views/dashboard/LineChart.vue +++ b/src/views/dashboard/LineChart.vue @@ -5,7 +5,16 @@