// 现场管理
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')
const routes: Route.recordRaw[] = [
  {
    path: '/scene',
    component: Layout,
    redirect: '/scene/scenelist',
    name: 'Scene',
    meta: {
      title: '现场管理',
      icon: 'ep:key',
      auth: '/scene',
    },
    children: [
      {
        path: 'scenelist',
        name: 'scenelist',
        component: () => import('@/views/scene/index.vue'),
        meta: {
          title: '现场管理',
          auth: '/scene',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/scene',
        },
      },
      {
        path: 'sceneedit',
        name: 'sceneedit',
        component: () => import('@/views/scene/sceneEdit.vue'),
        meta: {
          title: '现场编辑',
          auth: '/scene',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/scene',
        },
      },
      {
        path: 'scenedetail',
        name: 'scenedetail',
        component: () => import('@/views/scene/sceneDetail.vue'),
        meta: {
          title: '现场详情',
          auth: '/scene',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/scene',
        },
      },
      {
        path: 'scenereport',
        name: 'scenereport',
        component: () => import('@/views/scene/sceneReport.vue'),
        meta: {
          title: '现场报告',
          auth: '/scene',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/scene',
        },
      },
    ],
  },
]

export default routes
