import { Routes } from '@angular/router';

export const basicRoutes: Routes = [
  {
    path: 'line',
    loadComponent: () => import('./line/line.component').then(m => m.LineComponent),
    data: {
      title: '线路',
      icon: 'icons:line',
      weight: 1,
    },
  },
  {
    path: 'type',
    loadComponent: () => import('./type/type.component').then(m => m.TypeComponent),
    data: {
      animation: 'TypePage',
      title: '生产类型',
      icon: 'icons:type',
      weight: 2,
    },
  },
  {
    path: 'post-group',
    loadComponent: () => import('./post-group/post-group.component').then(m => m.PostGroupComponent),
    data: {
      animation: 'PostGroupPage',
      title: '岗位组',
      icon: 'icons:post-group',
      weight: 5,
    },
  },
  {
    path: 'poe',
    loadComponent: () => import('./poe/poe.component').then(m => m.PoeComponent),
    data: {
      title: '场所/作业/设备',
      icon: 'icons:equipment',
      weight: 7,
    },
  },
  {
    path: 'dj',
    loadComponent: () => import('./dj/dj.component').then(m => m.DjComponent),
    data: {
      title: '部门/岗位',
      icon: 'icons:user-fill',
      weight: 8,
    },
  },
  {
    path: 'relationship',
    loadComponent: () => import('./dr-relationship/dr-relationship.component').then(m => m.DrRelationshipComponent),
    data: {
      title: '部门风险项关联',
      icon: 'icons:link',
      weight: 8,
    },
  },
  {
    path: 'consequence',
    loadComponent: () => import('./consequence/consequence.component').then(m => m.ConsequenceComponent),
    data: {
      title: '后果',
      icon: 'icons:apple',
      weight: 9,
    },
  },
  { path: '', pathMatch: 'full', redirectTo: 'line' },
];
