ソースを参照

传感器实施数据

王通 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