From f8a5eebb60a153525e8c6104bc1918a7623a0f92 Mon Sep 17 00:00:00 2001 From: liuyu <33367671@qq.com> Date: Wed, 3 Aug 2022 18:10:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=20=E5=AF=BC=E8=88=AAactive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/templates/index/home.html | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/view/templates/index/home.html b/view/templates/index/home.html index 1db13bb..1c3b978 100644 --- a/view/templates/index/home.html +++ b/view/templates/index/home.html @@ -81,14 +81,14 @@
@@ -221,11 +221,18 @@ function getChartsData(type, day) { } }); } - -function getChartsData2(day) { +function getChartsData2(day, obj) { + $('.admin-index-top-item-header-right').find('li').removeClass('active'); + $(obj).addClass('active'); getChartsData($('#hidden_params').attr('flag'), day); } +function getChartsData3(type, day, obj) { + $('.admin-index-top-item-header-left').find('li').removeClass('active'); + $(obj).addClass('active'); + getChartsData(type, day); +} + function createCharts(charts_dates, charts_values, value_name) { var myChart = echarts.init(document.getElementById('admin-map-container'));