| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-08-15 09:23:24 |
| | | * @LastEditTime: 2023-08-18 16:12:35 |
| | | * @FilePath: \srs-police-affairs\src\views\police\index.vue |
| | | * @Description: 辖区管理 |
| | | * |
| | |
| | | positionsArr = res |
| | | }) |
| | | |
| | | if (positionsArr.length == 0) { |
| | | |
| | | |
| | | |
| | | if (positionsArr.length < 1) { |
| | | this.$message({ |
| | | message: '该设备暂无轨迹数据', |
| | | type: 'warning' |
| | | }) |
| | | |
| | | return |
| | | } |
| | | |
| | | let flag = positionsArr.every(item => item.longitude == positionsArr[0].longitude && item.latitude == positionsArr[0].latitude) |
| | | |
| | | if (flag) { |
| | | this.$message({ |
| | | message: '该设备暂无轨迹数据', |
| | | type: 'warning' |
| | |
| | | } |
| | | |
| | | let positionStr = '' |
| | | |
| | | positionsArr.forEach(item => { |
| | | positionStr = positionStr + item.longitude + ',' + item.latitude + ';' |
| | | }) |
| | |
| | | |
| | | tc.addTrack(track) |
| | | |
| | | computerCapacity(positionsArr.map(item => { |
| | | return { |
| | | lng: Number(item.longitude), |
| | | lat: Number(item.latitude) |
| | | } |
| | | }), '', 2.5) |
| | | this.$EventBus.$emit('toPosition', { |
| | | siteJd: positionsArr[0].longitude, |
| | | siteWd: positionsArr[0].latitude, |
| | | siteGd: 1000, |
| | | siteHeading: 0, |
| | | sitePitch: -90 |
| | | }) |
| | | |
| | | tc.play() |
| | | }, |