浏览代码

传感器实施数据

王通 2 年之前
父节点
当前提交
166bfdc920
共有 3 个文件被更改,包括 571 次插入211 次删除
  1. 22 0
      src/api/monitor.js
  2. 18 0
      src/router/index.js
  3. 531 211
      src/views/monitor.vue

+ 22 - 0
src/api/monitor.js

@@ -53,3 +53,25 @@ export function rotation(lng,lat,list) {
     }
   })
 }
+// 获取重点区域
+export function getRegionalFlag(id) {
+  return request({
+    url: '/center-fire/VisuForestCloudMapController/getRegionalFlag/'+id,
+    method: 'get',
+  })
+}
+//根据部门id查询部门及部门以下的数据,没有则默认查询所有
+export function getSensorListByDeptId(deptId) {
+  return request({
+    url: '/center-fire/VisuForestMonitorCenterController/getSensorListByDeptId?deptId=' + deptId,
+    method: 'get',
+  })
+}
+//根据部门id查询部门及部门以下的数据,没有则默认查询所有
+export function getDlblistBydeptId(deptId) {
+  return request({
+    url: '/center-fire/VisuForestMonitorCenterController/getDlblistBydeptId?deptId=' + deptId,
+    method: 'get',
+  })
+}
+

+ 18 - 0
src/router/index.js

@@ -42,6 +42,15 @@ export const constantRoutes = [{
 			title: '交通云图'
 		}
 	},
+  {
+    //监控中心
+    path: '/monitor',
+    name: 'monitor',
+    component: () => import('@/views/monitor'),
+    meta: {
+      title: '监控中心'
+    }
+  },
 	{
 		//交通人员
 		path: '/leader',
@@ -87,6 +96,15 @@ export const constantRoutesNew = [{
 		}
 	},
   {
+    //监控中心
+    path: '/monitor',
+    name: 'monitor',
+    component: () => import('@/views/monitor'),
+    meta: {
+      title: '监控中心'
+    }
+  },
+  {
     //交通人员
     path: '/leader',
     name: 'leader',

文件差异内容过多而无法显示
+ 531 - 211
src/views/monitor.vue