import Layout from '@/layout/index' const aqptRouter = [ { path: '/', component: Layout, name: 'AqptPanorama', redirect: '/goaf/info', groupId: [0], hidden: true }, { path: '/goaf/alert', component: Layout, name: 'AlertCenter', redirect: '/goaf/alert/index', meta: { permit: 'aqpt_alert_center', title: '预警管理' }, groupId: [1], children: [ { path: 'index', component: () => import('@/views/goaf/alert/index'), name: 'aqpt_alert_review', meta: { title: '待评审', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_alert_center' } }, { path: 'rectify', component: () => import('@/views/goaf/alert/rectify'), name: 'aqpt_alert_rectify', meta: { title: '待整改', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_alert_center' } }, { path: 'accept', component: () => import('@/views/goaf/alert/accept'), name: 'aqpt_alert_accept', meta: { title: '待验收', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_alert_center' } } ] }, { path: '/goaf/alert/checkList', component: Layout, name: 'AlertCheckList', redirect: '/goaf/alert/checkList/index', meta: { permit: 'aqpt_alert_center', title: '预警清单' }, groupId: [1], children: [ { path: 'index', component: () => import('@/views/goaf/alert/checkList.vue'), name: 'aqpt_alert_checkList_index', meta: { title: '预警清单', icon: 'el-icon-document', affix: true, permit: 'aqpt_alert_center' } }, { path: 'rectify', component: () => import('@/views/goaf/alert/checkList_warning.vue'), name: 'aqpt_alert_checkList_rectify', meta: { title: '严重预警整改清单', icon: 'el-icon-document', affix: true, permit: 'aqpt_alert_center' } } ] }, { path: '/task', component: Layout, name: 'TaskCenter', redirect: '/task/index', meta: { permit: 'aqpt_task_center' }, groupId: [2], hidden: true, children: [ { path: 'index', component: () => import('@/views/system/task/index'), name: 'aqpt_task_center', meta: { title: '工作台', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_task_center' } } ] }, /** 采空区*/ { path: '/goaf', component: Layout, name: 'goaf', redirect: '/goaf/info', meta: { title: '采空区管理', permit: 'aqpt_danger', icon: 'icon-common_riskmanagement' }, groupId: [0], children: [ { path: 'info', component: () => import('@/views/goaf/info/index'), name: 'goaf-info', meta: { title: '采空区信息配置', noCache: true, permit: 'aqpt_danger' } }, { path: 'qrcode', component: () => import('@/views/goaf/qrcode/index'), name: 'goaf-qrcode', meta: { title: '二维码', noCache: true, permit: 'aqpt_danger' } }, { path: 'map', component: () => import('@/views/goaf/map/index'), name: 'goaf-map', meta: { title: '可视化编辑', noCache: true, // icon: 'icon-common_equipment', permit: 'aqpt_danger' } } ] }, { path: '/aqpt/scene', component: Layout, name: 'AqptScene', redirect: '/aqpt/scene/riskPoint', groupId: [0], meta: { title: '现场管理', icon: 'icon-common_overview', permit: 'aqpt_scene' }, children: [ { path: 'map', component: () => import('@/views/aqpt/map/index'), name: 'entMap', meta: { title: '地图', noCache: true, permit: 'aqpt_scene_map' } } ] }, { path: '/goaf/checklist', component: Layout, name: 'goaf-checklist', redirect: '/goaf/checklist/index', meta: { title: '检查表', permit: 'aqpt_danger', icon: 'icon-common_file' }, groupId: [0], children: [ { path: 'index', component: () => import('@/views/goaf/checklist'), name: 'goaf-checklist-index', meta: { title: '检查表定义', noCache: true, icon: 'el-icon-document', permit: 'aqpt_danger' } }, { path: 'config', component: () => import('@/views/goaf/checklist/config.vue'), name: 'goaf-checklist-config', meta: { title: '检查表配置', noCache: true, icon: 'el-icon-document', permit: 'aqpt_danger' } } ] }, { path: '/goaf/check', component: Layout, name: 'goafCheck', redirect: '/aqpt/check/index', meta: { title: '人员巡检', icon: 'icon-common_task' }, groupId: [5], children: [ { path: 'plan', component: () => import('@/views/goaf/checkTask/plan/index'), name: 'aqpt_check_plan', meta: { title: '任务定义', noCache: true, permit: 'aqpt_check_plan' } }, { path: 'index', component: () => import('@/views/goaf/checkTask/manage/index'), name: 'aqpt_check_manage', meta: { title: '任务列表', noCache: true, permit: 'aqpt_check_task' } }, { path: 'record', component: () => import('@/views/goaf/checkTask/record/index'), name: 'aqpt_check_record', meta: { title: '检查记录', noCache: true, permit: 'aqpt_check_record' } } ] }, { path: '/goaf/danger', component: Layout, name: 'GoafDanger', redirect: '/goaf/danger/index', meta: { title: '采空区预警管理', permit: 'aqpt_danger' }, groupId: [5], children: [ { path: 'index', component: () => import('@/views/goaf/danger/index'), name: 'goaf_danger_index', meta: { title: '采空区预警管理', noCache: true, icon: 'icon-common_riskmanagement', permit: 'aqpt_danger' } } ] }, { path: '/goaf/equipment', component: Layout, name: 'GoafEquipment', redirect: '/goaf/equipment/sensor', meta: { title: '传感器管理', icon: 'icon-common_equipment', permit: 'aqpt_equipment' }, groupId: [4], children: [ { path: 'sensor', component: () => import('@/views/goaf/sensor/index'), name: 'goaf-sensor', meta: { title: '传感器', noCache: true, permit: 'aqpt_danger' } }, { path: 'camera', component: () => import('@/views/goaf/sensor/camera'), name: 'goaf-camera', meta: { title: '摄像头', noCache: true, permit: 'aqpt_danger' } } ] }, { path: '/goaf/liveData', component: Layout, name: 'GoafLiveData', redirect: '/goaf/liveData/sensor', meta: { title: '实时数据', icon: 'icon-common_equipment', permit: 'aqpt_equipment' }, groupId: [4], children: [ { path: 'sensor', component: () => import('@/views/goaf/liveData/sensor'), name: 'liveData-sensor', meta: { title: '传感器', noCache: true, permit: 'aqpt_danger' } }, { path: 'camera', component: () => import('@/views/goaf/liveData/camera'), name: 'liveData-camera', meta: { title: '摄像头', noCache: true, permit: 'aqpt_danger' } } ] }, { path: '/aqpt/training', component: Layout, name: 'AqptTraining', meta: { title: '安全教育', permit: 'aqpt_training' }, groupId: [6], redirect: '/aqpt/training/index', hidden: true, children: [ { path: 'index', component: () => import('@/views/aqpt/training/index'), name: 'aqpt_training', meta: { title: '安全教育', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_training' } } ] }, { path: '/aqpt/kpi/regulation', component: Layout, name: 'aqptKpiRegulation', meta: { title: '考核制度', permit: 'aqpt_kpi' }, redirect: '/aqpt/kpi/regulation/index', groupId: [6], children: [ { path: 'index', component: () => import('@/views/aqpt/kpi/regulation/index'), name: 'aqpt_kpi_index', meta: { title: '考核制度', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_kpi_regulation' } } ] }, { path: '/aqpt/kpi/rule', component: Layout, name: 'aqptKpiRule', meta: { title: '考核办法', permit: 'aqpt_kpi_rule' }, redirect: '/aqpt/kpi/rule/index', groupId: [6], children: [ { path: 'index', component: () => import('@/views/aqpt/kpi/rule/index'), name: 'aqpt_kpi_rule', meta: { title: '考核办法', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_kpi_rule' } } ] }, { path: '/aqpt/kpi/rank', component: Layout, name: 'aqptKpiRank', meta: { title: '考核结果', icon: 'icon-common_task', permit: 'aqpt_kpi_rank' }, redirect: '/aqpt/kpi/rule/group', groupId: [6], children: [ { path: 'group', component: () => import('@/views/aqpt/kpi/rank/group/index'), name: 'aqpt_kpi_rank_group', meta: { title: '部门排名', affix: true, permit: 'aqpt_kpi_rank_group' } }, { path: 'member', component: () => import('@/views/aqpt/kpi/rank/member/index'), name: 'aqpt_kpi_rank_member', meta: { title: '部门排名', affix: true, permit: 'aqpt_kpi_rank_member' } } ] }, { path: '/aqpt/kpi/report', component: Layout, name: 'aqptKpiReport', meta: { permit: 'aqpt_kpi_report' }, redirect: '/aqpt/kpi/report/index', groupId: [6], children: [ { path: 'index', component: () => import('@/views/aqpt/kpi/report/index'), name: 'aqpt_kpi_report', meta: { title: '考核报告', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_kpi_report' } } ] }, { path: '/aqpt/doc', component: Layout, name: 'AqptDoc', redirect: '/aqpt/doc/index', groupId: [8], // hidden: true, meta: { title: '文件中心', permit: 'aqpt_doc_center' }, children: [ { path: 'index', component: () => import('@/views/system/doc/index'), name: 'aqpt_doc_center', meta: { title: '文件中心', noCache: true, icon: 'icon-common_file', permit: 'aqpt_doc_center' } }, { path: 'knowledge', component: () => import('@/views/system/art/index'), name: 'aqpt_art_center', meta: { title: '安全智库', noCache: true, icon: 'icon-common_knowledge', permit: 'aqpt_doc_center' } } ] }, { path: '/aqpt', component: Layout, redirect: '/aqpt/account', name: 'aqpt', groupId: [9], meta: { title: '组织管理', icon: 'icon-common_digitization', permit: 'aqpt_ent' }, children: [ { path: 'profile', component: () => import('@/views/aqpt/profile/index'), name: 'aqpt_ent_profile', meta: { title: '企业信息', noCache: true, permit: 'aqpt_ent_profile' } }, { path: 'account', component: () => import('@/views/system/group/index'), name: 'aqpt_ent_group_user', meta: { title: '帐号管理', noCache: true, permit: 'aqpt_ent_group_user' } } // { // path: 'position', // component: () => import('@/views/system/position/index'), // name: 'aqpt_ent_position', // meta: { title: '岗位管理', noCache: true, permit: 'aqpt_ent_position' } // } ] }, { path: '/aqpt/setting', component: Layout, redirect: '/aqpt/setting/groupCat', name: 'aqptSetting', groupId: [9], meta: { title: '系统配置', icon: 'icon-common_configuration', isGroup: true, permit: 'aqpt_setting' }, children: [ // { // path: 'groupCat', // component: () => import('@/views/system/setting/groupCat/index'), // name: 'aqpt_setting_group_cat', // meta: { title: '群组类别', noCache: true, permit: 'aqpt_setting_group_cat' } // }, // { // path: 'taskCat', // component: () => import('@/views/system/setting/taskCat/index'), // name: 'aqpt_setting_task_cat', // meta: { title: '任务类别', noCache: true, permit: 'aqpt_setting_task_cat' } // }, // { // path: 'checklistCat', // component: () => import('@/views/system/setting/checklistCat/index'), // name: 'aqpt_setting_checklist_cat', // meta: { title: '清单类别', noCache: true, permit: 'aqpt_setting_checklist_cat' } // }, // { // path: 'riskPointCat', // component: () => import('@/views/aqpt/setting/riskPointCat/index'), // name: 'aqpt_setting_riskpoint_cat', // meta: { title: '风险点类别', noCache: true, permit: 'aqpt_setting_riskpoint_cat' } // }, // { // path: 'dangerCat', // component: () => import('@/views/aqpt/setting/dangerCat/index'), // name: 'aqpt_setting_danger_cat', // meta: { title: '预警类别', noCache: true, permit: 'aqpt_setting_danger_cat' } // }, // { // path: 'equipmentCat', // component: () => import('@/views/aqpt/setting/equipmentCat/index'), // name: 'aqpt_setting_equipment_cat', // meta: { title: '设备类别', noCache: true, permit: 'aqpt_setting_equipment_cat' } // }, { path: 'sensorCat', component: () => import('@/views/goaf/sensorCat/index'), name: 'aqpt_setting_sensor_cat', meta: { title: '传感器类别', noCache: true, permit: 'aqpt_setting_equipment_cat' } }, { path: 'APP_download', component: () => import('@/views/system/app/download'), name: 'aqpt_setting_sensor_cat', meta: { title: 'APP升级', noCache: true, permit: 'aqpt_setting_equipment_cat' } } // { // path: 'checkCat', // component: () => import('@/views/aqpt/setting/checkCat/index'), // name: 'aqpt_setting_check_cat', // meta: { title: '检查类别', noCache: true, permit: 'aqpt_setting_check_cat' } // }, // { // path: 'ctrlLevel', // component: () => import('@/views/aqpt/setting/ctrlLevel/index'), // name: 'aqpt_setting_ctrl_level', // meta: { title: '管控层级', noCache: true, permit: 'aqpt_setting_ctrl_level' } // }, // { // path: 'measureType', // component: () => import('@/views/aqpt/setting/measureType/index'), // name: 'aqpt_setting_measure_type', // meta: { title: '控制措施类型', noCache: true, permit: 'aqpt_setting_measure_type' } // }, // { // path: 'alertType', // component: () => import('@/views/aqpt/setting/alertType/index'), // name: 'aqpt_setting_alert_type', // meta: { title: '预警类型', noCache: true, permit: 'aqpt_setting_alert_type' } // } ] } ] export default aqptRouter