import { DEFAULT_LAYOUT } from '@/router/constants'
import { Customer } from '@/enums/api'
import { AppRouteRecordRaw } from '../types'

const Biz: AppRouteRecordRaw = {
  path: '/biz',
  name: 'Biz',
  component: DEFAULT_LAYOUT,
  meta: {
    title: '营销中心',
    icon: 'icon-compass',
    iSize: 22,
    requiresAuth: true,
    order: 5
  },
  children: [
    {
      path: 'customer',
      name: 'Customer',
      component: () => import('@/views/biz/customer/index.vue'),
      meta: {
        title: '客户管理',
        permissions: [Customer.BIZ_CUSTOMER_LIST],
        requiresAuth: true,
        ignoreCache: true
      }
    }
    // {
    //   path: 'business-opportunities',
    //   name: 'BusinessOpportunities',
    //   component: () => import('@/views/biz/business-opportunities/index.vue'),
    //   meta: {
    //     title: '商机管理',
    //     permissions: [Domain.SYSTEM_DOMAIN_TREE],
    //     requiresAuth: true,
    //     ignoreCache: true
    //   }
    // }
  ]
}

export default Biz
