Browse Source

初始化

zhaobao 1 year ago
parent
commit
a76b6526de
6 changed files with 27 additions and 1207 deletions
  1. 5 14
      README.md
  2. 5 12
      src/layout/components/Navbar.vue
  3. 0 74
      src/main.js
  4. 0 607
      src/router/modules/aqpt - 副本.js
  5. 14 492
      src/router/modules/aqpt.js
  6. 3 8
      src/settings.js

+ 5 - 14
README.md

@@ -1,18 +1,9 @@
-## 采空区
-
-开发文档[曲总本地服务器搭建](http://192.168.3.5:1866)
-大屏设计图地址[作者:黄皖【微信同名】](https://www.figma.com/file/W40Blmucb76UnCgs3WGOEI/%E5%9B%9B%E8%89%B2%E9%A3%8E%E9%99%A9%E5%9B%BE?type=design&node-id=0-1&t=2juVPU2GZJzr3Hgt-0)
-
-### 二版
-
-http://syfv.anquanzhuli.com/
-账号  xysfybjy
-密码 888888
-
+## 运矿管理系统
 
 ### 启动命令
 #### yarn dev
 
-
-前端 /data/wwwroot/goaf/web
-APP /data/wwwroot/goaf/app
+### 运矿管理系统端口:
+#### 后台: 1888
+#### 前端: 1889
+#### 大屏:1890

+ 5 - 12
src/layout/components/Navbar.vue

@@ -1,9 +1,9 @@
 <template>
   <div class="navbar">
     <div class="sys-name">
-      <img id="nav-logo" :src="logo" alt="logo">
+      <!-- <img id="nav-logo" :src="logo" alt="logo"> -->
+      <span>运矿管理系统</span>
       <hamburger v-if="!hideMenuBt" id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
-      <!-- <span v-if="userData.ocName" class="tag">/{{ userData.ocName }}</span> -->
     </div>
 
     <!-- 隐藏标签 -->
@@ -43,7 +43,6 @@
       </div>
       <el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
         <div class="avatar-wrapper">
-          <!-- <el-avatar v-if="userData" :src="userData.userAvatar" /> -->
           <img class="icon" src="@/assets/images/Navbar/user.png" alt="">
           <span class="name">{{ userData&&userData.userName||'--' }}</span>
           <i class="el-icon-caret-bottom" />
@@ -83,14 +82,8 @@ export default {
       logo: require('@/assets/images/logo/logo.png'),
       sideMenuTabIndex: 0,
       sideMenuTabList: [
-        /** ckq */
-        { name: '采空区信息', icon: require('@/assets/images/Navbar/goaf.png'), iconSelectEd: require('@/assets/images/Navbar/goaf_selected.png'), path: '/goaf/info', permit: 'aqpt_workflow', id: 0 },
-        { name: '人员巡检', icon: require('@/assets/images/Navbar/check.png'), iconSelectEd: require('@/assets/images/Navbar/check_selected.png'), path: '/goaf/check/plan', permit: 'aqpt_alert_center', id: 5 },
-        { name: '传感器', icon: require('@/assets/images/Navbar/sensor.png'), iconSelectEd: require('@/assets/images/Navbar/sensor_selected.png'), path: '/goaf/equipment', permit: 'aqpt_equipment', id: 4 },
-        { name: '预警', icon: require('@/assets/images/Navbar/warn.png'), iconSelectEd: require('@/assets/images/Navbar/warn_selected.png'), path: '/goaf/alert', permit: 'aqpt_alert_center', id: 1 },
-        { name: '文档中心', icon: require('@/assets/images/Navbar/doc.png'), iconSelectEd: require('@/assets/images/Navbar/doc_selected.png'), path: '/aqpt/doc', permit: 'aqpt_doc_center', id: 8 },
-        { name: '系统管理', icon: require('@/assets/images/Navbar/sys.png'), iconSelectEd: require('@/assets/images/Navbar/sys_selected.png'), path: '/aqpt/account', permit: 'aqpt_system', id: 9 },
-        { name: '数字全景', icon: require('@/assets/images/Navbar/bigscreen.png'), iconSelectEd: require('@/assets/images/Navbar/bigscreen_selected.png'), href: true, permit: 'aqpt_panorama', id: 10 }
+        { name: '系统管理', icon: require('@/assets/images/Navbar/sys.png'), iconSelectEd: require('@/assets/images/Navbar/sys_selected.png'), path: '/aqpt/account', permit: 'aqpt_system', id: 1 },
+        { name: '数字全景', icon: require('@/assets/images/Navbar/bigscreen.png'), iconSelectEd: require('@/assets/images/Navbar/bigscreen_selected.png'), href: true, permit: 'aqpt_panorama', id: 2 }
       ]
     }
   },
@@ -132,7 +125,7 @@ export default {
       this.sideMenuTabList = sideMenuTabList
     },
     initsideTab() {
-      let index = 0
+      let index = 1
       if (this.isNotNull(localStorage.getItem('tabIndex'))) {
         index = parseFloat(localStorage.getItem('tabIndex'))
       }

+ 0 - 74
src/main.js

@@ -13,87 +13,13 @@ import './icons' // icon
 import './permission' // permission control
 import './utils/error-log' // error log
 
-import * as filters from './filters' // global filters
-
-// a-mapLayer
-import VueAMap from 'vue-amap'
-Vue.use(VueAMap)
-VueAMap.initAMapApiLoader({
-  key: '52dc0f516117d530a2f73538adf20bcc',
-  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
-  // 默认高德 sdk 版本为 1.4.4
-  v: '1.4.4'
-})
-window._AMapSecurityConfig = {
-  securityJsCode: '48f209a1a4600b2bf6247eefcc61549a'
-}
-// vueAwesomeCountdown
-import vueAwesomeCountdown from 'vue-awesome-countdown'
-Vue.use(vueAwesomeCountdown, 'vac')
-
 // icon-fonts
 import '@/iconfonts/iconfont.css'
 
-// // ECharts
-import ECharts from 'vue-echarts' // refers to components/ECharts.vue in webpack
-import 'leaflet/dist/leaflet.css'
-import '@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css'
-
-Vue.component('v-chart', ECharts)
-
-// vue-quill-editor
-import VueQuillEditor from 'vue-quill-editor'
-import 'quill/dist/quill.core.css'
-import 'quill/dist/quill.snow.css'
-import 'quill/dist/quill.bubble.css'
-// 组织结构图
-import 'vue2-org-tree/dist/style.css'
-const toolbarOptions = {
-  placeholder: '请输入编辑内容',
-  theme: 'snow',
-  modules: {
-    toolbar:
-        [
-          ['bold', 'italic', 'underline', 'strike'], // 加粗 斜体 下划线 删除线 -----['bold', 'italic', 'underline', 'strike']
-          ['blockquote', 'code-block'], // 引用  代码块-----['blockquote', 'code-block']
-          [{ header: 1 }, { header: 2 }], // 1、2 级标题-----[{ header: 1 }, { header: 2 }]
-          [{ list: 'ordered' }, { list: 'bullet' }], // 有序、无序列表-----[{ list: 'ordered' }, { list: 'bullet' }]
-          [{ script: 'sub' }, { script: 'super' }], // 上标/下标-----[{ script: 'sub' }, { script: 'super' }]
-          [{ indent: '-1' }, { indent: '+1' }], // 缩进-----[{ indent: '-1' }, { indent: '+1' }]
-          [{ 'direction': 'rtl' }], // 文本方向-----[{'direction': 'rtl'}]
-          [{ size: ['small', false, 'large', 'huge'] }], // 字体大小-----[{ size: ['small', false, 'large', 'huge'] }]
-          [{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题-----[{ header: [1, 2, 3, 4, 5, 6, false] }]
-          [{ color: [] }, { background: [] }], // 字体颜色、字体背景颜色-----[{ color: [] }, { background: [] }]
-          [{ font: [] }], // 字体种类-----[{ font: [] }]
-          [{ align: [] }], // 对齐方式-----[{ align: [] }]
-          ['clean'], // 清除文本格式-----['clean']
-          ['image'], // 链接、图片、视频-----['link', 'photo', 'video']
-          [
-            { table: 'TD' },
-            { 'table-insert-row': 'TIR' },
-            { 'table-insert-column': 'TIC' },
-            { 'table-delete-row': 'TDR' },
-            { 'table-delete-column': 'TDC' }
-          ]
-        ]
-  }
-}
-Vue.use(VueQuillEditor, toolbarOptions)
-
-// Contextmenu
-import Contextmenu from 'vue-contextmenujs'
-Vue.use(Contextmenu)
-
 Vue.use(Element, {
   size: Cookies.get('size') || 'medium' // set element-ui default size
 })
 
-// register global utility filters
-Object.keys(filters).forEach(key => {
-  Vue.filter(key, filters[key])
-})
-import htmlToPdf from '@/utils/htmlToPdf'
-Vue.use(htmlToPdf)
 Vue.config.productionTip = false
 
 new Vue({

+ 0 - 607
src/router/modules/aqpt - 副本.js

@@ -1,607 +0,0 @@
-import Layout from '@/layout/index'
-
-const aqptRouter = [
-  {
-    path: '/',
-    component: Layout,
-    name: 'AqptPanorama',
-    redirect: '/panorama',
-    meta: { permit: 'aqpt_panorama' },
-    groupId: [0],
-    hidden: true,
-    children: [
-      {
-        path: 'panorama',
-        component: () => import('@/views/aqpt/panorama'),
-        name: 'aqpt_panorama',
-        meta: { title: '数字总览', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_panorama' }
-      }
-    ]
-  },
-  /** 不能跟路由1重复出现 */
-  {
-    path: '/',
-    component: () => import('@/views/aqpt/visualEditor/index'),
-    name: 'VisualEditor',
-    meta: { title: '作业活动可视化配置', noCache: true, permit: 'jyprj_setting' }
-  },
-  {
-    path: '/alert',
-    component: Layout,
-    name: 'AlertCenter',
-    redirect: '/alert/index',
-    meta: { permit: 'aqpt_alert_center' },
-    groupId: [1],
-    hidden: true,
-    children: [
-      {
-        path: 'index',
-        component: () => import('@/views/aqpt/alert/index'),
-        name: 'aqpt_alert_center',
-        meta: { title: '预警中心', icon: 'icon-common_digitization', 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: '/aqpt/management',
-    component: Layout,
-    redirect: '/aqpt/management/leadingGroup',
-    name: 'AqptManagement',
-    meta: {
-      title: '管理体系',
-      icon: 'icon-common_organization',
-      permit: 'aqpt_management'
-    },
-    groupId: [3],
-    children: [
-      {
-        path: 'leadingGroup',
-        component: () => import('@/views/system/leadingGroup/index'),
-        name: 'aqpt_management_leading_group',
-        meta: { title: '领导小组', noCache: true, permit: 'aqpt_management_leading_group' }
-      }, {
-        path: 'regulation',
-        component: () => import('@/views/system/regulation/index'),
-        name: 'aqpt_management_regulation',
-        meta: { title: '管理制度', noCache: true, permit: 'aqpt_management_regulation' }
-      },
-      {
-        path: 'hazard',
-        component: () => import('@/views/aqpt/hazard/index'),
-        name: 'aqpt_management_hazard',
-        meta: { title: '危险源库', noCache: true, permit: 'aqpt_management_hazard' }
-      },
-      {
-        path: 'checkList',
-        component: () => import('@/views/system/checklist/index'),
-        name: 'aqpt_management_checkList',
-        meta: { title: '检查清单', noCache: true, permit: 'aqpt_management_checklist' }
-      }
-    ]
-  },
-  /** 采空区*/
-  {
-    path: '/goaf',
-    component: Layout,
-    name: 'goaf',
-    redirect: '/goaf/info',
-    meta: {
-      title: '采空区管理',
-      permit: 'aqpt_danger',
-      icon: 'icon-common_riskmanagement'
-    },
-    groupId: [3],
-    children: [
-      {
-        path: 'info',
-        component: () => import('@/views/goaf/info/index'),
-        name: 'goaf-info',
-        meta: {
-          title: '采空区信息配置',
-          noCache: true,
-          permit: 'aqpt_danger'
-        }
-      },
-      {
-        path: 'sensor',
-        component: () => import('@/views/goaf/sensor/index'),
-        name: 'goaf-sensor',
-        meta: {
-          title: '传感器配置',
-          noCache: true,
-          // icon: 'icon-common_equipment',
-          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: 'checklist',
-        component: () => import('@/views/goaf/checklist'),
-        name: 'goaf-checklist',
-        meta: {
-          title: '检查表',
-          noCache: true,
-          // icon: 'icon-common_equipment',
-          permit: 'aqpt_danger'
-        }
-      }
-    ]
-  },
-  {
-    path: '/aqpt/scene',
-    component: Layout,
-    name: 'AqptScene',
-    redirect: '/aqpt/scene/riskPoint',
-    groupId: [3],
-    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: 'manage',
-        component: () => import('@/views/system/grid/index'),
-        name: 'entGrid',
-        meta: { title: '网格', noCache: true, permit: 'aqpt_scene_grid' }
-      },
-      {
-        path: 'riskPoint',
-        component: () => import('@/views/aqpt/riskpoint/index'),
-        name: 'entRiskPoint',
-        meta: { title: '风险点', noCache: true, permit: 'aqpt_scene_riskpoint' }
-      },
-
-      {
-        path: 'projectWork',
-        component: () => import('@/views/aqpt/projectWork/index'),
-        name: 'projectWork',
-        meta: { title: '工作项目管理', noCache: true, permit: 'aqpt_scene_riskpoint' }
-      }
-    ]
-  },
-  {
-    path: '/aqpt/check',
-    component: Layout,
-    name: 'AqptCheck',
-    redirect: '/aqpt/check/index',
-    meta: {
-      title: '预警排查',
-      icon: 'icon-common_task',
-      permit: 'aqpt_check_manage'
-    },
-    groupId: [3],
-    children: [
-      {
-        path: 'plan',
-        component: () => import('@/views/aqpt/checkTask/plan/index'),
-        name: 'aqpt_check_plan',
-        meta: { title: '巡检计划', noCache: true, permit: 'aqpt_check_plan' }
-      },
-
-      {
-        path: 'index',
-        component: () => import('@/views/aqpt/checkTask/manage/index'),
-        name: 'aqpt_check_manage',
-        meta: { title: '巡检任务', noCache: true, permit: 'aqpt_check_task' }
-      },
-
-      {
-        path: 'record',
-        component: () => import('@/views/aqpt/checkTask/record/index'),
-        name: 'aqpt_check_record',
-        meta: { title: '巡检记录', noCache: true, permit: 'aqpt_check_record' }
-      }
-    ]
-  },
-  {
-    path: '/aqpt/danger',
-    component: Layout,
-    name: 'AqptDanger',
-    redirect: '/aqpt/danger/index',
-    meta: {
-      title: '预警管理',
-      permit: 'aqpt_danger'
-    },
-    groupId: [3],
-    children: [
-      {
-        path: 'index',
-        component: () => import('@/views/aqpt/danger/index'),
-        name: 'aqpt_danger_index',
-        meta: { title: '预警管理', noCache: true, icon: 'icon-common_riskmanagement', permit: 'aqpt_danger' }
-      }
-    ]
-  },
-
-  {
-    path: '/aqpt/report',
-    component: Layout,
-    name: 'AqptLedger',
-    redirect: '/aqpt/report/index',
-    meta: {
-      title: '台帐清单',
-      permit: 'aqpt_report'
-    },
-    groupId: [3],
-    children: [
-      {
-        path: 'index',
-        component: () => import('@/views/aqpt/report/index'),
-        name: 'aqpt_report_index',
-        meta: { title: '台帐中心', noCache: true, icon: 'icon-common_statistical', permit: 'aqpt_report' }
-      }
-    ]
-  },
-
-  {
-    path: '/aqpt/equipment',
-    component: Layout,
-    name: 'AqptEquipment',
-    redirect: '/aqpt/equipment/index',
-    meta: {
-      title: '设备管理',
-      icon: 'icon-common_equipment',
-      permit: 'aqpt_equipment'
-    },
-    groupId: [4],
-    children: [
-      {
-        path: 'index',
-        component: () => import('@/views/aqpt/equipment/index'),
-        name: 'aqpt_equipment_index',
-        meta: { title: '设备管理', noCache: true, permit: 'aqpt_equipment' }
-      }
-    ]
-  },
-
-  {
-    path: '/aqpt/ticket',
-    component: Layout,
-    name: 'AqptTicket',
-    meta: {
-      title: '危险作业',
-      icon: 'icon-common_satisfaction',
-      permit: 'aqpt_ticket'
-    },
-    groupId: [5],
-    redirect: '/aqpt/ticket/dz',
-    children: [
-      {
-        path: 'dz',
-        component: () => import('@/views/aqpt/ticket/dz/index'),
-        name: 'aqpt_ticket_dz',
-        meta: { title: '吊装作业', affix: true, permit: 'aqpt_ticket_dz' }
-      },
-      {
-        path: 'dh',
-        component: () => import('@/views/aqpt/ticket/dh/index'),
-        name: 'aqpt_ticket_dh',
-        meta: { title: '动火作业', affix: true, permit: 'aqpt_ticket_dh' }
-      },
-      {
-        path: 'dt',
-        component: () => import('@/views/aqpt/ticket/dt/index'),
-        name: 'aqpt_ticket_dt',
-        meta: { title: '动土作业', affix: true, permit: 'aqpt_ticket_dt' }
-      },
-      {
-        path: 'dl',
-        component: () => import('@/views/aqpt/ticket/dl/index'),
-        name: 'aqpt_ticket_dl',
-        meta: { title: '断路作业', affix: true, permit: 'aqpt_ticket_dl' }
-      },
-      {
-        path: 'gk',
-        component: () => import('@/views/aqpt/ticket/gk/index'),
-        name: 'aqpt_ticket_gk',
-        meta: { title: '高处作业', affix: true, permit: 'aqpt_ticket_gk' }
-      },
-      {
-        path: 'sbjx',
-        component: () => import('@/views/aqpt/ticket/sbjx/index'),
-        name: 'aqpt_ticket_sbjx',
-        meta: { title: '设备检修作业', affix: true, permit: 'aqpt_ticket_sbjx' }
-      },
-      {
-        path: 'mbcd',
-        component: () => import('@/views/aqpt/ticket/mbcd/index'),
-        name: 'aqpt_ticket_mbcd',
-        meta: { title: '盲板抽堵作业', affix: true, permit: 'aqpt_ticket_mbcd' }
-      },
-      {
-        path: 'sxkj',
-        component: () => import('@/views/aqpt/ticket/sxkj/index'),
-        name: 'aqpt_ticket_sxkj',
-        meta: { title: '受限空间作业', affix: true, permit: 'aqpt_ticket_sxkj' }
-      }
-    ]
-  },
-
-  {
-    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/art',
-    component: Layout,
-    name: 'AqptArtCenter',
-    redirect: '/aqpt/art/index',
-    groupId: [7],
-    hidden: true,
-    meta: {
-      title: '安全智库',
-      permit: 'aqpt_art_center'
-    },
-    children: [
-      {
-        path: 'index',
-        component: () => import('@/views/system/art/index'),
-        name: 'aqpt_art_center',
-        meta: { title: '安全智库', noCache: true, icon: 'icon-common_knowledge', permit: 'aqpt_art_center' }
-      }
-    ]
-  },
-  {
-    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: '/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: '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

+ 14 - 492
src/router/modules/aqpt.js

@@ -5,423 +5,15 @@ const aqptRouter = [
     path: '/',
     component: Layout,
     name: 'AqptPanorama',
-    redirect: '/goaf/info',
-    groupId: [0],
+    redirect: '/aqpt/account',
     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],
+    groupId: [1],
     meta: {
       title: '组织管理',
       icon: 'icon-common_digitization',
@@ -440,12 +32,6 @@ const aqptRouter = [
         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' }
-      // }
     ]
   },
   {
@@ -453,7 +39,7 @@ const aqptRouter = [
     component: Layout,
     redirect: '/aqpt/setting/groupCat',
     name: 'aqptSetting',
-    groupId: [9],
+    groupId: [1],
     meta: {
       title: '系统配置',
       icon: 'icon-common_configuration',
@@ -461,86 +47,22 @@ const aqptRouter = [
       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: 'camera',
+        component: () => import('@/views/goaf/sensor/camera'),
+        name: 'goaf-camera',
+        meta: {
+          title: '摄像头',
+          noCache: true,
+          permit: 'aqpt_danger'
+        }
+      },
       {
         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_app_update',
-        meta: { title: 'APP升级', noCache: true, permit: 'aqpt_setting_equipment_cat' }
+        meta: { title: '上下班配置', 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' }
-      // }
     ]
   }
 ]

+ 3 - 8
src/settings.js

@@ -1,5 +1,5 @@
 module.exports = {
-  title: '采空区信息化管理系统',
+  title: '运矿管理系统',
 
   /**
    * @type {boolean} true | false
@@ -38,8 +38,7 @@ module.exports = {
   */
   serverUrl: 'http://113.141.93.143:1688', // 正式环境
   // devServerUrl: 'http://113.141.93.143:1688', // 开发环境
-  devServerUrl: 'http://192.168.3.5:1688', // 开发环境 qu
-  // devServerUrl: 'http://192.168.3.201:8080/', // 开发环境  test
+  devServerUrl: 'http://192.168.3.5:1888', // 开发环境 qu
   mqttUrl: 'ws://113.141.93.143:8894/mqtt', // mqtt地址
   /**
   * websocket 地址
@@ -49,9 +48,5 @@ module.exports = {
   appID: '10001',
   appKey: '82a8bf439373e305',
   appSecret: '82a8bf439373e305',
-  permitTplId: 7,
-  wsServerUrl: {
-    dev: 'ws://ws.58yunkang.com/websocket/link',
-    pro: 'ws://ws.58yunkang.com/websocket/link'
-  }
+  permitTplId: 7
 }