mcfxkh-Web/src/routes.js

79 lines
4.9 KiB
JavaScript
Raw Normal View History

2025-05-19 14:26:18 +08:00
import React, { lazy } from 'react';
import { Redirect } from 'react-router-dom';
import DapingLayout from './layouts/Daping';
import BlankLayout from './layouts/Blank';
import Error404 from './views/Error404';
import ControllerLayout from './layouts/Controller';
import DashboardLayout from './layouts/DashboardLayout';
import Login from './views/Login';
const routes = [
{ path: '/', exact: true, component: () => <Redirect to="/login" /> },
{ path: '/login', component: Login },
{
path: '/c', component: ControllerLayout, routes: [
{ path: '/c/main', exact: true, component: lazy(() => import('./views/Controller')) },
{ component: () => <Redirect to="/errors/error-404" /> }
]
},
{
path: '/v', component: DapingLayout, routes: [
{ path: '/v/home', exact: true, component: lazy(() => import('./views/Home')) },
{ component: () => <Redirect to="/errors/error-404" /> }
]
},
{
path: '/m', component: DashboardLayout, routes: [
{ path: '/m/sysuser', exact: true, component: lazy(() => import('./views/Mgr/SysUser')) },
{ path: '/m/loginlog', exact: true, component: lazy(() => import('./views/Mgr/loginlog')) },
{ path: '/m/smtplog', exact: true, component: lazy(() => import('./views/Mgr/smtplog')) },
{ path: '/m/SkPicReal', exact: true, component: lazy(() => import('./views/Mgr/xqjs/SkPicReal')) },
{ path: '/m/Drpreal', exact: true, component: lazy(() => import('./views/Mgr/xqjs/drpreal')) },
{ path: '/m/Drpsearch', exact: true, component: lazy(() => import('./views/Mgr/xqjs/drpsearch')) },
{ path: '/m/Drprangesearch', exact: true, component: lazy(() => import('./views/Mgr/xqjs/drprangesearch')) },
{ path: '/m/Drpdaysearch', exact: true, component: lazy(() => import('./views/Mgr/xqjs/drpdaysearch')) },
{ path: '/m/Sttotalrain', exact: true, component: lazy(() => import('./views/Mgr/xqjs/sttotalrain')) },
{ path: '/m/Drpadstat', exact: true, component: lazy(() => import('./views/Mgr/xqjs/drpadstat')) },
{ path: '/m/Drpexvalues', exact: true, component: lazy(() => import('./views/Mgr/xqjs/drpexvalues')) },
{ path: '/m/Rzsearch', exact: true, component: lazy(() => import('./views/Mgr/xqjs/rzsearch')) },
{ path: '/m/Rzavsearch', exact: true, component: lazy(() => import('./views/Mgr/xqjs/rzavsearch')) },
{ path: '/m/Rzminmaxsearch', exact: true, component: lazy(() => import('./views/Mgr/xqjs/rzminmaxsearch')) },
{ path: '/m/Rzvalues', exact: true, component: lazy(() => import('./views/Mgr/xqjs/rzvalues')) },
{ path: '/m/Rzexvalues', exact: true, component: lazy(() => import('./views/Mgr/xqjs/rzexvalues')) },
{ path: '/m/Rzreal', exact: true, component: lazy(() => import('./views/Mgr/xqjs/rzreal')) },
{ path: '/m/Skreal', exact: true, component: lazy(() => import('./views/Mgr/xqjs/skreal')) },
{ path: '/m/Shyj', exact: true, component: lazy(() => import('./views/Mgr/warn/shyj')) },
{ path: '/m/Skyjlatest', exact: true, component: lazy(() => import('./views/Mgr/warn/skyjlatest')) },
{ path: '/m/Skyjsearch', exact: true, component: lazy(() => import('./views/Mgr/warn/skyjsearch')) },
{ path: '/m/Personel', exact: true, component: lazy(() => import('./views/Mgr/fxzc/personel')) },
{ path: '/m/Flrvvlg', exact: true, component: lazy(() => import('./views/Mgr/fxzc/flrvvlg')) },
{ path: '/m/Stmgr', exact: true, component: lazy(() => import('./views/Mgr/fxzc/stmgr')) },
{ path: '/m/Plan', exact: true, component: lazy(() => import('./views/Mgr/fxzc/plan')) },
{ path: '/m/Zbap', exact: true, component: lazy(() => import('./views/Mgr/fxzc/zbap')) },
{ path: '/m/Bridge', exact: true, component: lazy(() => import('./views/Mgr/slgc/bridge')) },
{ path: '/m/Culvert', exact: true, component: lazy(() => import('./views/Mgr/slgc/culvert')) },
{ path: '/m/Sk', exact: true, component: lazy(() => import('./views/Mgr/slgc/sk')) },
{ path: '/m/Daminfo', exact: true, component: lazy(() => import('./views/Mgr/slgc/daminfo')) },
{ path: '/m/Dike', exact: true, component: lazy(() => import('./views/Mgr/slgc/dike')) },
{ path: '/m/Sluice', exact: true, component: lazy(() => import('./views/Mgr/slgc/sluice')) },
{ path: '/m/Stinfo', exact: true, component: lazy(() => import('./views/Mgr/slgc/stinfo')) },
{ path: '/m/Srstinfo', exact: true, component: lazy(() => import('./views/Mgr/slgc/srstinfo')) },
{ path: '/m/Swstinfo', exact: true, component: lazy(() => import('./views/Mgr/slgc/swstinfo')) },
{ path: '/m/Wbrinfo', exact: true, component: lazy(() => import('./views/Mgr/slgc/wbrinfo')) },
{ component: () => <Redirect to="/errors/error-404" /> }
]
},
{
path: '/errors', component: BlankLayout, routes: [
{ path: '/errors/error-404', exact: true, component: Error404 },
{ component: () => <Redirect to="/errors/error-404" /> }
]
},
];
export default routes;