import Layout from '@/layout'

let router = [
    {
        path: '/govern/device',
        component: Layout,
        name: 'GovernDevice',
        redirect: '/govern/device/manage',
        meta: {title: '设备管理', icon: 'excel'},
        children: [
            {
                path: '/govern/device/manage',
                name: 'GovernDeviceManage',
                meta: {title: '设备管理', icon: ''},
                component: () => import('@/views/govern/device/manage'),
            },
            {
                path: '/govern/device/control',
                name: 'GovernDeviceControl',
                meta: {title: '设备监控', icon: ''},
                component: () => import('@/views/govern/device/control'),
            },
            {
                path: '/govern/device/tourist',
                name: 'GovernDeviceTourist',
                meta: {title: '游客设备配置', icon: ''},
                component: () => import('@/views/govern/device/tourist'),
            },
        ],
    },
    {
        path: '/govern/disposition',
        component: Layout,
        name: 'GovernDisposition',
        redirect: '/govern/disposition/type',
        meta: {title: '类型管理', icon: 'excel'},
        children: [
            {
                path: '/govern/disposition/type',
                name: 'GovernDispositionType',
                meta: {title: '统计类型管理', icon: ''},
                component: () => import('@/views/govern/disposition/type'),
            },
            {
                path: '/govern/disposition/gplot',
                name: 'GovernDispositionGplot',
                meta: {title: '拓扑图模版管理', icon: ''},
                component: () => import('@/views/govern/disposition/gplot'),
            },
            {
                path: '/govern/disposition/salesman',
                name: 'GovernDeviceSalesman',
                meta: {title: '营销工程配置', icon: ''},
                component: () => import('@/views/govern/disposition/salesman'),
            },
        ],
    },
    {
        path: '/govern/manage',
        component: Layout,
        name: 'GovernManage',
        redirect: '/govern/manage/factory',
        meta: {title: '设备出厂管理', icon: 'excel'},
        children: [
            {
                path: '/govern/manage/factory',
                name: 'GovernManageFactory',
                meta: {title: '设备出厂管理', icon: ''},
                component: () => import('@/views/govern/manage/factory'),
            },
            {
                path: '/govern/manage/basic',
                name: 'GovernManageBasic',
                meta: {title: '设备基础管理', icon: ''},
                component: () => import('@/views/govern/manage/basic/index'),
            },
            {
                path: '/govern/manage/engineering',
                name: 'GovernManageEngineering',
                meta: {title: '设备工程管理', icon: ''},
                component: () => import('@/views/govern/manage/engineering'),
            },
            {
                path: '/govern/manage/app',
                name: 'GovernManageApp',
                meta: {title: 'app信息管理', icon: ''},
                component: () => import('@/views/govern/manage/app'),
            },
            {
                path: '/govern/manage/referral',
                name: 'GovernManageReferral',
                meta: {title: 'app角色推荐', icon: ''},
                component: () => import('@/views/govern/manage/referral'),
            },
            {
                path: '/govern/manage/feedback',
                name: 'GovernManageFeedback',
                meta: {title: '问题反馈处理', icon: ''},
                component: () => import('@/views/govern/manage/feedback'),
            },
        ],
    },
    {
        path: '/govern/analyze',
        component: Layout,
        name: 'GovernAnalyze',
        redirect: '/govern/analyze/tendency',
        meta: {title: '稳态趋势对比', icon: 'excel'},
        children: [
            {
                path: '/govern/analyze/tendency',
                name: 'GovernAnalyzeTendency',
                meta: {title: '稳态趋势对比', icon: ''},
                component: () => import('@/views/govern/analyze/tendency'),
            },
            {
                path: '/govern/analyze/steady',
                name: 'GovernAnalyzeSteady',
                meta: {title: 'APF治理效果', icon: ''},
                component: () => import('@/views/govern/analyze/steady/index'),
            },
            {
                path: '/govern/analyze/transient',
                name: 'GovernAnalyzeTransient',
                meta: {title: '暂态治理效果展示', icon: ''},
                component: () => import('@/views/govern/analyze/transient/index'),
            },
            {
                path: '/govern/analyze/DVR/index',
                name: 'GovernAnalyzeDVRIndex',
                meta: {title: 'DVR治理效果', icon: ''},
                component: () => import('@/views/govern/analyze/DVR/index'),
            },
        ],
    },
    {
        path: '/govern/alarm',
        component: Layout,
        name: 'GovernAlarm',
        redirect: '/govern/alarm/index',
        meta: {title: '事件/告警管理', icon: 'excel'},
        children: [
            {
                path: '/govern/alarm/index',
                name: 'GovernAlarmIndex',
                meta: {title: '事件/告警管理', icon: ''},
                component: () => import('@/views/govern/alarm/index'),
            },
        ],
    },
    {
        path: '/govern/log',
        component: Layout,
        name: 'GovernLog',
        redirect: '/govern/log/operation',
        meta: {title: '日志管理', icon: 'excel'},
        children: [
            {
                path: '/govern/log/operation',
                name: 'GovernLogOperation',
                meta: {title: '操作日志', icon: ''},
                component: () => import('@/views/govern/log/operation'),
            },
            {
                path: '/govern/log/push',
                name: 'GovernLogPush',
                meta: {title: '推送日志', icon: ''},
                component: () => import('@/views/govern/log/push'),
            },
            {
                path: '/govern/log/debug',
                name: 'GovernLogDebug',
                meta: {title: '设备调试日志', icon: ''},
                component: () => import('@/views/govern/log/debug'),
            },
        ],
    },
]
export default router
