From ce380bedfa117ec605e24f7008b5a3d48d0e6ebc Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Wed, 20 Dec 2023 09:48:13 +0800 Subject: [PATCH] Rename index.scss to statistic.scss. Add permission to statistic management page. --- .../system/{index.scss => statistic.scss} | 0 src/pages/system/Statistic.tsx | 21 ++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) rename src/assets/css/pages/system/{index.scss => statistic.scss} (100%) diff --git a/src/assets/css/pages/system/index.scss b/src/assets/css/pages/system/statistic.scss similarity index 100% rename from src/assets/css/pages/system/index.scss rename to src/assets/css/pages/system/statistic.scss diff --git a/src/pages/system/Statistic.tsx b/src/pages/system/Statistic.tsx index 54c4b90..4a210df 100644 --- a/src/pages/system/Statistic.tsx +++ b/src/pages/system/Statistic.tsx @@ -15,7 +15,7 @@ import { BarChart, BarSeriesOption, LineChart, LineSeriesOption } from 'echarts/ import { UniversalTransition } from 'echarts/features' import { SVGRenderer } from 'echarts/renderers' import { TopLevelFormatterParams } from 'echarts/types/dist/shared' -import '@/assets/css/pages/system/index.scss' +import '@/assets/css/pages/system/statistic.scss' import { useUpdatedEffect } from '@/util/hooks' import { formatByteSize } from '@/util/common' import { getTimesBetweenTwoTimes, utcToLocalTime } from '@/util/datetime' @@ -32,6 +32,7 @@ import FlexBox from '@/components/common/FlexBox' import FitFullScreen from '@/components/common/FitFullScreen' import HideScrollbar from '@/components/common/HideScrollbar' import LoadingMask from '@/components/common/LoadingMask' +import Permission from '@/components/common/Permission' echarts.use([ TooltipComponent, @@ -940,12 +941,18 @@ const Statistic: React.FC = () => { - - - - - - + + + + + + + + + + + +