import { DEFAULT_LAYOUT } from '@/router/constants'
import { Domain, Module } from '@/enums/api'
import { AppRouteRecordRaw } from '../types'

const Acs: AppRouteRecordRaw = {
  path: '/acs',
  name: 'Acs',
  component: DEFAULT_LAYOUT,
  meta: {
    title: '系统设置',
    icon: 'icon-settings',
    iSize: 22,
    requiresAuth: true,
    order: 2
  },
  children: [
    {
      path: 'domain',
      name: 'Domain',
      component: () => import('@/views/acs/domain/index.vue'),
      meta: {
        // icon: 'iot-domain',
        title: '域管理',
        permissions: [Domain.SYSTEM_DOMAIN_TREE],
        requiresAuth: true,
        ignoreCache: true
      }
    },
    {
      path: 'function',
      name: 'Function',
      component: () => import('@/views/acs/fun/index.vue'),
      meta: {
        // icon: 'icon-map',
        title: '功能项',
        permissions: [Module.SYSTEM_MODULE_TREE],
        requiresAuth: true,
        ignoreCache: true
      }
    }
  ]
}

export default Acs
