import index from '../views/index.vue';
import login from '../views/login.vue';
import ssoLogin from '../views/ssoLogin.vue';
import CourtyardHome from '../views/courtyardManage/courtyardHome.vue';
import AdmittanceDetail from '../views/courtyardManage/admittanceDetail.vue';
import ControlDetail from '../views/courtyardManage/controlDetail.vue';
import DangerDetail from '../views/courtyardManage/dangerDetail.vue';
import IllegalDetail from '../views/courtyardManage/illegalDetail.vue';
import InspectDetail from '../views/courtyardManage/inspectDetail.vue';
import LabPersonDetail from '../views/courtyardManage/labPersonDetail.vue';
import PlanDetail from '../views/courtyardManage/planDetail.vue';
import RiskDetail from '../views/courtyardManage/riskDetail.vue';
import WarningDetail from '../views/courtyardManage/warningDetail.vue';
import WorkInfoDetail from '../views/courtyardManage/workInfoDetail.vue'
import WorkPlanDetail from '../views/courtyardManage/workPlanDetail.vue';
import ClassifyGradeDetail from '../views/courtyardManage/classifyGradeDetail.vue';
import EventList from '../views/courtyardManage/eventList.vue';
import EmergencyManagement from '../views/emergencyManagement/index.vue';
import VideoSurveillance from '../views/videoSurveillance/index.vue';

const router = [
    {
      path: '/',
      component: login,
      name: 'login',
      meta: {
         title: '实验室安全智能监测与控制系统',
      },
    },
    {
      path: '/home',
      component: index,
      name: 'index',
      meta: {
         title: '实验室安全智能监测与控制系统',
      },
    },
    {
        path: '/courtyardHome',
        component: CourtyardHome,
        name: 'courtyardHome',
        meta: {
            title: '院级大屏',
        },
    },
    {
        path: '/admittanceDetail',
        component: AdmittanceDetail,
        name: 'admittanceDetail',
        meta: {
            title: '安全准入办理统计',
        },
    },
    {
        path: '/controlDetail',
        component: ControlDetail,
        name: 'controlDetail',
        meta: {
            title: '分级管控',
        },
    },
    {
        path: '/eventList',
        component: EventList,
        name: 'eventList',
        meta: {
            title: '预警事件',
        },
    },
    {
        path: '/dangerDetail',
        component: DangerDetail,
        name: 'dangerDetail',
        meta: {
            title: '安全隐患统计',
        },
    },
    {
        path: '/illegalDetail',
        component: IllegalDetail,
        name: 'illegalDetail',
        meta: {
            title: '人员违规统计',
        },
    },
    {
        path: '/inspectDetail',
        component: InspectDetail,
        name: 'inspectDetail',
        meta: {
            title: '安全检查',
        },
    },
    {
        path: '/labPersonDetail',
        component: LabPersonDetail,
        name: 'labPersonDetail',
        meta: {
            title: '进入实验室人员',
        },
    },
    {
        path: '/planDetail',
        component: PlanDetail,
        name: 'planDetail',
        meta: {
            title: '预案执行统计',
        },
    },
    {
        path: '/riskDetail',
        component: RiskDetail,
        name: 'riskDetail',
        meta: {
            title: '危险源统计',
        },
    },
    {
        path: '/warningDetail',
        component: WarningDetail,
        name: 'warningDetail',
        meta: {
            title: '预案',
        },
    },
    {
        path: '/workInfoDetail',
        component: WorkInfoDetail,
        name: 'workInfoDetail',
        meta: {
            title: '工作通知',
        },
    },
    {
        path: '/workPlanDetail',
        component: WorkPlanDetail,
        name: 'workPlanDetail',
        meta: {
            title: '工作计划',
        },
    },
    {
        path: '/classifyGradeDetail',
        component: ClassifyGradeDetail,
        name: 'classifyGradeDetail',
        meta: {
            title: '实验室分类分级',
        },
    },
    {
        path: '/emergencyManagement',
        component: EmergencyManagement,
        name: 'emergencyManagement',
        meta: {
            title: '应急指挥平台',
        },
    },
    {
        path: '/videoSurveillance',
        component: VideoSurveillance,
        name: 'videoSurveillance',
        meta: {
            title: '视频监控',
        },
    },
    {
        path: '/*',
        redirect: '/',
    },

]


export default router
