menuConfig.js 2.73 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
import React from 'react';
import {
  DatabaseOutlined,
  UsergroupAddOutlined,
  SettingOutlined,
  HomeOutlined,
  //   AndroidOutlined,
  //   CommentOutlined,
  CopyOutlined,
} from '@ant-design/icons';

const iconStyle = { verticalAlign: '0.125em' };

const menuConfig = [
  {
    path: '/dbm',
    component: 'BasicLayout',
    name: '数据库管理',
    icon: <DatabaseOutlined style={iconStyle} />,
    routes: [
      {
        path: '/dbm/dbInit',
        name: '数据库初始化',
      },
      {
        path: '/dbm/dbsm',
        name: '数据库标准化管理',
      },
    ],
  },
  {
    path: '/userCenter',
    component: 'BasicLayout',
    name: '用户中心',
    icon: <UsergroupAddOutlined style={iconStyle} />,
    routes: [
      {
        path: '/userCenter/UserManage',
        name: '用户管理',
      },
      {
        path: '/userCenter/RoleManage',
        name: '角色管理',
      },
      {
        path: '/userCenter/SiteManage',
        name: '站点管理',
      },
      {
        path: '/userCenter/testTable',
        name: '测试表格',
      },
    ],
  },
  {
    path: '/platformCenter',
    component: 'BasicLayout',
    name: '平台中心',
    icon: <SettingOutlined style={iconStyle} />,
    routes: [
      {
        path: '/platformCenter/gis',
        name: 'GIS平台',
      },
      {
        path: '/platformCenter/order',
        name: '工单平台',
      },
      {
        path: '/platformCenter/notify',
        name: '消息平台',
      },
      {
        path: '/platformCenter/iot',
        name: '物联平台',
      },
      {
        path: '/platformCenter/vedio',
        name: '视频管理',
      },
      {
        path: '/platformCenter/emq',
        name: '宿主管理',
      },
      {
        path: '/platformCenter/dictionary',
        name: '数据字典',
      },
    ],
  },
  {
    path: '/productCenter',
    component: 'BasicLayout',
    name: '产品中心',
    icon: <HomeOutlined style={iconStyle} />,
    routes: [
      {
        path: '/productCenter/web',
        name: 'web配置',
      },
      {
        path: '/productCenter/app',
        name: 'app配置',
      },
      {
        path: '/productCenter/miniProgram',
        name: '小程序配置',
      },
    ],
  },
  {
    path: '/log',
    component: 'BasicLayout',
    name: '日志管理',
    icon: <CopyOutlined style={iconStyle} />,
    routes: [
      {
        path: '/log/service',
        name: '服务日志',
      },
      {
        path: '/log/login',
        name: '登录日志',
      },
      {
        path: '/log/omsOperation',
        name: '运维操作日志',
      },
      {
        path: '/log/omsError',
        name: '运维错误日志',
      },
    ],
  },
];

export default menuConfig;