import type { RouteRecordRaw } from 'vue-router'

const routers: Array<RouteRecordRaw> = [
  {
    path: '/category-manage',
    component: () => import('@/views/CategoryManage.vue'),
    meta: {
      title: '分类管理',
      keepAlive: false
    }
  },
  {
    path: '/flow-manage',
    name: 'FlowManage',
    component: () => import('@/views/flow/FlowManage.vue'),
    meta: {
      title: '流程管理',
      keepAlive: false
    }
  },
  {
    path: '/order-detail',
    component: () => import('@/views/HomeDetail.vue'),
    meta: {
      title: '单据详情',
      keepAlive: false
    }
  },
  {
    path: '/org-manage',
    component: () => import('@/views/OrgManage.vue'),
    meta: {
      title: '组织管理',
      keepAlive: false
    }
  },
  {
    path: 'typical-one',
    name: 'typical-one',
    component: () => import('@/views/TypicalOne.vue'),
    meta: {
      title: '典型页面一',
      anonymous: true, // 访问是否需要登录
      keepAlive: true
    }
  },
  {
    path: 'typical-two',
    name: 'typical-two',
    component: () => import('@/views/TypicalThree.vue'),
    meta: {
      title: '典型页面二',
      anonymous: true, // 访问是否需要登录
      keepAlive: true
    }
  },
  {
    path: 'typical-three',
    name: 'typical-three',
    component: () => import('@/views/TypicalEleven.vue'),
    meta: {
      title: '典型页面三',
      anonymous: true, // 访问是否需要登录
      keepAlive: true
    }
  },
  {
    path: 'typical-four',
    name: 'typical-four',
    component: () => import('@/views/TypicalFour.vue'),
    meta: {
      title: '典型页面四',
      anonymous: true, // 访问是否需要登录
      keepAlive: true
    }
  },
  {
    path: 'typical-five',
    name: 'typical-five',
    component: () => import('@/views/TypicalFive.vue'),
    meta: {
      title: '典型页面五',
      anonymous: true, // 访问是否需要登录
      keepAlive: true
    }
  },
  {
    path: 'typical-six',
    name: 'typical-six',
    component: () => import('@/views/TypicalNine.vue'),
    meta: {
      title: '典型页面六',
      anonymous: true, // 访问是否需要登录
      keepAlive: true
    }
  },
  {
    path: 'typical-seven',
    name: 'typical-seven',
    component: () => import('@/views/TypicalTen.vue'),
    meta: {
      title: '典型页面七',
      anonymous: true, // 访问是否需要登录
      keepAlive: true
    }
  },
  {
    path: 'typical-eight',
    name: 'typical-eight',
    component: () => import('@/views/TypicalSeven.vue'),
    meta: {
      title: '典型页面八',
      anonymous: true, // 访问是否需要登录
      keepAlive: true
    }
  },
  {
    path: 'typical-nine',
    name: 'typical-nine',
    component: () => import('@/views/TypicalSix.vue'),
    meta: {
      title: '典型页面九',
      anonymous: true, // 访问是否需要登录
      keepAlive: true
    }
  },
  {
    path: 'typical-ten',
    name: 'typical-ten',
    component: () => import('@/views/TypicalEight.vue'),
    meta: {
      title: '典型页面十',
      anonymous: true, // 访问是否需要登录
      keepAlive: true
    }
  },
  {
    path: 'typical-eleven',
    name: 'typical-eleven',
    component: () => import('@/views/typical-eleven/index.vue'),
    meta: {
      title: '典型页面十一',
      anonymous: true, // 访问是否需要登录
      keepAlive: true
    }
  },

  {
    path: 'edit-table',
    name: 'edit-table',
    component: () => import('@/views/EditTable.vue'),
    meta: {
      title: '可编辑表格',
      anonymous: true, // 访问是否需要登录
      keepAlive: true
    }
  },
  {
    path: 'holiday/list',
    name: 'holidayList',
    component: () => import('@/views/holiday/HolidayList.vue'),
    meta: {
      title: '节假日列表'
    }
  },
  {
    path: 'holiday/view',
    name: 'holidayView',
    component: () => import('@/views/holiday/HolidayView.vue'),
    meta: {
      title: '节假日详情'
    }
  },
  {
    path: 'counter/list',
    name: 'counterList',
    component: () => import('@/views/counter/CounterList.vue'),
    meta: {
      title: '业务计数器列表'
    }
  },
  {
    path: 'audit-log/list',
    name: 'auditLogList',
    component: () => import('@/views/audit-log/AuditLogList.vue'),
    meta: {
      title: '用户操作日志',
      anonymous: true, // 访问是否需要登录
      keepAlive: true // 未登录是否展示头部
    }
  },
  {
    path: 'heai/message',
    name: 'HeaiMessageManage',
    component: () => import('@/views/heai/HeaiMessageManage.vue')
  },
  {
    path: 'heai/message-type',
    name: 'HeaiMessageManageType',
    component: () => import('@/views/heai/HeaiMessageTypeManage.vue')
  },
  {
    path: 'form/form-type',
    name: 'FormFormType',
    component: () => import('@/views/form/FormTypeManage.vue')
  },
  {
    path: 'form/dept-sn',
    name: 'FormDeptSn',
    component: () => import('@/views/form/DeptSnManage.vue')
  },
  {
    path: 'form/workflow-relation',
    name: 'FormWorkflowRelation',
    component: () => import('@/views/form/WorkflowRelationManage.vue')
  }
]

export default routers
