main.component.ts 2.7 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
        {
          title: '地图模式',
J
Jason 已提交
38
          router: 'device/map'
J
Jason 已提交
39 40 41
        },
        {
          title: '操作日志',
J
Jason 已提交
42
          router: 'device/log'
J
Jason 已提交
43
        },
J
Jason 已提交
44 45
      ]
    },
J
Jason 已提交
46 47 48 49 50 51
    {
      title: '数据中心',
      icon: 'database',
      children: [
        {
          title: '历史记录',
J
Jason 已提交
52
          router: 'history'
J
Jason 已提交
53 54 55
        },
        {
          title: '算法分析',
J
Jason 已提交
56
          router: 'algorithm'
J
Jason 已提交
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
        },
      ]
    },
    {
      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
        {
          title: '元件管理',
          router: 'element'
        },
109 110
      ]
    },
J
Jason 已提交
111 112 113 114
    {
      title: 'OTA升级',
      icon: 'cloud-upload',
      open: false,
J
Jason 已提交
115
      disabled: true,
J
Jason 已提交
116 117 118 119 120 121 122 123 124 125 126
      children: [
        {
          title: '固件管理',
          router: 'firmware'
        },
        {
          title: '升级日志',
          router: 'upgrade-log'
        },
      ]
    },
J
顶替  
Jason 已提交
127
    {
J
Jason 已提交
128
      title: '设置',
J
Jason 已提交
129 130 131
      icon: 'setting',
      open: false,
      children: [
J
顶替  
Jason 已提交
132
        {
J
Jason 已提交
133 134
          title: '设置',
          router: 'setting'
J
顶替  
Jason 已提交
135
        },
J
Jason 已提交
136 137
        {
          title: '邮件发件箱',
J
Jason 已提交
138
          router: 'email'
J
Jason 已提交
139
        },
J
Jason 已提交
140
        {
J
Jason 已提交
141 142 143 144 145 146 147
          title: '数据备份',
          router: 'backup'
        },
        {
          title: '系统日志',
          router: 'logs'
        },
J
Jason 已提交
148 149 150 151
      ]
    }
  ];

152

153
  constructor() {
154

J
Jason 已提交
155 156 157 158
  }

  ngOnInit(): void {

159
  }
J
Jason 已提交
160
}