| | |
| | | //摄像头 |
| | | this.getEquipmentAll({ type: 1},'') |
| | | //警车 |
| | | this.getEquipmentAll({ type: 0},''); |
| | | this.getEquipmentAll({ type: 0 }, '') |
| | | //手台-公网 |
| | | this.getEquipmentAll({ type: "2-1" },''); |
| | | this.getEquipmentAll({ type: "2-1" }, '') |
| | | //手台-专网 |
| | | this.getEquipmentAll({ type: "2-2" },''); |
| | | this.getEquipmentAll({ type: "2-2" }, '') |
| | | //执法记录仪 |
| | | this.getEquipmentAll({ type: 3 },'') |
| | | |
| | |
| | | |
| | | // 警员警车列表根据活动deptid筛选 |
| | | // 获取树状警员数据 |
| | | console.log('item',item.deptId,item); |
| | | console.log('item', item.deptId, item) |
| | | this.getPolicemanTree({deptId:item.deptId}) |
| | | |
| | | this.getCarList({deptId:item.deptId}) |
| | |
| | | // 清除定时器 |
| | | if(realPoliceTimer != {}) { |
| | | for(let item in realPoliceTimer) { |
| | | console.log(`定时器realPoliceTimer[${item}]关闭了`); |
| | | console.log(`定时器realPoliceTimer[${item}]关闭了`) |
| | | clearInterval(realPoliceTimer[item]) |
| | | } |
| | | } |
| | | if(data != []){ |
| | | data.some(item => { |
| | | return item.label == '视频监控' |
| | | }) ? this.iconImageShowOrHidden('/img/icon/camera.png', '',cameraList, 'activityCameraLayers') : this.clearLayerIconForMap('activityCameraLayers'); |
| | | }) ? this.iconImageShowOrHidden('/img/icon/camera.png', '', cameraList, 'activityCameraLayers') : this.clearLayerIconForMap('activityCameraLayers') |
| | | |
| | | data.some(item => { |
| | | return item.label == '警车' |
| | | }) ? this.iconImageShowOrHidden('/img/icon/real-car.png','/img/icon/real-car-ok.png', carList, 'activityCarLayers') : this.clearLayerIconForMap('activityCarLayers'); |
| | | }) ? this.iconImageShowOrHidden('/img/icon/real-car.png', '/img/icon/real-car-ok.png', carList, 'activityCarLayers') : this.clearLayerIconForMap('activityCarLayers') |
| | | |
| | | data.some(item => { |
| | | return item.label == '公网' |
| | | }) ? this.iconImageShowOrHidden('/img/icon/real-public-recorder.png','/img/icon/real-public-recorder-ok.png', talkBackEquipmentPublicList, 'activityTalkBackEquipmentPublicLayers') : this.clearLayerIconForMap('activityTalkBackEquipmentPublicLayers'); |
| | | }) ? this.iconImageShowOrHidden('/img/icon/real-public-recorder.png', '/img/icon/real-public-recorder-ok.png', talkBackEquipmentPublicList, 'activityTalkBackEquipmentPublicLayers') : this.clearLayerIconForMap('activityTalkBackEquipmentPublicLayers') |
| | | |
| | | data.some(item => { |
| | | return item.label == '专网' |
| | | }) ? this.iconImageShowOrHidden('/img/icon/real-recorder.png','/img/icon/real-recorder-ok.png', talkBackEquipmentList, 'activityTalkBackEquipmentLayers') : this.clearLayerIconForMap('activityTalkBackEquipmentLayers'); |
| | | }) ? this.iconImageShowOrHidden('/img/icon/real-recorder.png', '/img/icon/real-recorder-ok.png', talkBackEquipmentList, 'activityTalkBackEquipmentLayers') : this.clearLayerIconForMap('activityTalkBackEquipmentLayers') |
| | | |
| | | data.some(item => { |
| | | return item.label == '执法记录仪' |
| | | }) ? this.iconImageShowOrHidden('/img/icon/real-phone.png', '/img/icon/real-phone-ok.png',policeCarmeraList, 'activityPoliceCameraLayers') : this.clearLayerIconForMap('activityPoliceCameraLayers'); |
| | | }) ? this.iconImageShowOrHidden('/img/icon/real-phone.png', '/img/icon/real-phone-ok.png', policeCarmeraList, 'activityPoliceCameraLayers') : this.clearLayerIconForMap('activityPoliceCameraLayers') |
| | | } |
| | | }, |
| | | |
| | |
| | | */ |
| | | clearLayerIconForMap(layerName) { |
| | | realPoliceTimer[layerName] && clearInterval(realPoliceTimer[layerName]) |
| | | console.log(`定时器realPoliceTimer[${layerName}]关闭了`); |
| | | console.log(`定时器realPoliceTimer[${layerName}]关闭了`) |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: layerName, |
| | | type: 'VectorLayer' |
| | |
| | | |
| | | // 定时查找实时警力资源 |
| | | searchRealResources(layerName){ |
| | | console.log(`定时器realPoliceTimer[${layerName}]开启了`); |
| | | console.log(`定时器realPoliceTimer[${layerName}]开启了`) |
| | | let type = '' |
| | | if(layerName == 'activityCarLayers') { |
| | | type = 0 |
| | |
| | | }else if (layerName == 'activityPoliceCameraLayers'){ |
| | | type = 3 |
| | | } |
| | | this.getEquipmentAll({ type: type ,query:this.showingSecurityId },layerName); |
| | | this.getEquipmentAll({ type: type, query: this.showingSecurityId }, layerName) |
| | | }, |
| | | |
| | | // 大小重置 |
| | |
| | | // 清除定时器 |
| | | if(realPoliceTimer != {}) { |
| | | for(let item in realPoliceTimer) { |
| | | console.log(`定时器realPoliceTimer[${item}]关闭了`); |
| | | console.log(`定时器realPoliceTimer[${item}]关闭了`) |
| | | clearInterval(realPoliceTimer[item]) |
| | | } |
| | | } |