Browse Source

应急可视化

彭宇 2 years ago
parent
commit
a492585c28
5 changed files with 87 additions and 15 deletions
  1. 56 0
      src/api/leader.js
  2. 31 0
      src/api/monitor.js
  3. 0 5
      src/views/datacenter.vue
  4. 0 5
      src/views/leader.vue
  5. 0 5
      src/views/monitor.vue

+ 56 - 0
src/api/leader.js

@@ -0,0 +1,56 @@
+import request from '@/utils/request'
+
+// 获取左侧
+export function getRy() {
+  return request({
+    url: '/center-fire/VisuForestCloudMapController/getRy',
+    method: 'post',
+  })
+}
+
+// 获取左侧人员列表
+export function getForestLeader(linJob,linType) {
+  return request({
+    url: '/center-fire/VisuForestLeaderController/getForestLeader?linJob='+linJob+"&linType="+linType,
+    method: 'get',
+  })
+}
+// 点击左侧人员列表获取轨迹
+export function getLeaderTrack(trackById) {
+  return request({
+    url: '/center-fire/VisuForestLeaderController/getLeaderTrack?trackById='+trackById,
+    method: 'get',
+  })
+}
+
+// 点击左侧人员获取人员的巡林计划
+export function getRemotelist() {
+  return request({
+    url: '/center-fire/VisuForestLeaderController/getRemotelist',
+    method: 'get',
+  })
+}
+
+// 巡林计划
+export function getPlanList(personId) {
+  return request({
+    url: '/center-fire/VisuForestLeaderController/getPlanList?personId='+personId,
+    method: 'get',
+  })
+}
+
+// 巡林记录
+export function getRecordList(planId, personId) {
+  return request({
+    url: '/center-fire/VisuForestLeaderController/getRecordList?planId='+planId+'&personId='+personId,
+    method: 'get',
+  })
+}
+
+// 巡林轨迹
+export function getPointList(recordId) {
+  return request({
+    url: '/center-fire/VisuForestLeaderController/getPointList?recordId='+recordId,
+    method: 'get',
+  })
+}

+ 31 - 0
src/api/monitor.js

@@ -0,0 +1,31 @@
+import request from '@/utils/request'
+
+// 获取左侧动态感知设备
+export function selectDeviceType() {
+  return request({
+    url: '/center-fire/VisuForestMonitorCenterController/selectDeviceType',
+    method: 'post',
+  })
+}
+// 根据设备类型查看列表
+export function selectCameraByDeptId(deptId) {
+  return request({
+    url: '/center-fire/VisuForestMonitorCenterController/selectCameraByDeptId',
+    method: 'post',
+    data:{"deptId":deptId}
+  })
+}
+// 获取重点区域列表
+export function selectKeyAreaList() {
+  return request({
+    url: '/center-fire/VisuForestCloudMapController/importarealistFegin',
+    method: 'get',
+  })
+}
+// 获取重点区域
+export function getRegionalFlag(id) {
+  return request({
+    url: '/center-fire/VisuForestCloudMapController/getRegionalFlag/'+id,
+    method: 'get',
+  })
+}

+ 0 - 5
src/views/datacenter.vue

@@ -100,7 +100,6 @@ export default {
     window.showDialog = this.showDialog
     window.choseLayerSwitching = this.choseLayerSwitching
     window.choseLayerSwitchingList = this.choseLayerSwitchingList
-    window.choseLayerSwitchingList_Data = this.choseLayerSwitchingList_Data
     /** ----------------------------------底部按钮公用组件结束------------------------------------- */
   },
   mounted() {
@@ -200,10 +199,6 @@ export default {
     choseLayerSwitchingList(urlList) {
       this.$refs.supermap.layerSwitchingList(urlList)
     },
-    //选择图层(传递数组)  带数据
-    choseLayerSwitchingList_Data(urlList) {
-      this.$refs.supermap.layerSwitchingList_Data(urlList)
-    },
     /** ----------------------------------底部按钮公用组件结束------------------------------------- */
     //数据分布chart
     dataChat() {

+ 0 - 5
src/views/leader.vue

@@ -189,7 +189,6 @@
 			window.showDialog = this.showDialog
 			window.choseLayerSwitching = this.choseLayerSwitching
 			window.choseLayerSwitchingList = this.choseLayerSwitchingList
-      window.choseLayerSwitchingList_Data = this.choseLayerSwitchingList_Data
 			/** ----------------------------------底部按钮公用组件结束------------------------------------- */
 		},
     mounted(){
@@ -261,10 +260,6 @@
 			choseLayerSwitchingList(urlList) {
 				this.$refs.supermap.layerSwitchingList(urlList)
 			},
-      //选择图层(传递数组)  带数据
-      choseLayerSwitchingList_Data(urlList) {
-        this.$refs.supermap.layerSwitchingList_Data(urlList)
-      },
 			/** ----------------------------------底部按钮公用组件结束------------------------------------- */
 
 			//初始化

+ 0 - 5
src/views/monitor.vue

@@ -173,7 +173,6 @@ export default {
     window.showDialog = this.showDialog
     window.choseLayerSwitching = this.choseLayerSwitching
     window.choseLayerSwitchingList = this.choseLayerSwitchingList
-    window.choseLayerSwitchingList_Data = this.choseLayerSwitchingList_Data
     /** ----------------------------------底部按钮公用组件结束------------------------------------- */
   },
   mounted() {
@@ -319,10 +318,6 @@ export default {
     choseLayerSwitchingList(urlList) {
       this.$refs.supermap.layerSwitchingList(urlList)
     },
-    //选择图层(传递数组)  带数据
-    choseLayerSwitchingList_Data(urlList) {
-      this.$refs.supermap.layerSwitchingList_Data(urlList)
-    },
     /** ----------------------------------底部按钮公用组件结束------------------------------------- */
     cameraChat() {
       // 基于准备好的dom,初始化echarts实例