import Vue from 'vue'
import Router from 'vue-router'
import index from '@/page/index'
import home from '@/page/content'
import layout from '@/page/Layout/layout.vue'

import operationManagement from '@/page/operationServices/operationManagement/index'
import operationManagementDetail from '@/page/operationServices/operationManagement/detail'
import operationOrder from '@/page/operationServices/operationOrder/index'
import operationOrderDetail from '@/page/operationServices/operationOrder/detail'
import datadeletAndUp from '@/page/operationServices/datadeletAndUp/index'
import datadeletAndUpDetail from '@/page/operationServices/datadeletAndUp/detail'

import offlineFiling from '@/page/operationServices/offlineFiling/index'
import offlineFilingDetail from '@/page/operationServices/offlineFiling/detail'
//会议室管理
import meetingRoomManage from '@/page/operationServices/meetingRoomManage/index'
import meetingRoomManageDetail from '@/page/operationServices/meetingRoomManage/detail'// 视频监控统计
import videoMonitorCount from '@/page/operationServices/videoMonitorCount/index'




Vue.use(Router)
export default new Router({
  // mode:'history',
  //ssss
  routes: [
    {
      path: '/operationservices',
      name: 'index',
      component: index,
      children: [
        {
          path: '/operationservices/home',
          name: 'home',
          component: home
        },
        {
          path: '/operationservices/content',
          name: 'layout',
          component: layout,
          children: [
            {
              path: '/operationservices/operationManagement',
              name: 'operationManagement',
              meta: {
                title: '运维信息管理'
              },
              component: operationManagement
            },
            {
              path: '/operationservices/operationManagementDetail',
              name: 'operationManagementDetail',
              meta: {
                title: '运维信息详情'
              },
              component: operationManagementDetail
            },
            {
              //运维信息填报
              path: '/operationservices/operationOrder/index',
              name: 'operationOrder',
              meta: {
                title: '运维信息填报'
              },
              component: operationOrder,
              // component: () => import('@/page/operationOrder/operationOrder/index.vue')
            },
            {
              //运维信息填报
              path: '/operationservices/operationOrder/detail',
              name: 'operationOrderDetail',
              meta: {
                title: '运维信息填报详情'
              },
              component: operationOrderDetail,
              // component: () => import('@/page/operationOrder/operationOrder/detail.vue')
            },
            //数据删改单
            {
              //数据删改单
              path: '/operationservices/datadeletAndUp/index',
              name: 'datadeletAndUp',
              meta: {
                title: '数据删改单'
              },
              component: datadeletAndUp,
              // component: () => import('@/page/operationOrder/operationOrder/index.vue')
            },
            {
              //数据删改单
              path: '/operationservices/datadeletAndUp/detail',
              name: 'datadeletAndUpDetail',
              meta: {
                title: '数据删改单详情'
              },
              component: datadeletAndUpDetail,
              // component: () => import('@/page/operationOrder/operationOrder/detail.vue')
            },

            //离线备案
            {
              //离线备案
              path: '/operationservices/offlineFiling/index',
              name: 'offlineFiling',
              meta: {
                title: '离线备案单'
              },
              component: offlineFiling,
              // component: () => import('@/page/operationOrder/operationOrder/index.vue')
            },
            {
              //离线备案单
              path: '/operationservices/offlineFiling/detail',
              name: 'offlineFilingDetail',
              meta: {
                title: '离线备案单详情'
              },
              component: offlineFilingDetail,
              // component: () => import('@/page/operationOrder/operationOrder/detail.vue')
            },
			{
			  //会议室管理
			  path: '/operationservices/meetingRoomManage/index',
			  name: 'meetingRoomManage',
			  meta: {
			    title: '会议室管理'
			  },
			  component: meetingRoomManage,
			},
			{
			  //会议室管理
			  path: '/operationservices/meetingRoomManage/detail',
			  name: 'meetingRoomManageDetail',
			  meta: {
			    title: '会议室管理详情'
			  },
			  component: meetingRoomManageDetail,
			},            // 视频监控统计
            {
                path: '/operationservices/videoMonitorCount/index',
                name: 'videoMonitorCount',
                meta: {
                    title: '视频监控统计'
                },
                component: videoMonitorCount,
            },
          ]
        },
      ]
    }
  ]
})