| | |
| | | * @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: 辖区管理 |
| | | * |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { getHistoricalTrack } from '@/api/police/index.js' |
| | | import { getSearchExtensively } from '@/api/dept/index.js' |
| | | import { getDevices } from '@/api/video/index.js' |
| | |
| | | import { computerCapacity } from "@/utils/turfPolygon.js" |
| | | let tc = null |
| | | let track = null |
| | | |
| | | let policeTimeOut = null |
| | | |
| | | import { initMapPosition } from '@/utils/mapPositionInit' |
| | | export default { |
| | | inject: ['userInfo'], |
| | |
| | | |
| | | this.navClick() |
| | | |
| | | |
| | | this.$nextTick(() => { |
| | | this.$EventBus.$emit('closeMxTileset') |
| | | tc = new global.DC.TrackController(global.viewer) |
| | |
| | | // 设备分页处理 |
| | | handleCurrentChange (currentPage) { |
| | | this.equimentPage.currentPage = currentPage |
| | | |
| | | this.getEquipmentPaging({ type: this.navType }) |
| | | }, |
| | | |
| | |
| | | this.equimentLoading = true |
| | | this.emptyText = "" |
| | | |
| | | clearInterval(policeTimeOut) |
| | | |
| | | policeTimeOut = setInterval(() => { |
| | | this.getEquipmentPaging(params) |
| | | }, 30000) |
| | | |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'carLayers', |
| | |
| | | // 类别切换 |
| | | 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 }) |
| | | }, |
| | |
| | | await this.getHistoricalTrack({ start: start, end: end, channelId: this.currentSelectEquipment.channelId, type: this.navType }).then(res => { |
| | | positionsArr = res |
| | | }) |
| | | |
| | | |
| | | |
| | | |
| | | if (positionsArr.length < 1) { |
| | | this.$message({ |
| | |
| | | tc.removeTrack(track) |
| | | } |
| | | |
| | | clearInterval(policeTimeOut) |
| | | |
| | | window.removeEventListener('resize', this.setTableHeight) |
| | | |
| | | this.$parent.$parent.resize('0px') |