From b1d6d8c175e6cb7525d8088e3de46c7250d814a3 Mon Sep 17 00:00:00 2001 From: RainBus Date: Tue, 16 Jan 2024 19:59:54 +0800 Subject: [PATCH] temp --- src/App.tsx | 2 +- src/components/index.tsx | 2 + src/components/station/PredictInfo.tsx | 30 +++++++++++++ src/components/station/StationInfo.tsx | 57 +++++++++++++++++++++++-- src/components/station/predict.png | Bin 0 -> 96962 bytes src/components/widget/Copyright.tsx | 2 +- src/routes/config.ts | 7 +++ src/routes/index.tsx | 7 +++ 8 files changed, 102 insertions(+), 5 deletions(-) create mode 100644 src/components/station/PredictInfo.tsx create mode 100644 src/components/station/predict.png diff --git a/src/App.tsx b/src/App.tsx index bbdffd6..edbebe1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -117,7 +117,7 @@ const App = (props: AppProps) => { {!responsive.isMobile && checkLogin(auth.permissions) && ( )} - + {/* */} diff --git a/src/components/index.tsx b/src/components/index.tsx index ffbb482..1dccd6e 100644 --- a/src/components/index.tsx +++ b/src/components/index.tsx @@ -35,6 +35,7 @@ import Home from './visualize/Home'; import UserManage from './management/UserManage'; import BlankPage from './management/BlankPage'; import StationInfo from './station/StationInfo'; +import PredictInfo from './station/PredictInfo'; const WysiwygBundle = Loadable({ // 按需加载富文本配置 @@ -75,4 +76,5 @@ export default { UserManage, BlankPage, StationInfo, + PredictInfo, } as any; diff --git a/src/components/station/PredictInfo.tsx b/src/components/station/PredictInfo.tsx new file mode 100644 index 0000000..0d4a508 --- /dev/null +++ b/src/components/station/PredictInfo.tsx @@ -0,0 +1,30 @@ +import { Tabs, Select, Image } from 'antd'; +import React from 'react'; +import predict from './predict.png'; + +const durationSelect = () => { + const options = [ + { value: '15', label: '15min' }, + { value: '30', label: '30min' }, + { value: '60', label: '60min' }, + ]; + return