import { RouteConfig } from 'vue-router'

/**
 * OKR协同管理路由
 */

export const okrRoutes: Array<RouteConfig> = [
  {
    path: '/okr',
    component: () => import('@/layout/home.vue'),
    redirect: '/okr/okr-home',
    children: [
      {
        path: 'kr-detail',
        name: 'KRDetail',
        component: () => import('@/views/okr/kr-detail.vue'),
        meta: {
          title: '客户数据收集'
        }
      },
      {
        path: 'kr-create',
        name: 'KRCreate',
        component: () => import('@/views/okr/kr-create.vue'),
        meta: {
          title: '新建Key Result'
        }
      },
      {
        path: 'o-objective',
        name: 'OObjective',
        component: () => import('@/views/okr/o-objective.vue'),
        meta: {
          title: '选择Objective'
        }
      },
      {
        path: 'o-search',
        name: 'OSearch',
        component: () => import('@/views/okr/o-search.vue'),
        meta: {
          title: ''
        }
      },
      {
        path: 'kr-state',
        name: 'KRState',
        component: () => import('@/views/okr/kr-state.vue'),
        meta: {
          title: '类型'
        }
      },
      {
        path: 'okr-home',
        name: 'OkrHome',
        component: () => import('@/views/okr/okr-home.vue'),
        meta: {
          title: '我的OKR'
        }
      },
      {
        path: 'okr-progress',
        name: 'OkrProgress',
        component: () => import('@/views/okr/okr-progress.vue'),
        meta: {
          title: '所有进度'
        }
      },

      {
        path: 'o-avatorEdit',
        name: 'OAvatorEdit',
        component: () => import('@/views/okr/o-avatorEdit.vue'),
        meta: {
          title: '增强公司内部管理制度'
        }
      },
      {
        path: 'o-priority',
        name: 'OPriority',
        component: () => import('@/views/okr/o-priority.vue'),
        meta: {
          title: '优先级'
        }
      },
      {
        path: 'o-accessibility',
        name: 'OAccessibility',
        component: () => import('@/views/okr/o-accessibility.vue'),
        meta: {
          title: '可访问性'
        }
      },
      {
        path: 'o-extendedAttribute',
        name: 'OExtendedAttribute',
        component: () => import('@/views/okr/o-extendedAttribute.vue'),
        meta: {
          title: '拓展属性'
        }
      },
      {
        path: 'o-describe',
        name: 'ODescribe',
        component: () => import('@/views/okr/o-describe.vue'),
        meta: {
          title: '描述'
        }
      },
      {
        path: 'o-relation',
        name: 'ORelation',
        component: () => import('@/views/okr/o-relation.vue'),
        meta: {
          title: '关联'
        }
      }
    ]
  }
]
