From 60475d2d11f1461a02fecb26130f15373b67d834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=BA=A2=E4=B8=BD?= <1181930680@qq.com> Date: Thu, 15 Aug 2024 08:39:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../console/components/NewVisitAmount.vue | 19 ++++++++++++------- .../dashboard/console/components/VisiTab.vue | 4 ++-- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/views/dashboard/console/components/NewVisitAmount.vue b/src/views/dashboard/console/components/NewVisitAmount.vue index 471518f..039b28d 100644 --- a/src/views/dashboard/console/components/NewVisitAmount.vue +++ b/src/views/dashboard/console/components/NewVisitAmount.vue @@ -19,7 +19,12 @@ const { setOptions } = useECharts(chartRef as Ref); const option = { - tooltip: {}, + tooltip: { + trigger: 'axis', + axisPointer:{ + type:'shadow' + } + }, grid: { top: '10%', left: '1%', @@ -105,18 +110,18 @@ itemStyle: { color: '#FC619D', }, - tooltip: { - show: false, - }, + // tooltip: { + // show: false, + // }, data: [105, 180, 208, 284, 343, 388, 435, 465, 487, 531, 589, 669], }, { name: '月销量', type: 'bar', barWidth: 10, - tooltip: { - show: false, - }, + // tooltip: { + // show: false, + // }, label: { show: true, position: 'top', diff --git a/src/views/dashboard/console/components/VisiTab.vue b/src/views/dashboard/console/components/VisiTab.vue index 5e49e17..1f4ce69 100644 --- a/src/views/dashboard/console/components/VisiTab.vue +++ b/src/views/dashboard/console/components/VisiTab.vue @@ -2,8 +2,8 @@ - - + +