ソースを参照

林业更换巡查轨迹接口

wang_xy 2 年 前
コミット
af437d6eaa
2 ファイル変更1 行追加41 行削除
  1. 0 8
      src/api/leader.js
  2. 1 33
      src/views/leader.vue

+ 0 - 8
src/api/leader.js

@@ -23,14 +23,6 @@ export function getLeaderTrack(trackById) {
   })
 }
 
-// 点击左侧人员获取人员的巡林计划
-export function getRemotelist() {
-  return request({
-    url: '/center-fire/VisuForestLeaderController/getRemotelist',
-    method: 'get',
-  })
-}
-
 // 巡林任务
 export function getPlanList(userId) {
   return request({

+ 1 - 33
src/views/leader.vue

@@ -138,12 +138,10 @@
 <script>
 	import {
 		getForestLeader,
-		getLeaderTrack,
 		getPlanList,
 		getRecordList,
 		getPointList,
-		getRy,
-		getRemotelist
+		getRy
 	} from '@/api/leader'
 
 	import supermap from '@/components/supermap' //超图
@@ -301,30 +299,6 @@
 				})
 				this.$refs.supermap.clearC()
 			},
-			//点击左侧人员列表获取轨迹
-			getLeaderTrack(userId) {
-				this.getRemotelist();
-				this.listCurrentIndex1 = userId
-				let that = this
-				this.connectList = []
-				getLeaderTrack(userId).then(res => {
-					if (res.data != null && res.data.length > 0) {
-						for (let i = 0; i < res.data.length; i++) {
-							let latlng = {
-								lat: res.data[i].latitude,
-								lng: res.data[i].longitude
-							}
-							this.connectList.push(latlng)
-						}
-						setTimeout(() => {
-							that.$refs.supermap.clearC()
-							that.$refs.supermap.setConnectList(this.connectList, 'red')
-						}, 1000)
-					} else {
-						that.$refs.supermap.clearC()
-					}
-				})
-			},
 			//点击右侧巡林计划获取 巡查记录
 			getRecordList(id) {
 				this.showNothing = false;
@@ -341,12 +315,6 @@
 					this.setPointList(res);
 				})
 			},
-			//点击左侧人员获取人员的巡林计划列表
-			getRemotelist() {
-				getRemotelist().then(res => {
-					this.xunLinListOne = res.data;
-				})
-			},
 			//点击巡查轨迹时段 巡查轨迹落点
 			setPointList(res) {
 				let that = this;