main.component.ts 2.8 KB
Newer Older
1 2 3 4
import {
  Component,
  OnInit,
} from '@angular/core';
J
Jason 已提交
5

6

J
Jason 已提交
7 8 9 10 11 12 13 14 15
@Component({
  selector: 'app-main',
  templateUrl: './main.component.html',
  styleUrls: ['./main.component.scss']
})
export class MainComponent implements OnInit {

  isCollapsed = false;

J
Jason 已提交
16 17 18 19 20 21 22 23 24 25 26 27
  menus = [
    {
      title: '控制台',
      icon: 'dashboard',
      open: true,
      children: [
        {
          title: '仪表盘',
          router: 'dash'
        },
      ]
    },
J
Jason 已提交
28
    {
J
Jason 已提交
29 30
      title: '设备中心',
      icon: 'block',
J
Jason 已提交
31 32
      children: [
        {
J
Jason 已提交
33
          title: '设备管理',
J
Jason 已提交
34 35
          router: 'device'
        },
J
Jason 已提交
36 37 38 39 40 41 42 43
        {
          title: '地图模式',
          router: 'device-map'
        },
        {
          title: '操作日志',
          router: 'device-log'
        },
J
Jason 已提交
44 45
      ]
    },
J
Jason 已提交
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
    {
      title: '数据中心',
      icon: 'database',
      children: [
        {
          title: '历史记录',
          router: 'tunnel'
        },
        {
          title: '算法分析',
          router: 'link'
        },
      ]
    },
    {
      title: '报警中心',
      icon: 'alert',
      children: [
        {
          title: '报警记录',
          router: 'alert'
        },
        {
          title: '微信通知',
          router: 'alert-wechat'
        },
        {
          title: '邮件通知',
          router: 'alert-email'
75 76 77
        },
        {
          title: '短信通知',
J
Jason 已提交
78
          router: 'alert-sms'
J
Jason 已提交
79 80 81
        }
      ]
    },
J
Jason 已提交
82
    {
83
      title: '通道管理',
J
顶替  
Jason 已提交
84 85 86 87
      icon: 'api',
      children: [
        {
          title: '通道管理',
88
          router: 'tunnel'
J
顶替  
Jason 已提交
89 90 91
        },
        {
          title: '连接管理',
J
顶替  
Jason 已提交
92
          router: 'link'
J
顶替  
Jason 已提交
93 94 95
        }
      ]
    },
96
    {
J
Jason 已提交
97 98
      title: '项目管理',
      icon: 'project',
99 100 101
      open: false,
      children: [
        {
J
Jason 已提交
102 103
          title: '项目管理',
          router: 'project'
104
        },
J
Jason 已提交
105 106 107 108 109 110
        {
          title: '元件管理',
          router: 'element'
        },
        {
          title: '协议管理',
111
          router: 'project-adapter'
J
Jason 已提交
112
        },
113 114
      ]
    },
J
Jason 已提交
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
    {
      title: 'OTA升级',
      icon: 'cloud-upload',
      open: false,
      children: [
        {
          title: '固件管理',
          router: 'firmware'
        },
        {
          title: '升级日志',
          router: 'upgrade-log'
        },
      ]
    },
J
顶替  
Jason 已提交
130
    {
J
Jason 已提交
131
      title: '设置',
J
Jason 已提交
132 133 134
      icon: 'setting',
      open: false,
      children: [
J
顶替  
Jason 已提交
135
        {
J
Jason 已提交
136 137
          title: '设置',
          router: 'setting'
J
顶替  
Jason 已提交
138
        },
J
Jason 已提交
139 140 141 142
        {
          title: '邮件发件箱',
          router: 'backup'
        },
J
Jason 已提交
143
        {
J
Jason 已提交
144 145 146 147 148 149 150
          title: '数据备份',
          router: 'backup'
        },
        {
          title: '系统日志',
          router: 'logs'
        },
J
Jason 已提交
151 152 153 154
      ]
    }
  ];

155

156
  constructor() {
157

J
Jason 已提交
158 159 160 161
  }

  ngOnInit(): void {

162
  }
J
Jason 已提交
163
}