import Layout from '@/layout'
const systemSettingsRoutes = {
  path: '/systemSettings',
  component: Layout,
  meta: { roles: ['system_menu'], keepAlive: false },
  children: [
    {
      path: '/systemSettings',
      name: 'systemSettings',
      component: () => import('@/views/systemSettings/index'),
      meta: { title: '系统设置', icon: 'systemSettings', imgstyle: 'ic_setting_nav_default.png', imgstyleup: 'ic_setting_nav_check.png', keepAlive: false },
      children: [
        {
          path: '/systemSettings',
          name: 'serviceManagement',
          component: { render(c) { return c('router-view') } },
          redirect: '/systemSettings',
          meta: { title: '服务管理', keepAlive: false },
          hidden: true,
          src: require('@/assets/nav/ic_setting_top_default.png'),
          srcer: require('@/assets/nav/ic_setting_top_check.png'),
          children: [
            {
              path: '/systemSettings',
              meta: { title: '服务管理', keepAlive: false },
              component: () => import('@/views/systemSettings/views/serviceManagement/serviceHome'),
            },
            {
              path: '/systemSettings/serviceEdit',
              name: 'serviceEdit',
              component: () => import('@/views/systemSettings/views/serviceManagement/serviceEdit'),
              meta: { title: '编辑服务监控', keepAlive: false },
              hidden: false,
              isAlone: true,
              src: require('@/assets/nav/ic_setting_top@2x.png')
            },
            {
              path: '/systemSettings/serviceAdd',
              name: 'serviceAdd',
              component: () => import('@/views/systemSettings/views/serviceManagement/serviceAdd'),
              meta: { title: '新增服务监控', keepAlive: false },
              hidden: false,
              isAlone: true,
              src: require('@/assets/nav/ic_setting_top@2x.png')
            },
            {
              path: '/systemSettings/serviceTopology',
              name: 'serviceTopology',
              component: () => import('@/views/systemSettings/views/serviceManagement/serviceTopology'),
              meta: { title: '服务拓扑', keepAlive: false },
              hidden: false,
              isAlone: true,
              src: require('@/assets/nav/ic_setting_top@2x.png')
            },
          ]
        },
        {
          path: '/systemSettings/protocolManagement',
          name: 'protocolManagement',
          component: () => import('@/views/systemSettings/views/protocolManagement/protocolHome'),
          meta: { title: '协议管理', keepAlive: false },
          hidden: true,
          src: require('@/assets/nav/ic_setting_top_default.png'),
          srcer: require('@/assets/nav/ic_setting_top_check.png')
        },
        // {
        //   path: '/systemSettings/machineManagement',
        //   name: 'machineManagement',
        //   component: () => import('@/views/systemSettings/views/machineManagement/machineHome'),
        //   meta: { title: '机器维护' },
        //   hidden: true,
        //   src: require('@/assets/nav/ic_setting_top_default.png'),
        //   srcer: require('@/assets/nav/ic_setting_top_check.png')
        // },
        {
          path: '/systemSettings/queryTemplate',
          name: 'queryTemplate',
          component: { render(c) { return c('router-view') } },
          redirect: '/systemSettings/queryTemplate',
          meta: { title: '查询模板', keepAlive: false },
          hidden: true,
          src: require('@/assets/nav/ic_setting_top_default.png'),
          srcer: require('@/assets/nav/ic_setting_top_check.png'),
          children: [{
            path: '/systemSettings/queryTemplate',
            meta: { title: '查询模板', keepAlive: false },
            component: () => import('@/views/systemSettings/views/queryTemplate/queryTemplate'),
          },
          {
            path: '/systemSettings/queryTemplateadd',
            name: 'queryTemplateadd',
            component: () => import('@/views/systemSettings/views/queryTemplate/queryTemplateadd'),
            meta: { title: '新增查询模板', keepAlive: false },
            hidden: false,
            isAlone: true,
            src: require('@/assets/nav/ic_setting_top@2x.png')
          },
          {
            path: '/systemSettings/queryTemplateedit',
            name: 'queryTemplateedit',
            component: () => import('@/views/systemSettings/views/queryTemplate/queryTemplateedit'),
            meta: { title: '编辑查询模板', keepAlive: false },
            hidden: false,
            isAlone: true,
            src: require('@/assets/nav/ic_setting_top@2x.png')
          },
          {
            path: '/systemSettings/queryTemplateChild',
            name: 'queryTemplateChild',
            component: () => import('@/views/systemSettings/views/queryTemplate/queryTemplateChild'),
            meta: { title: '查询项设置', keepAlive: false },
            hidden: false,
            isAlone: true,
            src: require('@/assets/nav/ic_setting_top@2x.png')
          }
          ]
        },
        {
          path: '/systemSettings/datastructure',
          name: 'datastructure',
          component: { render(c) { return c('router-view') } },
          meta: { title: '数据结构', keepAlive: false },
          hidden: true,
          src: require('@/assets/nav/ic_setting_top_default.png'),
          srcer: require('@/assets/nav/ic_setting_top_check.png'),
          children: [{
            path: '/systemSettings/datastructure',
            meta: { title: '数据结构', keepAlive: false },
            component: () => import('@/views/systemSettings/views/datastructure/datastructureHome'),
          },
          {
            path: '/systemSettings/datastructureChild',
            name: 'datastructureChild',
            component: () => import('@/views/systemSettings/views/datastructure/datastructureChild'),
            meta: { title: '数据项', keepAlive: false },
            hidden: false,
            isAlone: true,
            src: require('@/assets/nav/ic_setting_top@2x.png')
          }
          ]
        },
        // {
        //   path: '/systemSettings/dataStructureItem',
        //   name: 'dataStructureItem',
        //   component: () => import('@/views/systemSettings/views/dataStructureItem/dataStructureItemHome'),
        //   meta: { title: '数据结构项' },
        //   hidden: true,
        //   src: require('@/assets/nav/ic_setting_top_default.png'),
        //   srcer: require('@/assets/nav/ic_setting_top_check.png')
        // },
        {
          path: '/systemSettings/sourceservice',
          name: 'sourceservice',
          component: () => import('@/views/systemSettings/views/sourceservice/sourceserviceHome'),
          meta: { title: '数据源服务', keepAlive: false },
          hidden: true,
          src: require('@/assets/nav/ic_setting_top_default.png'),
          srcer: require('@/assets/nav/ic_setting_top_check.png')
        },
        {
          path: '/systemSettings/log',
          name: 'log',
          component: () => import('@/views/systemSettings/views/log'),
          meta: { title: '日志查询', keepAlive: false },
          hidden: true,
          src: require('@/assets/nav/ic_setting_top_default.png'),
          srcer: require('@/assets/nav/ic_setting_top_check.png')
        },
        // {
        //   path: '/systemSettings/servicedeployment',
        //   name: 'servicedeployment',
        //   component: () => import('@/views/systemSettings/views/servicedeployment/servicedeploymentHome'),
        //   meta: { title: '服务部署' },
        //   hidden: true,
        //   src: require('@/assets/nav/ic_setting_top_default.png'),
        //   srcer: require('@/assets/nav/ic_setting_top_check.png')
        // },

        // {
        //   path: '/systemSettings/queryItemSettings',
        //   name: 'queryItemSettings',
        //   component: () => import('@/views/systemSettings/views/queryItemSettings/queryItemSettingsHome'),
        //   meta: { title: '查询项设置' },
        //   hidden: true,
        //   src: require('@/assets/nav/ic_setting_top_default.png'),
        //   srcer: require('@/assets/nav/ic_setting_top_check.png')
        // },
      ]
    }
  ]
}

// const queryTemplateRoutes = {
//   path: '/queryTemplate',
//   component: Layout,
//   meta: { roles: ['system_menu'] },
//   children: [
//     {
//       path: '/queryTemplate',
//       name: 'queryTemplate',
//       component: () => import('@/views/queryTemplate/index'),
//       meta: { title: '模板管理', icon: 'systemSettings', imgstyle: 'ic_setting_nav_default.png', imgstyleup: 'ic_setting_nav_check.png' },
//       children: [

//       ]
//     }
//   ]
// }

export default [
  systemSettingsRoutes,
  // queryTemplateRoutes
]
