import NavLayout from "@/components/layout/NavLayout"

const device = [
    {
        path: '/device',
        name: 'device',
        component: NavLayout,
        redirect: "/device/index",
        children: [
            {
                path: "/device/index",
                name: "deviceIndex",
                component: () => import('@/views/device/index.vue'),
                meta: {
                    title: '设备管理',
                    hasBot: false,
                    hasTop: false
                }
            },
            {
                path: "/device/detail",
                name: "deviceDetail",
                component: () => import('@/views/device/detail.vue'),
                meta: {
                    title: '设备',
                    hasBot: false,
                    hasTop: false
                }
            },
            {
                path: "/device/temperature/index",
                name: "temperatureIndex",
                component: () => import('@/views/device/temperature/index.vue'),
                meta: {
                    title: '温度控制',
                    hasBot: false,
                    hasTop: false
                }
            },
            {
                path: "/device/temperature/turnControl",
                name: "temperatureTurnControl",
                component: () => import('@/views/device/temperature/turnControl.vue'),
                meta: {
                    title: '开启温度控制',
                    hasBot: false,
                    hasTop: false
                }
            },
            {
                path: "/device/humidity/index",
                name: "humidityIndex",
                component: () => import('@/views/device/humidity/index.vue'),
                meta: {
                    title: '湿度控制',
                    hasBot: false,
                    hasTop: false
                }
            },
            {
                path: "/device/humidity/turnControl",
                name: "humidityTurnControl",
                component: () => import('@/views/device/humidity/turnControl.vue'),
                meta: {
                    title: '开启湿度控制',
                    hasBot: false,
                    hasTop: false
                }
            },
            {
                path: "/device/cargoLane/index",
                name: "cargoLaneIndex",
                component: () => import('@/views/device/cargoLane/index.vue'),
                meta: {
                    title: '货道状态',
                    hasBot: false,
                    hasTop: false
                }
            },
            {
                path: "/device/cargoLane/setting",
                name: "cargoLaneSetting",
                component: () => import('@/views/device/cargoLane/setting.vue'),
                meta: {
                    title: '货道状态',
                    hasBot: false,
                    hasTop: false
                }
            },
            {
                path: "/device/status",
                name: "deviceStatus",
                component: () => import('@/views/device/status.vue'),
                meta: {
                    title: '设备状态',
                    hasBot: false,
                    hasTop: false
                }
            },
            {
                path: "/device/reboot",
                name: "deviceReboot",
                component: () => import('@/views/device/reboot.vue'),
                meta: {
                    title: '设备重启',
                    hasBot: false,
                    hasTop: false
                }
            },
            {
                path: "/device/infoLog/index",
                name: "infoLogIndex",
                component: () => import('@/views/device/infoLog/index.vue'),
                meta: {
                    title: '信息日志',
                    hasBot: false,
                    hasTop: false
                }
            },
            {
                path: "/device/sell",
                name: "deviceSell",
                component: () => import('@/views/device/sell.vue'),
                meta: {
                    title: '在售停售',
                    hasBot: false,
                    hasTop: false
                }
            },
        ]
    },
]

export default device;