shuishen
2023-08-31 d57e0af510062ea74c597478e52460960dfa2adf
警力资源更改
1 files modified
37 ■■■■■ changed files
src/views/police/index.vue 37 ●●●●● 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-18 16:12:35
 * @LastEditTime: 2023-08-31 15:57:50
 * @FilePath: \srs-police-affairs\src\views\police\index.vue
 * @Description: 辖区管理
 * 
@@ -137,6 +137,7 @@
</template>
<script>
import { getHistoricalTrack } from '@/api/police/index.js'
import { getSearchExtensively } from '@/api/dept/index.js'
import { getDevices } from '@/api/video/index.js'
@@ -145,6 +146,9 @@
import { computerCapacity } from "@/utils/turfPolygon.js"
let tc = null
let track = null
let policeTimeOut = null
import { initMapPosition } from '@/utils/mapPositionInit'
export default {
    inject: ['userInfo'],
@@ -238,7 +242,6 @@
        this.navClick()
        this.$nextTick(() => {
            this.$EventBus.$emit('closeMxTileset')
            tc = new global.DC.TrackController(global.viewer)
@@ -277,6 +280,7 @@
        // 设备分页处理
        handleCurrentChange (currentPage) {
            this.equimentPage.currentPage = currentPage
            this.getEquipmentPaging({ type: this.navType })
        },
@@ -286,6 +290,11 @@
            this.equimentLoading = true
            this.emptyText = ""
            clearInterval(policeTimeOut)
            policeTimeOut = setInterval(() => {
                this.getEquipmentPaging(params)
            }, 30000)
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'carLayers',
@@ -466,32 +475,17 @@
        // 类别切换
        navClick (type) {
            if (type && type == this.navType) return
            this.detailFlag = false
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'polylineLayer',
                type: 'VectorLayer'
            })
            this.$store.commit('SET_VIDEOROWCLICKPOPUP', false)
            this.$store.commit('SET_VIDEOLISTPOPUP', false)
            if (type) {
                this.navType = type
            }
            this.equimentLoading = true
            this.searchValue = ''
            this.equimentPage.currentPage = 1
            this.equimentPage.total = 0
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'carLayers',
                type: 'VectorLayer'
            })
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'policeMonitoringLayers',
                type: 'VectorLayer'
            })
            this.getEquipmentPaging({ type: this.navType })
        },
@@ -643,9 +637,6 @@
            await this.getHistoricalTrack({ start: start, end: end, channelId: this.currentSelectEquipment.channelId, type: this.navType }).then(res => {
                positionsArr = res
            })
            if (positionsArr.length < 1) {
                this.$message({
@@ -876,6 +867,8 @@
            tc.removeTrack(track)
        }
        clearInterval(policeTimeOut)
        window.removeEventListener('resize', this.setTableHeight)
        this.$parent.$parent.resize('0px')