Compare commits

..

No commits in common. "8f899ecf3e446e68f7ca51890a8f50b131165161" and "5e9759544dd06ebdded2c296c994aa96c609f828" have entirely different histories.

9 changed files with 38 additions and 46 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2020-07-07 16:03:23
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-11-24 19:38:36
* @LastEditTime: 2022-11-24 15:54:56
* @Description: 系统静态参数配置
*/
var _global = {}
@ -63,14 +63,14 @@ var CONFIGITEM = {
},
//
camreaInfo: {
cameraUrl: '10.134.135.92:9537', // 西-
// cameraUrl: '10.134.135.92:9537', // 西-
// cameraUrl: '10.134.135.9:9537', // 西-
// cameraUrl: '192.168.124.236:9537', // vpn
cameraUrl: '192.168.124.236:9537', // vpn
},
backUrl: 'http://10.134.135.9:9797',
apiURL: 'http://10.134.135.92:8888/renren-admin',
// apiURL: 'http://192.168.124.233:8888/ucs-admin',
// previewUrl: 'http://10.134.135.9:9796/',
previewUrl: 'http://10.134.135.9:9796/',
// websocketURL: '10.134.135.9:8888/ucs-admin', //
// websocketURL: '10.134.135.92:8888/ucs-admin', //
websocketURL: '192.168.124.254:8888/ucs-admin', // -

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2020-07-07 16:03:23
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-11-24 17:33:36
* @LastEditTime: 2022-11-24 16:01:04
* @Description: 地图静态参数配置
*/
var _mapConfig = {}

View File

@ -1,8 +1,8 @@
/*
* @Author: hisense.wuhongjian
* @Date: 2022-04-20 17:16:35
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-11-24 20:32:27
* @LastEditors: Light
* @LastEditTime: 2022-11-24 18:04:45
* @Description: 告诉大家这是什么
*/
import request from '@/utils/request'

View File

@ -74,7 +74,7 @@ export function MapFun(mapObj) {
* @param layerName {String} 图层名
*/
const _removeLayerByLayerName = function(layerName) {
const layer = layerGroup.get(layerName) ||
const layer = layerGroup.get(layerName)
// const feature = featureGroup;
// map.popupclose();
// debugger;

View File

@ -84,12 +84,19 @@ function createMarkerClusterLayer(layerClassName, mapObj) {
})
markerClusterLayer.on('clusterclick', function(a) {
let clusterList = [];
if (mapObj.getZoom() == mapObj.getMaxZoom()) {
//console.log('cluster ' + a.layer.getAllChildMarkers());
if (a.layer.getAllChildMarkers().length < 50) {
for (var i = 0; i < a.layer.getAllChildMarkers().length; i++) {
//console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].resourceData);
//console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].fData);
clusterList.push(a.layer.getAllChildMarkers()[i].resourceData);
}
//console.log('clusterList ' + a.layer.getAllChildMarkers(array, true));
//console.log('zzzzzzzzz', mapObj.getZoom(), mapObj.getMaxZoom());
if (mapObj.getZoom() == mapObj.getMaxZoom()) {
mybus.emit('openOperationPopup', clusterList);
}
}
});
}
return markerClusterLayer
@ -187,14 +194,13 @@ function addPointOnMap({
.openOn(mapObj.map)
})
}
const layer = marker.addTo(mapObj.map);
featureGroup.addLayer(layer)
layerGroup.set('potcon', layer)
// marker
// .addTo(mapObj.map)
// .bindPopup(elementHtml, { className: popupClassName })
// .openPopup() :
// marker.addTo(mapObj.map)
return isOpenPopup ?
marker
.addTo(mapObj.map)
.bindPopup(elementHtml, { className: popupClassName })
.openPopup() :
marker.addTo(mapObj.map)
}
/**

View File

@ -919,14 +919,9 @@
const setTitle = () => {
let title = titleNameArray
let whoShow1 = ref(whoShow)
if (
whoShow1 &&
whoShow1.value.itShowXiHaiAn &&
title[0].name !== '基础设施'
) {
;[title[0], title[2]] = [title[2], title[0]]
if (whoShow1 && whoShow1.value.itShowXiHaiAn) {
title[0] = title.splice(2, 1, title[0])[0]
}
debugger
titleName.value = title
}
//

View File

@ -8,7 +8,6 @@
const IS_MOVE_DEVICE = document.body.clientWidth < 992 //
const MSE_IS_SUPPORT = !!window.MediaSource // mse
import { message } from 'ant-design-vue'
import mybus from '@/myplugins/mybus'
export default {
name: 'H5Player',
props: {
@ -62,7 +61,6 @@
created() {},
mounted() {
this.init()
mybus.emit('closeLoading', true)
this.createPlayer()
this.arrangeWindow()
//videoUrl this.realplay(this.videoUrl,0);//index
@ -115,7 +113,6 @@
//
console.log('pluginError callback: ', iWndIndex, iErrorCode, oError)
message.error('取流异常,请稍后尝试')
mybus.emit('closeLoading', false)
},
windowEventOver: function (iWndIndex) {
//
@ -143,7 +140,6 @@
)
//
that.pausePlay(iWndIndex)
mybus.emit('closeLoading', false)
},
performanceLack: function () {
//
@ -165,8 +161,7 @@
//
//
realplay(playURL, index1) {
mybus.emit('closeLoading', true)
this.mode = 0 //0 1
this.mode = 1 //0 1
const { player, mode, urls } = this,
index = player.currentWindowIndex
// playURL = this.realplay
@ -201,7 +196,7 @@
() => {
this.playback.rate = 0
console.log('stopAllPlay success')
// this.closeVideoTree()
this.closeVideoTree()
},
(e) => {
console.error(e)

View File

@ -648,12 +648,10 @@
{{ userInfo.realNameShow }}
</div>
<!--地图上点击之后弹出的操作弹窗-->
<a-spin size="large" :spinning="spinning">
<camera-popup-on-map
:camera-Data-List="cameraDataList"
:reset-flag="resetFlag"
></camera-popup-on-map>
</a-spin>
</div>
</div>
</a-modal>
@ -701,7 +699,6 @@
const current = ref(1)
const videoTotal = ref(0)
const router = useRouter()
const spinning = ref(true)
const whoShow1 = ref(whoShow)
const isXiHaiAn = whoShow1.value.itShowXiHaiAn
const options = reactive({
@ -959,10 +956,6 @@
mapSearchParam.value.parentId = parentId
getCamera()
})
mybus.off('closeLoading')
mybus.on('closeLoading', (val) => {
spinning.value = val
})
mybus.off('changeRoomInput')
mybus.on('changeRoomInput', (val) => {
console.log('更改=======》')

View File

@ -237,6 +237,8 @@ import { ElMessage } from 'element-plus'
queryCameraConditionPlace(data) {
let params = {
placeTypeCode: data,
pageNum: "1",
pageSize: 40000,
}
CameraConditionPlaceType(params).then((res) => {
this.addResourceTomap('videoMap', res.data.data)
@ -292,7 +294,7 @@ import { ElMessage } from 'element-plus'
if(this.addressType=='2'){
mybus.emit('openOperationPopup', [item]);
}else{
this.hiMapFun.removeLayerByLayerName('potcon');
// this.hiMapFun.removeLayerByLayerName('potcon');
// this.hiMapFun.clearAllLayers();
// this.getCameraAllPage()
this.hiMapFun.addPointOnMap({feature:latLng,iconUrl:'poi-red.png',layerName:'potcon'})
@ -382,11 +384,9 @@ import { ElMessage } from 'element-plus'
if (!this.whoShow1.itShowXiHaiAn) {
getCameraByParentId(this.mapSearchParam).then((res) => {
console.log('根据parent查询摄像头', res.data.data)
this.addResourceTomap('videoMap', res.data.data)
})
} else {
this.hiMapFun.mapFlyTo({lat:'36.017043',lng: '119.922772'}, 9)
console.log('根据parent查询摄像头111111',this.mapSearchParam)
let params = {
regionId:
@ -537,6 +537,9 @@ import { ElMessage } from 'element-plus'
getCameraAllPage(page) {
let params = {
regionId: "70be8c5b664f4bcf869d82f2e8335051",
// pageNum: "1",
// pageSize: 1000,
// type: 1,
borderPolygonList: []
}
getCameraByCondition(params).then((res) => {