Compare commits

..

2 Commits

Author SHA1 Message Date
liujun de46f7ea95 Merge remote-tracking branch 'origin/dev' into dev 2024-11-01 17:50:53 +08:00
liujun 11fd98003a 企业端人员定位优化 2024-11-01 17:50:30 +08:00
1 changed files with 3 additions and 2 deletions

View File

@ -1289,7 +1289,7 @@ export default {
const collection = new Cesium.CustomDataSource('trajectoryEntityCollection')
collection.entities.add(entity)
viewer.dataSources.add(collection)
this.trajectoryEntityCollection = collection
this.trajectoryEntityCollection = Object.freeze(collection)
}
})
},
@ -2450,8 +2450,8 @@ export default {
const wsUrl = config.NoDwSysUrl + '/ltLocation/DW_' + new Date().getTime() + '_98'
_this.fwebsocket = new WebSocket(encodeURI(wsUrl))
_this.fwebsocket.onmessage = function(message) {
console.info('接收消息')
const peopleList = JSON.parse(message.data)
viewer.entities.suspendEvents()
for (let i = 0; i < peopleList.length; i++) {
const item = peopleList[i]
if ((!item)) continue
@ -2484,6 +2484,7 @@ export default {
_this.mqttPoint[_this.subscription.topic.substring(0, _this.subscription.topic.lastIndexOf('+')) + item.id] = item.id
}
}
viewer.entities.resumeEvents()
}
}
},