// 数据管理
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')
const routes: Route.recordRaw[] = [
  {
    path: '/dataset',
    component: Layout,
    redirect: '/dataDevice',
    name: 'Dataset',
    meta: {
      title: '数据管理',
      icon: 'ep:key',
      auth: '/dataset',
    },
    children: [
      {
        path: '/dataDevice',
        component: Layout,
        redirect: '/dataDevice/device',
        name: 'Ddevice',
        meta: {
          title: '设备管理',
          icon: 'ep:key',
          auth: '/data/device',
        },
        children: [
          {
            path: 'device',
            name: 'Device',
            component: () => import('@/views/data/device/index.vue'),
            meta: {
              title: '设备管理',
              auth: '/data/device',
              sidebar: false,
              breadcrumb: true,
              activeMenu: '/dataDevice',
            },
          },
        ],
      },
      {
        path: '/dataCollect',
        component: Layout,
        redirect: '/dataCollect/collect',
        name: 'Dcollect',
        meta: {
          title: '采集数据',
          icon: 'ep:key',
          auth: '/data/collect',
        },
        children: [
          {
            path: 'collect',
            name: 'Collect',
            component: () => import('@/views/data/collect/index.vue'),
            meta: {
              title: '采集数据',
              auth: '/data/collect',
              sidebar: false,
              breadcrumb: true,
              activeMenu: '/dataCollect',
            },
          },
        ],
      },
      // {
      //   path: '/dataElectricity',
      //   component: Layout,
      //   redirect: '/dataElectricity/electricity',
      //   name: 'DElectricity',
      //   meta: {
      //     title: '用电监测',
      //     icon: 'ep:key',
      //     auth: '/data/electricity',
      //   },
      //   children: [
      //     {
      //       path: 'electricity',
      //       name: 'Electricity',
      //       component: () => import('@/views/data/electricity/index.vue'),
      //       meta: {
      //         title: '用电监测',
      //         auth: '/data/electricity',
      //         sidebar: false,
      //         breadcrumb: true,
      //         activeMenu: '/dataElectricity',
      //       },
      //     },
      //   ],
      // },
      // {
      //   path: '/dataHot',
      //   component: Layout,
      //   redirect: '/dataHot/hot',
      //   name: 'Dhot',
      //   meta: {
      //     title: '用热监测',
      //     icon: 'ep:key',
      //     auth: '/data/hot',
      //   },
      //   children: [
      //     {
      //       path: 'hot',
      //       name: 'Hot',
      //       component: () => import('@/views/data/useHeat/index.vue'),
      //       meta: {
      //         title: '用热监测',
      //         auth: '/data/hot',
      //         sidebar: false,
      //         breadcrumb: true,
      //         activeMenu: '/dataHot',
      //       },
      //     },
      //   ],
      // },
      // {
      //   path: '/dataConsumption',
      //   component: Layout,
      //   redirect: '/dataConsumption/consumption',
      //   name: 'Dconsumption',
      //   meta: {
      //     title: '用气监测',
      //     icon: 'ep:key',
      //     auth: '/data/consumption',
      //   },
      //   children: [
      //     {
      //       path: 'consumption',
      //       name: 'Consumption',
      //       component: () => import('@/views/data/consumption/index.vue'),
      //       meta: {
      //         title: '用气监测',
      //         auth: '/data/consumption',
      //         sidebar: false,
      //         breadcrumb: true,
      //         activeMenu: '/dataConsumption',
      //       },
      //     },
      //   ],
      // },
      // {
      //   path: '/dataEnvironment',
      //   component: Layout,
      //   redirect: '/dataEnvironment/environment',
      //   name: 'Denvironment',
      //   meta: {
      //     title: '环境参数',
      //     icon: 'ep:key',
      //     auth: '/data/environment',
      //   },
      //   children: [
      //     {
      //       path: 'environment',
      //       name: 'Environment',
      //       component: () => import('@/views/data/environment/index.vue'),
      //       meta: {
      //         title: '环境参数',
      //         auth: '/data/environment',
      //         sidebar: false,
      //         breadcrumb: true,
      //         activeMenu: '/dataEnvironment',
      //       },
      //     },
      //   ],
      // },
      {
        path: '/dataDetail',
        component: Layout,
        redirect: '/dataDetail/detail',
        name: 'DdeviceDetail',
        meta: {
          title: '详情分析',
          icon: 'ep:key',
          auth: '/data/device',
          sidebar: false,
          breadcrumb: false,
        },
        children: [
          {
            path: 'detail',
            name: 'Detail',
            component: () => import('@/views/data/device/detail.vue'),
            meta: {
              title: '详情分析',
              auth: '/data/device',
              sidebar: false,
              breadcrumb: false,
              activeMenu: '/dataDevice',
            },
          },
        ],
      },
    ],
  },
]

export default routes
