From 2b9311b82c87d6bc50f3e2d7916c1462273153bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=B0=B8=E5=BC=BA?= <11704063+s-yongqiang@user.noreply.gitee.com> Date: Wed, 2 Apr 2025 10:17:13 +0800 Subject: [PATCH] Update statistic-metrics.js --- .../sys-admin/statistic/statistic-metrics.js | 66 +++++++++++++++---- seahub/api2/endpoints/admin/statistics.py | 22 ++++--- seahub/views/__init__.py | 6 +- 3 files changed, 71 insertions(+), 23 deletions(-) diff --git a/frontend/src/pages/sys-admin/statistic/statistic-metrics.js b/frontend/src/pages/sys-admin/statistic/statistic-metrics.js index 7306b96095..91657bee15 100644 --- a/frontend/src/pages/sys-admin/statistic/statistic-metrics.js +++ b/frontend/src/pages/sys-admin/statistic/statistic-metrics.js @@ -12,11 +12,16 @@ class MetricCard extends Component {
-
- {metric.name} - {metric.type} -
- {metric.help &&

{metric.help}

} +
+ {metric.name} + {metric.type} + {metric.help && ( + + help: + {metric.help} + + )} +
@@ -103,24 +108,61 @@ class StatisticMetrics extends Component { } } -// 添加样式 const style = `