import layoutHeaderAside from '@/layout/header-aside'

const meta = { auth: true }

const _import = require('@/libs/util.import.' + process.env.NODE_ENV)

export default {
  path: '/system_settings',
  component: layoutHeaderAside,
  children: (pre => [
    {
      path: 'index',
      name: `${pre}index`,
      meta: { ...meta, title: '系统设置', root: '/system_settings' },
      component: _import('system/function/module-index')
    },
    {
      path: 'user_management/role',
      name: `${pre}user_management-role`,
      meta: { ...meta, cache: true, title: '角色' },
      component: _import('system-administration/user-management/role')
    },
    {
      path: 'user_management/user',
      name: `${pre}user_management-user`,
      meta: { ...meta, cache: true, title: '用户' },
      component: _import('system-administration/user-management/user')
    },
    {
      path: 'menu_configuration/menu',
      name: `${pre}menu_configuration-menu`,
      meta: { ...meta, cache: true, title: '菜单配置' },
      component: _import('system-administration/menu-management/menu-configuration')
    },
    {
      path: 'system_assistant/interface_log',
      name: `${pre}system_assistant-interface_log`,
      meta: { ...meta, cache: true, title: '接口日志' },
      component: _import('system-administration/system-utilities/api-logs')
    },
    {
      path: 'system_assistant/operate_log',
      name: `${pre}system_assistant-operate_log`,
      meta: { ...meta, cache: true, title: '操作日志' },
      component: _import('system-administration/system-utilities/operation-logs')
    },
    {
      path: 'system_assistant/problem_help',
      name: `${pre}system_assistant-problem_help`,
      meta: { ...meta, cache: true, title: '问题帮助' },
      component: _import('system-administration/system-utilities/problem-help')
    },
    {
      path: 'system_monitoring/setting',
      name: `${pre}system_monitoring-setting`,
      meta: { ...meta, cache: true, title: '监控设置' },
      component: _import('system-administration/system-monitoring/monitoring-configuration')
    },
    {
      path: 'organization/production_team_manage',
      name: `${pre}organization-production_team_manage`,
      meta: { ...meta, cache: true, title: '班组管理' },
      component: _import('production-master-data/team-model/team-management')
    },
    {
      path: 'organization/production_shift_management',
      name: `${pre}organization-production_shift_management`,
      meta: { ...meta, cache: true, title: '班次管理' },
      component: _import('production-master-data/team-model/shift-management')
    },
    {
      path: 'organization/production_shift_calender',
      name: `${pre}organization-production_shift_calender`,
      meta: { ...meta, cache: true, title: '排班日历' },
      component: _import('production-master-data/team-model/scheduling-calendar')
    }
  ])('system_settings-')
}
