import Layout from '@/page/index/'

export default [
  {
    path: '/bigScreen',
    name: '网格看板',
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/bigScreen/bigScreen'),
    meta: {
      keepAlive: false,
      isAuth: true,
    }
  },{
    path: '/work/process/publicEvent',
    component: Layout,
    redirect: '/work/process/publicEvent/form',
    children: [{
      path: 'form/:processDefinitionId',
      name: '报事工单',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/publicEvent/form')
    }, {
      path: 'handle/:taskId/:processInstanceId/:businessId',
      name: '处理报事工单',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/publicEvent/handle')
    }, {
      path: 'detail/:processInstanceId/:businessId',
      name: '报事工单详情',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/publicEvent/detail')
    }]
  },{
  path: '/wel',
  component: Layout,
  redirect: '/wel/index',
  children: [{
    path: 'index',
    name: '首页',
    meta: {
      i18n: 'dashboard'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/index')
  },{
    path: 'door',
    name:'园区门户',
    // meta: {
    //   i18n: 'dashboard'
    // },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/door')
      // import( /* webpackChunkName: "views" */ '@/views/wel/index')
  },
    {
    path: 'smartCommunity',
    name:'社区全景',
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/grid/smartCommunity')
  },

  //   {
  //   path: 'index1',
  //   name:'社区全景',
  //   component: () =>
  //     import( /* webpackChunkName: "views" */ '@/views/grid/index')
  // },
  {
    path: 'index2',
    name:'社区态势',
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/grid/index2')
  },
    {
      path: 'index21',
      name:'园区态势',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/index2')
    },{
      path: 'index3',
      name:'小区态势',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/index3')
    },{
      path: 'peopleManage',
      name:'人员管理',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/peopleManage')
    },{
      path: 'carManage',
      name:'车辆管理',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/carManage')
    },{
      path: 'houseManage',
      name:'房屋管理',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/houseManage')
    },{
      path: 'contentUnion',
      name:'智能设备',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/contentUnion')
    }, {
      path: 'videoSurveillance',
      name:'监控设备',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/videoSurveillance')
    }, {
      path: 'fireControl',
      name: '消防场景',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/fireControl')
    }, {
      path: 'fireDevices',
      name: '消防设备态势分析',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/fireDevices')
    },{
      path: 'smartPension',
      name:'智慧养老',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/smartPension')
    },{
      path: 'smartPolice',
      name:'警务平台',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/smartPolice')
    },{
      path: 'policeData',
      name:'公安数据',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/policeData')
    }, {
      path: 'operatePlatform',
      name:'运营平台',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/grid/operatePlatform')
    },
    {
    path: 'dashboard',
    name: '控制台',
    meta: {
      i18n: 'dashboard',
      menu: false,
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
  }]
}, {
  path: '/test',
  component: Layout,
  redirect: '/test/index',
  children: [{
    path: 'index',
    name: '测试页',
    meta: {
      i18n: 'test'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/util/test')
  }]
}, {
  path: '/dict-horizontal',
  component: Layout,
  redirect: '/dict-horizontal/index',
  children: [{
    path: 'index',
    name: '字典管理',
    meta: {
      i18n: 'dict'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
  }]
}, {
  path: '/dict-vertical',
  component: Layout,
  redirect: '/dict-vertical/index',
  children: [{
    path: 'index',
    name: '字典管理',
    meta: {
      i18n: 'dict'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
  }]
}, {
  path: '/info',
  component: Layout,
  redirect: '/info/index',
  children: [{
    path: 'index',
    name: '个人信息',
    meta: {
      i18n: 'info'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/system/userinfo')
  }]
}, {
  path: '/work/process/leave',
  component: Layout,
  redirect: '/work/process/leave/form',
  children: [{
    path: 'form/:processDefinitionId',
    name: '请假流程',
    meta: {
      i18n: 'work'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form')
  }, {
    path: 'handle/:taskId/:processInstanceId/:businessId',
    name: '处理请假流程',
    meta: {
      i18n: 'work'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle')
  }, {
    path: 'detail/:processInstanceId/:businessId',
    name: '请假流程详情',
    meta: {
      i18n: 'work'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail')
  }]
}]

