shuishen
2023-08-18 e298a647ef8ffb1102bda822d40b1f29589d86cc
警力资源调整
1 files modified
32 ■■■■ changed files
src/views/police/index.vue 32 ●●●● patch | view | raw | blame | history
src/views/police/index.vue
@@ -2,7 +2,7 @@
 * @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: 辖区管理
 * 
@@ -644,7 +644,21 @@
                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'
@@ -654,6 +668,7 @@
            }
            let positionStr = ''
            positionsArr.forEach(item => {
                positionStr = positionStr + item.longitude + ',' + item.latitude + ';'
            })
@@ -702,12 +717,13 @@
            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()
        },