main.component.ts 1.3 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 29 30 31 32 33 34 35 36 37
    {
      title: '设备管理',
      icon: 'api',
      children: [
        {
          title: '通道管理',
          router: 'device'
        },
      ]
    },
J
Jason 已提交
38
    {
J
顶替  
Jason 已提交
39 40 41 42 43 44 45 46 47
      title: '数据通道',
      icon: 'api',
      children: [
        {
          title: '通道管理',
          router: 'channel'
        },
        {
          title: '连接管理',
J
顶替  
Jason 已提交
48
          router: 'link'
J
顶替  
Jason 已提交
49 50 51
        }
      ]
    },
52
    {
53
      title: '设备模型',
54 55 56 57
      icon: 'cluster',
      open: false,
      children: [
        {
58
          title: '模型管理',
59 60 61 62
          router: 'model'
        },
      ]
    },
J
顶替  
Jason 已提交
63 64
    {
      title: '系统设置',
J
Jason 已提交
65 66 67
      icon: 'setting',
      open: false,
      children: [
J
顶替  
Jason 已提交
68
        {
J
Jason 已提交
69 70
          title: '管理插件',
          router: 'plugin'
J
顶替  
Jason 已提交
71
        },
J
Jason 已提交
72
        {
J
Jason 已提交
73 74
          title: '系统配置',
          router: 'setting'
J
Jason 已提交
75 76 77 78 79
        }
      ]
    }
  ];

80

81
  constructor() {
82

J
Jason 已提交
83 84 85 86
  }

  ngOnInit(): void {

87
  }
J
Jason 已提交
88
}