|
@@ -138,12 +138,10 @@
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
getForestLeader,
|
|
getForestLeader,
|
|
- getLeaderTrack,
|
|
|
|
getPlanList,
|
|
getPlanList,
|
|
getRecordList,
|
|
getRecordList,
|
|
getPointList,
|
|
getPointList,
|
|
- getRy,
|
|
|
|
- getRemotelist
|
|
|
|
|
|
+ getRy
|
|
} from '@/api/leader'
|
|
} from '@/api/leader'
|
|
|
|
|
|
import supermap from '@/components/supermap' //超图
|
|
import supermap from '@/components/supermap' //超图
|
|
@@ -301,30 +299,6 @@
|
|
})
|
|
})
|
|
this.$refs.supermap.clearC()
|
|
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) {
|
|
getRecordList(id) {
|
|
this.showNothing = false;
|
|
this.showNothing = false;
|
|
@@ -341,12 +315,6 @@
|
|
this.setPointList(res);
|
|
this.setPointList(res);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- //点击左侧人员获取人员的巡林计划列表
|
|
|
|
- getRemotelist() {
|
|
|
|
- getRemotelist().then(res => {
|
|
|
|
- this.xunLinListOne = res.data;
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
//点击巡查轨迹时段 巡查轨迹落点
|
|
//点击巡查轨迹时段 巡查轨迹落点
|
|
setPointList(res) {
|
|
setPointList(res) {
|
|
let that = this;
|
|
let that = this;
|