From 769ca6fcbc5f23094597d5b1ce73990ffcdff590 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 2 Apr 2025 11:46:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=98=BE=E7=A4=BA=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E6=9D=A1=E4=BB=B6=E9=85=8D=E7=BD=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/templates/base.html | 14 +++++++++++--- admin/dashboard/templates/message_list.html | 2 -- admin/dashboard/templates/wx_logs.html | 2 -- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/admin/dashboard/templates/base.html b/admin/dashboard/templates/base.html index 459a098..eff0f98 100644 --- a/admin/dashboard/templates/base.html +++ b/admin/dashboard/templates/base.html @@ -148,8 +148,8 @@
- - + + @@ -181,9 +181,17 @@ return { currentView: '1', timeRange: '7', - charts: {} + charts: {}, + // 添加一个标志,用于控制时间范围选择器的显示 + showTimeRangeSelector: false } }, + created() { + // 根据当前页面路径决定是否显示时间范围选择器 + const path = window.location.pathname; + // 只在统计相关页面显示时间范围选择器 + this.showTimeRangeSelector = ['/', '/plugins', '/users', '/groups','/robot_management','/errors'].includes(path); + }, methods: { handleSelect(key, keyPath) { this.currentView = key; diff --git a/admin/dashboard/templates/message_list.html b/admin/dashboard/templates/message_list.html index 82bcbfe..aab376f 100644 --- a/admin/dashboard/templates/message_list.html +++ b/admin/dashboard/templates/message_list.html @@ -5,8 +5,6 @@ {% block content %}
-

消息列表

- diff --git a/admin/dashboard/templates/wx_logs.html b/admin/dashboard/templates/wx_logs.html index fc8aa35..0c0f718 100644 --- a/admin/dashboard/templates/wx_logs.html +++ b/admin/dashboard/templates/wx_logs.html @@ -4,8 +4,6 @@ {% block content %}
-

微信日志查看

-
日志查看