/* Layout */
import Layout from '@/layout/Layout'

export const strategyRouters = [
  {
    path: 'strategy',
    component: Layout,
    redirect: '/controllerData',
    name: 'Strategy',
    meta: {
      title: '策略管理',
      icon: 'icon-config', // 图标
      permission: ['/strategy']// 权限名称
    },
    children: [
      {
        path: '/strategyList',
        name: 'StrategyList',
        component: () => import('@/views/strategy/listStrategy'),
        meta: { title: '所有策略', icon: '', permission: ['/strategyList'] }
      },
      {
        path: '/exeLog',
        name: 'ExeLog',
        component: () => import('@/views/strategy/listExeLog'),
        meta: { title: '策略执行记录', icon: '', permission: ['/exeLog'] }
      },
      {
        path: '/operationLog',
        name: 'OperationLog',
        component: () => import('@/views/strategy/listOperationLog'),
        meta: { title: '策略操作记录', icon: '', permission: ['/operationLog'] }
      },
      {
        path: '/deviceLog',
        name: 'DeviceLog',
        component: () => import('@/views/strategy/deviceData'),
        meta: { title: '设备策略记录', icon: '', permission: ['/deviceLog'] }
      }]
  }]
