import Vue from 'vue'
import Router from 'vue-router'
import layout from '../views/layout/layout'

const _import = require('./_import_' + process.env.NODE_ENV)

if(Router.version >= '3.1.0'){
  const originalPush = Router.prototype.push
  Router.prototype.push = function push(location) {
    return originalPush.call(this, location).catch(err => err)
  }
}

Vue.use(Router)

export const constantRouterMap = [
  {path: '/', redirect: '/login'},
  {path: '/login', component: _import('login/index'), name: 'login'},
  {path: '/modify-password/:adminName', component: _import('login/modify-password'), name: 'modify-password'},
  // { path: '/authredirect', component: _import('login/authredirect'), hidden: true },
  // { path: '/404', component: _import('errorPage/404'), hidden: true },
  // { path: '/401', component: _import('errorPage/401'), hidden: true },
  {
    path: '/dashboard',
    component: layout,
    redirect: '/dashboard/index',
    children: [{
      path: '/dashboard/index',
      component: _import('dashboard/index'),
      name: 'dashboard_index',
      meta: {
        title: '控制台',
        breadcrumb: [
          {title: '首页', path: '/dashboard/index'},
        ],
      },
    }]
  },
  {
    path: '/shop',
    component: layout,
    redirect: '/shop/dec-order-list',
    children: [
      {
        path: '/shop/dec-order-list',
        component: _import('shop/dec-order-list'),
        name: 'shop_dec-order-list',
        meta: {
          title: '报单列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '商城管理', path: '/shop/dec-order-list'},
          ],
        },
      },
      {
        path: '/shop/order-list',
        component: _import('shop/order-list'),
        name: 'shop_order-list',
        meta: {
          title: '订单列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '商城管理', path: '/shop/dec-order-list'},
          ],
        },

      },
      {
        path: '/shop/order-shop-list',
        component: _import('shop/order-shop-list'),
        name: 'shop_order_shop-list',
        meta: {
          title: '外部商城订单列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '商城管理', path: '/shop/dec-order-list'},
          ],
        },

      },
        {
            path: '/shop/order-dec-list',
            component: _import('shop/order-dec-list'),
            name: 'shop_order_dec-list',
            meta: {
                title: '外部商城报单列表',
                breadcrumb: [
                    {title: '首页', path: '/dashboard/index'},
                    {title: '商城管理', path: '/shop/dec-order-list'},
                ],
            },

        },
      {
        path: '/shop/order-standard-list',
        component: _import('shop/order-standard-list'),
        name: 'shop_order_standard-list',
        meta: {
          title: '外部商城达标订单列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '商城管理', path: '/shop/dec-order-list'},
          ],
        },

      },
        {
            path: '/shop/package',
            component: _import('shop/package'),
            name: 'shop_package',
            meta: {
                title: '报单套餐列表',
                breadcrumb: [
                    {title: '首页', path: '/dashboard/index'},
                    {title: '商城管理', path: '/shop/dec-order-list'},
                ],
            },

        },
        {
            path: '/shop/package-add',
            component: _import('shop/package-add'),
            name: 'shop_package-add',
            meta: {
                title: '报单套餐添加',
                breadcrumb: [
                    {title: '首页', path: '/dashboard/index'},
                    {title: '商城管理', path: '/shop/dec-order-list'},
                ],
            },

        },
        {
            path: '/shop/index',
            component: _import('shop/index'),
            name: 'shop_index',
            meta: {
                title: '商品列表',
                breadcrumb: [
                    {title: '首页', path: '/dashboard/index'},
                    {title: '商城管理', path: '/shop/dec-order-list'},
                ],
            },

        },
        {
            path: '/shop/goods-add',
            component: _import('shop/goods-add'),
            name: 'shop_goods-add',
            meta: {
                title: '商品添加',
                breadcrumb: [
                    {title: '首页', path: '/dashboard/index'},
                    {title: '商城管理', path: '/shop/dec-order-list'},
                ],
            },

        },
    ],
  },
  {
    path: '/user',
    component: layout,
    redirect: '/user/index',
    children: [
      {
        path: '/user/index',
        component: _import('user/index'),
        name: 'user_index',
        meta: {
          title: '会员列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
      {
        path: '/user/user-add-opt',
        component: _import('user/user-add-opt'),
        name: 'user_user-add-opt',
        meta: {
          title: '空单操作',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
        {
            path: '/user/empty-list',
            component: _import('user/empty-list'),
            name: 'user_empty_list',
            meta: {
                title: '空单列表',
                breadcrumb: [
                    {title: '首页', path: '/dashboard/index'},
                    {title: '会员管理', path: '/user/index'},
                ],
            },
        },
      {
        path: '/user/bind',
        component: _import('user/bind'),
        name: 'user_bind',
        meta: {
          title: '点位绑定',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
      {
        path: '/user/bind-add',
        component: _import('user/bind-edit'),
        name: 'user_bind-add',
        meta: {
          title: '添加点位绑定',
          highLight: '/user/bind',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
            {title: '点位绑定', path: '/user/bind'},
          ],
        },
      },
      {
        path: '/user/bind-edit/:id',
        component: _import('user/bind-edit'),
        name: 'user_bind-edit',
        meta: {
          title: '编辑点位绑定',
          highLight: '/user/bind',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
            {title: '点位绑定', path: '/user/bind'},
          ],
        },
      },
      {
        path: '/user/teamwork',
        component: _import('user/teamwork'),
        name: 'user_teamwork',
        meta: {
          title: '点位合作',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
      {
        path: '/user/teamwork-add',
        component: _import('user/teamwork-edit'),
        name: 'user_teamwork-add',
        meta: {
          title: '添加点位合作',
          highLight: '/user/teamwork',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
            {title: '点位合作', path: '/user/teamwork'},
          ],
        },
      },
      {
        path: '/user/teamwork-edit/:id',
        component: _import('user/teamwork-edit'),
        name: 'user_teamwork-edit',
        meta: {
          title: '编辑点位合作',
          highLight: '/user/teamwork',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
            {title: '点位合作', path: '/user/teamwork'},
          ],
        },
      },
      {
        path: '/user/system',
        component: _import('user/system'),
        name: 'user_system',
        meta: {
          title: '体系管理',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
      {
        path: '/user/system-add',
        component: _import('user/system-edit'),
        name: 'user_system-add',
        meta: {
          title: '添加体系',
          highLight: '/user/system',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
            {title: '体系管理', path: '/user/system'},
          ],
        },
      },
      {
        path: '/user/system-edit/:id',
        component: _import('user/system-edit'),
        name: 'user_system-edit',
        meta: {
          title: '编辑体系',
          highLight: '/user/system',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
            {title: '体系管理', path: '/user/system'},
          ],
        },
      },
      {
        path: '/user/group',
        component: _import('user/group'),
        name: 'user_group',
        meta: {
          title: '团队领导人列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
      {
        path: '/user/move',
        component: _import('user/move'),
        name: 'user_move',
        meta: {
          title: '移网管理',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
      {
        path: '/user/move-add',
        component: _import('user/move-add'),
        name: 'user_move-add',
        meta: {
          title: '申请移网',
          highLight: '/user/move',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
            {title: '移网管理', path: '/user/move'},
          ],
        },
      },
      {
        path: '/user/reg-info',
        component: _import('user/reg-info'),
        name: 'user_reg-info',
        meta: {
          title: '注册信息报表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
      {
        path: '/user/reg-info-audit',
        component: _import('user/reg-info-audit'),
        name: 'user_reg-info-audit',
        meta: {
          title: '注册信息审核',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
      {
        path: '/user/reg-info-audit-add-opt/:id?',
        component: _import('user/reg-info-audit-add-opt'),
        name: 'user_reg-info-audit-add-opt',
        meta: {
          title: '注册信息添加操作',
          highLight: '/user/reg-info-audit',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
            {title: '注册信息审核', path: '/user/reg-info-audit'},
          ],
        },
      },
      {
        path: '/user/status-audit-list',
        component: _import('user/status-audit-list'),
        name: 'user_status-audit-list',
        meta: {
          title: '会员状态管理',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
      {
        path: '/user/status-audit-add',
        component: _import('user/status-audit-add'),
        name: 'user_status-audit-add',
        meta: {
          title: '申请修改会员状态',
          highLight: '/user/status-audit-list',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
            {title: '会员状态管理', path: '/user/status-audit-list'},
          ],
        },
      },
      {
        path: '/user/status-audit-add/:userName',
        component: _import('user/status-audit-add'),
        name: 'user_status-audit-add-username',
        meta: {
          title: '申请修改会员状态',
          highLight: '/user/status-audit-list',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
            {title: '会员状态管理', path: '/user/status-audit-list'},
          ],
        },
      },
        {
            path: '/user/dec-level-list',
            component: _import('user/dec-level-list'),
            name: 'user_dec-level-list',
            meta: {
                title: '会员级别调整列表',
                breadcrumb: [
                    {title: '首页', path: '/dashboard/index'},
                    {title: '会员管理', path: '/user/index'},
                ],
            },
        },
      {
        path: '/user/change-user-dec-level',
        component: _import('user/change-user-dec-level'),
        name: 'user_change-user-dec-level',
        meta: {
          title: '修改会员级别',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
      {
        path: '/user/change-user-dec-role',
        component: _import('user/change-user-dec-role'),
        name: 'user_change-user-dec-role',
        meta: {
          title: '修改报单中心级别',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
      {
        path: '/user/year-highest-emp-lv',
        component: _import('user/year-highest-emp-lv'),
        name: 'user_year-highest-emp-lv',
        meta: {
          title: '会员历史年度最高聘级表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
      {
        path: '/user/change-show-emp-level',
        component: _import('user/change-show-emp-level'),
        name: 'user_change-show-emp-level',
        meta: {
          title: '修改会员前台显示聘级',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '会员管理', path: '/user/index'},
          ],
        },
      },
    ]
  },
  {
    path: '/atlas',
    component: layout,
    redirect: '/atlas/relation-opt',
    children: [
      {
        path: '/atlas/relation-opt',
        component: _import('atlas/relation-opt'),
        name: 'atlas_relation-opt',
        meta: {
          title: '开拓网络',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '网络图谱', path: '/atlas/relation-opt'},
          ],
        },
      },
      {
        path: '/atlas/network-opt',
        component: _import('atlas/network-opt'),
        name: 'atlas_network-opt',
        meta: {
          title: '安置网络',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '网络图谱', path: '/atlas/relation-opt'},
          ],
        },
      },
      {
        path: '/atlas/network-line-opt',
        component: _import('atlas/network-line-opt'),
        name: 'atlas_network-line-opt',
        meta: {
          title: '安置链路',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '网络图谱', path: '/atlas/relation-opt'},
          ],
        },
      },
      {
        path: '/atlas/emp-user-line',
        component: _import('atlas/emp-user-line'),
        name: 'atlas_emp-user-line',
        meta: {
          title: '聘级网络',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '网络图谱', path: '/atlas/relation-opt'},
          ],
        },
      },
      // {
      //   path: '/atlas/emp-user-list',
      //   component: _import('atlas/emp-user-list'),
      //   name: 'atlas_emp-user-list',
      //   meta: {
      //     title: '聘级网络列表',
      //     breadcrumb: [
      //       {title: '首页', path: '/dashboard/index'},
      //       {title: '网络图谱', path: '/atlas/relation-opt'},
      //     ],
      //   },
      // },


    ]
  },
  {
    path: '/reconsume',
    component: layout,
    redirect: '/reconsume/pool-list',
    children: [
      {
        path: '/reconsume/pool-list',
        component: _import('reconsume/pool-list'),
        name: 'reconsume_pool-list',
        meta: {
          title: '复销池余额列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '复销管理', path: '/reconsume/pool-list'},
          ],
        },
      },
      {
        path: '/reconsume/deduct',
        component: _import('reconsume/deduct'),
        name: 'reconsume_deduct',
        meta: {
          title: '手动扣除月复销',
          highLight: '/reconsume/deduct',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '复销管理', path: '/reconsume/pool-list'},
          ],
        },
      },
      {
        path: '/reconsume/change-audit-list',
        component: _import('reconsume/change-audit-list'),
        name: 'reconsume_change-audit-list',
        meta: {
          title: '复销余额调整审核',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '复销管理', path: '/reconsume/pool-list'},
          ],
        },
      },
      {
        path: '/reconsume/change-audit-add/:userName?',
        component: _import('reconsume/change-audit-add'),
        name: 'reconsume_change-audit-add',
        meta: {
          title: '申请调整复销池余额',
          highLight: '/reconsume/change-audit-list',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '复销管理', path: '/reconsume/pool-list'},
            {title: '复销余额调整审核', path: '/reconsume/change-audit-list'},
          ],
        },
      },
      {
        path: '/reconsume/deduct-audit-list',
        component: _import('reconsume/deduct-audit-list'),
        name: 'reconsume_deduct-audit-list',
        meta: {
          title: '扣除复销审核',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '复销管理', path: '/reconsume/pool-list'},
          ],
        },
      },
      {
        path: '/reconsume/deduct-audit-add',
        component: _import('reconsume/deduct-audit-add'),
        name: 'reconsume_deduct-audit-add',
        meta: {
          title: '手动扣除月复销',
          highLight: '/reconsume/deduct-audit-list',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '复销管理', path: '/reconsume/pool-list'},
          ],
        },
      },
      {
        path: '/reconsume/flow-list',
        component: _import('reconsume/flow-list'),
        name: 'reconsume_flow-list',
        meta: {
          title: '复销流水',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '复销管理', path: '/reconsume/pool-list'},
          ],
        },
      },
    ]
  },
  {
    path: '/bonus',
    component: layout,
    redirect: '/bonus/period',
    children: [
      {
        path: '/bonus/period',
        component: _import('bonus/period'),
        name: 'bonus_period',
        meta: {
          title: '封期管理',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/balance-list',
        component: _import('bonus/balance-list'),
        name: 'bonus_balance-list',
        meta: {
          title: '会员奖金余额',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },

      {
        path: '/bonus/period-detail/:periodNum',
        component: _import('bonus/period-detail'),
        name: 'bonus_period-detail',
        meta: {
          title: '期奖金明细',
          highLight: '/bonus/period',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
            {title: '封期管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/new-period-bonus',
        component: _import('bonus/new-period-bonus'),
        name: 'bonus_new-period-bonus',
        meta: {
          title: '最新奖金',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/other-period-bonus',
        component: _import('bonus/other-period-bonus'),
        name: 'bonus_other-period-bonus',
        meta: {
          title: '往期奖金',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/flow-bonus',
        component: _import('bonus/flow-bonus'),
        name: 'bonus_flow-bonus',
        meta: {
          title: '奖金流水',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/flow-rp',
        component: _import('bonus/flow-rp'),
        name: 'bonus_flow-rp',
        meta: {
          title: '复消积分流水',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/flow-lx',
        component: _import('bonus/flow-lx'),
        name: 'bonus_flow-lx',
        meta: {
          title: '领袖分红奖流水',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/cf-lx-audit-list',
        component: _import('bonus/cf-lx-audit-list'),
        name: 'bonus_cf-lx-audit-list',
        meta: {
          title: '年度奖金发放审核',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/cf-lx-apply',
        component: _import('bonus/cf-lx-apply'),
        name: 'bonus_cf-lx-apply',
        meta: {
          title: '申请发放年度奖',
          highLight: '/bonus/cf-lx-audit-list',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
            {title: '年度奖金发放审核', path: '/bonus/cf-lx-audit-list'},
          ],
        },
      },
      {
        path: '/bonus/perf',
        component: _import('bonus/perf'),
        name: 'bonus_perf',
        meta: {
          title: '业绩管理',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/calc-qy',
        component: _import('bonus/calc-qy'),
        name: 'bonus_calc-qy',
        meta: {
          title: '区域津贴核算',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/resend-qy-list',
        component: _import('bonus/resend-qy-list'),
        name: 'bonus_resend-qy-list',
        meta: {
          title: '区域津贴补发列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/resend-qy-audit-list',
        component: _import('bonus/resend-qy-audit-list'),
        name: 'bonus_resend-qy-audit-list',
        meta: {
          title: '补发区域津贴审核列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/trace-down-qy',
        component: _import('bonus/trace-down-qy'),
        name: 'bonus_trace-down-qy',
        meta: {
          title: '团队奖向下追溯',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/trace-up-qy',
        component: _import('bonus/trace-up-qy'),
        name: 'bonus_trace-up-qy',
        meta: {
          title: '团队奖向上追溯',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/trace-down-yc',
        component: _import('bonus/trace-down-yc'),
        name: 'bonus_trace-down-yc',
        meta: {
          title: '荣衔奖向下追溯',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/trace-up-yc',
        component: _import('bonus/trace-up-yc'),
        name: 'bonus_trace-up-yc',
        meta: {
          title: '荣衔奖向上追溯',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
          path: '/bonus/trace-down-bd',
          component: _import('bonus/trace-down-bd'),
          name: 'bonus_trace-down-bd',
          meta: {
              title: '报单奖向下追溯',
              breadcrumb: [
                  {title: '首页', path: '/dashboard/index'},
                  {title: '奖金管理', path: '/bonus/period'},
              ],
          },
      },
      {
          path: '/bonus/trace-up-bd',
          component: _import('bonus/trace-up-bd'),
          name: 'bonus_trace-up-bd',
          meta: {
              title: '报单奖向上追溯',
              breadcrumb: [
                  {title: '首页', path: '/dashboard/index'},
                  {title: '奖金管理', path: '/bonus/period'},
              ],
          },
      },
      {
          path: '/bonus/trace-down-tg',
          component: _import('bonus/trace-down-tg'),
          name: 'bonus_trace-down-tg',
          meta: {
              title: '推广奖向下追溯',
              breadcrumb: [
                  {title: '首页', path: '/dashboard/index'},
                  {title: '奖金管理', path: '/bonus/period'},
              ],
          },
      },
      {
          path: '/bonus/trace-up-tg',
          component: _import('bonus/trace-up-tg'),
          name: 'bonus_trace-up-tg',
          meta: {
              title: '推广奖向上追溯',
              breadcrumb: [
                  {title: '首页', path: '/dashboard/index'},
                  {title: '奖金管理', path: '/bonus/period'},
              ],
          },
      },
      {
        path: '/bonus/trace-down-xf',
        component: _import('bonus/trace-down-xf'),
        name: 'bonus_trace-down-xf',
        meta: {
          title: '消费奖向下追溯',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/trace-up-xf',
        component: _import('bonus/trace-up-xf'),
        name: 'bonus_trace-up-xf',
        meta: {
          title: '消费奖向上追溯',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
          path: '/bonus/trace-down-yj',
          component: _import('bonus/trace-down-yj'),
          name: 'bonus_trace-down-yj',
          meta: {
              title: '业绩奖向下追溯',
              breadcrumb: [
                  {title: '首页', path: '/dashboard/index'},
                  {title: '奖金管理', path: '/bonus/period'},
              ],
          },
      },
      {
          path: '/bonus/trace-up-yj',
          component: _import('bonus/trace-up-yj'),
          name: 'bonus_trace-up-yj',
          meta: {
              title: '业绩奖向上追溯',
              breadcrumb: [
                  {title: '首页', path: '/dashboard/index'},
                  {title: '奖金管理', path: '/bonus/period'},
              ],
          },
      },
      {
          path: '/bonus/trace-down-gx',
          component: _import('bonus/trace-down-gx'),
          name: 'bonus_trace-down-gx',
          meta: {
              title: '共享奖向下追溯',
              breadcrumb: [
                  {title: '首页', path: '/dashboard/index'},
                  {title: '奖金管理', path: '/bonus/period'},
              ],
          },
      },
      {
          path: '/bonus/trace-up-gx',
          component: _import('bonus/trace-up-gx'),
          name: 'bonus_trace-up-gx',
          meta: {
              title: '共享奖向上追溯',
              breadcrumb: [
                  {title: '首页', path: '/dashboard/index'},
                  {title: '奖金管理', path: '/bonus/period'},
              ],
          },
      },
      {
          path: '/bonus/trace-down-gl',
          component: _import('bonus/trace-down-gl'),
          name: 'bonus_trace-down-gl',
          meta: {
              title: '管理奖向下追溯',
              breadcrumb: [
                  {title: '首页', path: '/dashboard/index'},
                  {title: '奖金管理', path: '/bonus/period'},
              ],
          },
      },
      {
          path: '/bonus/trace-up-gl',
          component: _import('bonus/trace-up-gl'),
          name: 'bonus_trace-up-gl',
          meta: {
              title: '管理奖向上追溯',
              breadcrumb: [
                  {title: '首页', path: '/dashboard/index'},
                  {title: '奖金管理', path: '/bonus/period'},
              ],
          },
      },
      {
        path: '/bonus/trace-down-fx',
        component: _import('bonus/trace-down-fx'),
        name: 'bonus_trace-down-fx',
        meta: {
          title: '复销奖向下追溯',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/trace-up-fx',
        component: _import('bonus/trace-up-fx'),
        name: 'bonus_trace-up-fx',
        meta: {
          title: '复销奖向上追溯',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/trace-bt',
        component: _import('bonus/trace-bt'),
        name: 'bonus_trace-bt',
        meta: {
          title: '报单中心补贴追溯',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/trace-fl',
        component: _import('bonus/trace-fl'),
        name: 'bonus_trace-fl',
        meta: {
          title: '报单中心货补追溯',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/trace-fw',
        component: _import('bonus/trace-fw'),
        name: 'bonus_trace-fw',
        meta: {
          title: '区域业绩提成追溯',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/perf-order',
        component: _import('bonus/perf-order'),
        name: 'bonus_perf-order',
        meta: {
          title: '业绩单',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/perf-period-list',
        component: _import('bonus/perf-period-list'),
        name: 'bonus_perf-period-list',
        meta: {
          title: '期业绩',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
          path: '/bonus/perf-month',
          component: _import('bonus/perf-month'),
          name: 'bonus_perf-month',
          meta: {
              title: '月业绩',
              breadcrumb: [
                  {title: '首页', path: '/dashboard/index'},
                  {title: '奖金管理', path: '/bonus/period'},
              ],
          },
      },
      {
        path: '/bonus/perf-standard',
        component: _import('bonus/perf-standard'),
        name: 'bonus_perf-standard',
        meta: {
          title: '达标业绩',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/score-month',
        component: _import('bonus/score-month'),
        name: 'bonus_score-month',
        meta: {
          title: '月积分',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/real-time-perf',
        component: _import('bonus/real-time-perf'),
        name: 'bonus_real-time-perf',
        meta: {
          title: '会员实时业绩',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/yc-perf',
        component: _import('bonus/yc-perf'),
        name: 'bonus_yc-perf',
        meta: {
          title: '荣衔业绩',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
      {
        path: '/bonus/user-perf',
        component: _import('bonus/user-perf'),
        name: 'leo-user-perf-table',
        meta: {
          title: '用户业绩',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '奖金管理', path: '/bonus/period'},
          ],
        },
      },
    ]
  },
  {
    path: '/report',
    component: layout,
    redirect: '/report/dec',
    children: [
      {
        path: '/report/dec',
        component: _import('report/dec'),
        name: 'report_dec',
        meta: {
          title: '报单查询',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '报表管理', path: '/report/dec'},
          ],
        },
      },
    ]
  },
  {
    path: '/finance',
    component: layout,
    redirect: '/finance/balance-audit-list',
    children: [
      {
        path: '/finance/balance-audit-list',
        component: _import('finance/balance-audit-list'),
        name: 'finance_balance-audit-list',
        meta: {
          title: '会员余额调整列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '财务管理', path: '/finance/balance-audit-list'},
          ],
        },
      },
      {
        path: '/finance/change-balance-opt',
        component: _import('finance/change-balance-opt'),
        name: 'finance_change-balance-opt',
        meta: {
          title: '申请调整会员余额',
          highLight: '/finance/balance-audit-list',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '财务管理', path: '/finance/balance-audit-list'},
            {title: '会员余额调整列表', path: '/finance/balance-audit-list'},
          ],
        },
      },
      {
        path: '/finance/dec-list',
        component: _import('finance/dec-list'),
        name: 'finance_dec-list',
        meta: {
          title: '报单订货单列表',
          highLight: '/finance/dec-list',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '财务管理', path: '/finance/balance-audit-list'},
          ],
        },
      },
      {
        path: '/finance/transfer-list',
        component: _import('finance/transfer-list'),
        name: 'finance_transfer-list',
        meta: {
          title: '转账记录列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '财务管理', path: '/finance/balance-audit-list'},
          ],
        },
      },
      {
        path: '/finance/withdraw',
        component: _import('finance/withdraw'),
        name: 'finance_withdraw',
        meta: {
          title: '提现管理',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '提现管理', path: '/finance/withdraw'},
          ],
        },
      },
      {
        path: '/finance/withdraw-add',
        component: _import('finance/withdraw-add'),
        name: 'finance_withdraw-add',
        meta: {
          title: '新增提现',
          highLight: '/finance/withdraw',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '提现管理', path: '/finance/withdraw'},
            {title: '新增提现', path: '/finance/withdraw-add'},
          ],
        },
      },
      {
        path: '/finance/invoice-audit',
        component: _import('finance/invoice-audit'),
        name: 'finance_invoice-audit',
        meta: {
          title: '发票管理',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '发票管理', path: '/finance/invoice-audit'},
          ],
        },
      },
      {
        path: '/finance/perf-audit-list',
        component: _import('finance/perf-audit-list'),
        name: 'finance_perf-audit-list',
        meta: {
          title: '会员业绩调整列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '财务管理', path: '/finance/balance-audit-list'},
          ],
        },
      },
      {
        path: '/finance/perf-apply',
        component: _import('finance/perf-apply'),
        name: 'finance_perf-apply',
        meta: {
          title: '调整会员业绩',
          highLight: '/finance/perf-audit-list',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '财务管理', path: '/finance/balance-audit-list'},
            {title: '调整会员业绩', path: '/finance/perf-audit-list'},
          ],
        },
      },
      {
        path: '/finance/deal-type',
        component: _import('finance/deal-type'),
        name: 'finance_deal-type',
        meta: {
          title: '交易类型',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '交易类型', path: '/finance/deal-type'},
          ],
        },
      },
      {
        path: '/finance/deal-type-add',
        component: _import('finance/deal-type-add'),
        name: 'finance_deal-type-add',
        meta: {
          title: '交易类型添加',
          highLight: '/finance/deal-type',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '交易类型', path: '/finance/deal-type'},
            {title: '交易类型添加', path: '/finance/deal-type-add'},
          ],
        },
      },
      {
        path: '/finance/history-bonus',
        component: _import('finance/history-bonus'),
        name: 'finance_history-bonus',
        meta: {
          title: '历史奖金余额',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '财务管理', path: '/finance/balance-audit-list'},
          ],
        },
      },
        {
            path: '/finance/recharge',
            component: _import('finance/recharge'),
            name: 'finance_recharge',
            meta: {
                title: '充值管理',
                breadcrumb: [
                    {title: '首页', path: '/dashboard/index'},
                    {title: '财务管理', path: '/finance/balance-audit-list'},
                ],
            },
        },
        {
            path: '/finance/recharge-status',
            component: _import('finance/recharge-status'),
            name: 'finance_recharge-status',
            meta: {
                title: '状态管理',
                breadcrumb: [
                    {title: '首页', path: '/dashboard/index'},
                    {title: '财务管理', path: '/finance/balance-audit-list'},
                ],
            },
        },
    ]
  },
  {
    path: '/article',
    component: layout,
    redirect: '/article/category',
    children: [
      {
        path: '/article/category',
        component: _import('article/category'),
        name: 'article_category',
        meta: {
          title: '分类管理',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '分类管理', path: '/article/category'},
          ],
        },
      },
      {
        path: '/article/category-add',
        component: _import('article/category-add'),
        name: 'article_category-add',
        meta: {
          title: '添加分类',
          highLight: '/article/category-add',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '分类管理', path: '/article/category'},
            {title: '添加分类', path: '/article/category-add'},
          ],
        },
      },
      {
        path: '/article/index',
        component: _import('article/index'),
        name: 'article_index',
        meta: {
          title: '文章列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '文章列表', path: '/article/index'},
          ],
        },
      },
      {
        path: '/article/add',
        component: _import('article/edit'),
        name: 'article_add',
        meta: {
          title: '添加文章',
          highLight: '/article/index',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '文章列表', path: '/article/index'},
            {title: '添加文章', path: '/article/add'},
          ],
        },
      },
      {
        path: '/article/edit/:id',
        component: _import('article/edit'),
        name: 'article_edit',
        meta: {
          title: '编辑文章',
          highLight: '/article/index',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '文章列表', path: '/article/index'},
            {title: '编辑文章', path: '/article/edit'},
          ],
        },
      },
    ]
  },
  {
    path: '/message',
    component: layout,
    redirect: '/message/list',
    children: [
      {
        path: '/message/list',
        component: _import('message/list'),
        name: 'message_list',
        meta: {
          title: '站内信列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '站内信管理', path: '/message/list'},
          ],
        },
      },
      {
        path: '/message/add',
        component: _import('message/edit'),
        name: 'message_add',
        meta: {
          title: '添加站内信',
          highLight: '/message/list',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '站内信管理', path: '/message/list'},
            {title: '站内信列表', path: '/message/list'},
          ],
        },
      },
    ]
  },
  {
    path: '/file',
    component: layout,
    redirect: '/file/export',
    children: [
      {
        path: '/file/export',
        component: _import('file/export'),
        name: 'file_export',
        meta: {
          title: '导出文件',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '文件管理', path: '/bonus/period'},
          ],
        },
      },
    ]
  },
  {
    path: '/admin',
    component: layout,
    redirect: '/admin/index',
    children: [
      {
        path: '/admin/change-password',
        component: _import('admin/edit'),
        name: 'admin_change-password',
        meta: {
          title: '重置密码',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '管理员管理', path: '/admin/index'},
          ],
        },
      },
      {
        path: '/admin/index',
        component: _import('admin/index'),
        name: 'admin_index',
        meta: {
          title: '管理员列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '管理员管理', path: '/admin/index'},
          ],
        },
      }, {
        path: '/admin/add',
        component: _import('admin/edit'),
        name: 'admin_add',
        meta: {
          title: '添加管理员',
          highLight: '/admin/index',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '管理员管理', path: '/admin/index'},
            {title: '管理员列表', path: '/admin/index'},
          ],
        },
      }, {
        path: '/admin/edit/:id',
        component: _import('admin/edit'),
        name: 'admin_edit',
        meta: {
          title: '编辑管理员',
          highLight: '/admin/index',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '管理员管理', path: '/admin/index'},
            {title: '管理员列表', path: '/admin/index'},
          ],
        },
      }, {
        path: '/admin/role',
        component: _import('admin/role'),
        name: 'admin_role',
        meta: {
          title: '管理员角色列表',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '管理员管理', path: '/admin/index'},
          ],
        },
      }, {
        path: '/admin/role-add',
        component: _import('admin/role-add'),
        name: 'admin_role-add',
        meta: {
          title: '添加管理员角色',
          highLight: '/admin/role',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '管理员管理', path: '/admin/index'},
            {title: '管理员角色列表', path: '/admin/role'},
          ],
        },
      },{
        path: '/admin/role-edit/:id',
        component: _import('admin/role-add'),
        name: 'admin_role-edit',
        meta: {
          title: '编辑管理员角色',
          highLight: '/admin/role',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '管理员管理', path: '/admin/index'},
            {title: '管理员角色列表', path: '/admin/role'},
          ],
        },
      }, {
        path: '/admin/role-permission/:id',
        component: _import('admin/role-permission'),
        name: 'admin_role-permission',
        meta: {
          title: '管理员角色权限',
          highLight: '/admin/role',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '管理员管理', path: '/admin/index'},
            {title: '管理员角色列表', path: '/admin/role'},
          ],
        },
      }, {
        path: '/admin/role-column/:id',
        component: _import('admin/role-column'),
        name: 'admin_role-column',
        meta: {
          title: '管理员角色列表字段权限',
          highLight: '/admin/role',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '管理员管理', path: '/admin/index'},
            {title: '管理员角色列表', path: '/admin/role'},
          ],
        },
      }, {
        path: '/admin/test',
        component: _import('admin/test'),
        name: 'admin_test',
      }]
  },
  {
    path: '/ad',
    component: layout,
    redirect: '/ad/location',
    children: [
      {
        path: '/ad/location',
        component: _import('ad/location'),
        name: 'ad_location',
        meta: {
          title: '广告位',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '广告管理', path: '/ad/location'},
          ],
        },
      },
      {
        path: '/ad/list/:lid',
        component: _import('ad/list'),
        name: 'ad_list',
        meta: {
          title: '广告列表',
          highLight: '/ad/location',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '广告管理', path: '/ad/location'},
            {title: '广告位', path: '/ad/location'},
          ],
        },
      },
      {
        path: '/ad/add',
        component: _import('ad/edit'),
        name: 'ad_add',
        meta: {
          title: '添加广告',
          highLight: '/ad/location',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '广告管理', path: '/ad/location'},
            {title: '广告位', path: '/ad/location'},
          ],
        },
      },
      {
        path: '/ad/edit/:id',
        component: _import('ad/edit'),
        name: 'ad_edit',
        meta: {
          title: '编辑广告',
          highLight: '/ad/location',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '广告管理', path: '/ad/location'},
            {title: '广告位', path: '/ad/location'},
          ],
        },
      },
    ]
  },
  {
    path: '/log',
    component: layout,
    redirect: '/log/admin-login',
    children: [
      {
        path: '/log/admin-login',
        component: _import('log/admin-login'),
        name: 'log_admin-login',
        meta: {
          title: '管理员登录日志',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '日志管理', path: '/log/admin-login'},
          ],
        },
      },
      {
        path: '/log/user-login',
        component: _import('log/user-login'),
        name: 'log_user-login',
        meta: {
          title: '会员登录日志',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '日志管理', path: '/log/user-login'},
          ],
        },
      },
      {
        path: '/log/admin-handle',
        component: _import('log/admin-handle'),
        name: 'log_admin-handle',
        meta: {
          title: '管理员操作日志',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '日志管理', path: '/log/admin-login'},
          ],
        },
      },
      {
        path: '/log/user-handle',
        component: _import('log/user-handle'),
        name: 'log_user-handle',
        meta: {
          title: '会员操作日志',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '日志管理', path: '/log/admin-login'},
          ],
        },
      },
      {
        path: '/log/system',
        component: _import('log/system'),
        name: 'log_system',
        meta: {
          title: '系统日志',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '日志管理', path: '/log/admin-login'},
          ],
        },
      },
    ]
  },
  {
    path: '/config',
    component: layout,
    redirect: '/config/base',
    children: [
      {
        path: '/config/base',
        component: _import('config/base'),
        name: 'config_base',
        meta: {
          title: '站点设置',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/base'},
          ],
        },
      }, {
        path: '/config/period',
        component: _import('config/period'),
        name: 'config_period',
        meta: {
          title: '期数配置',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
          ],
        },
      }, {
        path: '/config/other',
        component: _import('config/other'),
        name: 'config_other',
        meta: {
          title: '其他配置',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
          ],
        },
      }, {
        path: '/config/dec-level',
        component: _import('config/dec-level'),
        name: 'config_dec-level',
        meta: {
          title: '会员级别配置',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
          ],
        },
      }, {
        path: '/config/dec-level-add',
        component: _import('config/dec-level-edit'),
        name: 'config_dec-level-add',
        meta: {
          title: '添加会员级别',
          highLight: '/config/dec-level',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
            {title: '会员级别配置', path: '/config/dec-level'},
          ],
        },
      }, {
        path: '/config/dec-level-edit/:id',
        component: _import('config/dec-level-edit'),
        name: 'config_dec-level-edit',
        meta: {
          title: '编辑会员级别',
          highLight: '/config/dec-level',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
            {title: '会员级别配置', path: '/config/dec-level'},
          ],
        },
      }, {
        path: '/config/dec-role',
        component: _import('config/dec-role'),
        name: 'config_dec-role',
        meta: {
          title: '报单中心级别配置',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
          ],
        },
      }, {
        path: '/config/dec-role-edit/:id',
        component: _import('config/dec-role-edit'),
        name: 'config_dec-role-edit',
        meta: {
          title: '编辑报单中心级别',
          highLight: '/config/dec-role',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
            {title: '报单中心级别配置', path: '/config/dec-role'},
          ],
        },
      }, {
        path: '/config/emp-level',
        component: _import('config/emp-level'),
        name: 'config_emp-level',
        meta: {
          title: '会员聘级配置',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
          ],
        },
      }, {
        path: '/config/emp-level-add',
        component: _import('config/emp-level-edit'),
        name: 'config_emp-level-add',
        meta: {
          title: '添加聘级',
          highLight: '/config/emp-level',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
            {title: '聘级管理', path: '/config/emp-level'},
          ],
        },
      }, {
        path: '/config/emp-level-edit/:id',
        component: _import('config/emp-level-edit'),
        name: 'config_emp-level-edit',
        meta: {
          title: '编辑聘级',
          highLight: '/config/emp-level',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
            {title: '聘级管理', path: '/config/emp-level'},
          ],
        },
      }, {
        path: '/config/reg-type',
        component: _import('config/reg-type'),
        name: 'config_reg-type',
        meta: {
          title: '会员注册类型配置',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
          ],
        },
      }, {
        path: '/config/bonus-opt',
        component: _import('config/bonus-opt'),
        name: 'config_bonus-opt',
        meta: {
          title: '奖金设置',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
          ],
        },
      }, {
        path: '/config/clear-data',
        component: _import('config/clear-data'),
        name: 'config_clear-data',
        meta: {
          title: '清空数据',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
          ],
        },
      }, {
        path: '/config/api-opt',
        component: _import('config/api-opt'),
        name: 'config_api-opt',
        meta: {
          title: '第三方接口',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
          ],
        },
      }, {
        path: '/config/api-edit/:type/:id',
        component: _import('config/api-edit'),
        name: 'config_api-edit',
        meta: {
          title: '编辑第三方接口',
          highLight: '/config/api-opt',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
            {title: '第三方接口', path: '/config/api-opt'},
          ],
        },
      },
      {
        path: '/config/sms',
        component: _import('config/sms'),
        name: 'config_sms',
        meta: {
          title: '短信配置',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
          ],
        },
      },
      {
        path: '/config/transfer',
        component: _import('config/transfer'),
        name: 'config_transfer',
        meta: {
          title: '转账配置',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
          ],
        },
      },
      {
        path: '/config/score',
        component: _import('config/score'),
        name: 'config_score',
        meta: {
          title: '积分配置',
          breadcrumb: [
            {title: '首页', path: '/dashboard/index'},
            {title: '配置', path: '/config/index'},
          ],
        },
      },
    ]
  }
  // {
  //     path: '/documentation',
  //     component: Layout,
  //     redirect: '/documentation/index',
  //     children: [{
  //         path: 'index',
  //         component: _import('documentation/index'),
  //         name: 'documentation',
  //         meta: { title: 'documentation', icon: 'documentation', noCache: true }
  //     }]
  // }
]

export default new Router({
  routes: constantRouterMap
})
