|
@@ -106,7 +106,7 @@ export default {
|
|
|
let symbolPointCubeEvent = null;
|
|
|
let addGraphicsEvent = null;
|
|
|
let featurePointsPlottingEvent = null;
|
|
|
- let currentShowGridId = null;
|
|
|
+ let currentShowGridParams = null;
|
|
|
let realFlyPointDataQueue = [];
|
|
|
let addFlowPathEvent = null;
|
|
|
let movePointEvent = null;
|
|
@@ -741,6 +741,16 @@ export default {
|
|
|
let status = params.status;
|
|
|
let scale_handle_id = params.scale_handle_id;
|
|
|
if(status === "hide"){
|
|
|
+ if(scale_handle_id === "scale_handle_cube"){
|
|
|
+ getCurrentRealPower({
|
|
|
+ status:"hide",
|
|
|
+ id:"power_wj"
|
|
|
+ })
|
|
|
+ }else if(scale_handle_id === "scale_handle_tileLayerChange"){
|
|
|
+ //暂无操作
|
|
|
+ }else if(scale_handle_id === "scale_handle_sceneLayerLayerChange"){
|
|
|
+ //暂无操作
|
|
|
+ }
|
|
|
if(m_handles.has(scale_handle_id)){
|
|
|
m_handles.remove(scale_handle_id);
|
|
|
}
|
|
@@ -2192,14 +2202,14 @@ export default {
|
|
|
id:params.id,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = null;
|
|
|
+ currentShowGridParams = null;
|
|
|
return
|
|
|
}
|
|
|
showThreeCubeDetail({
|
|
|
id:params.lastId,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = id;
|
|
|
+ currentShowGridParams = id;
|
|
|
getSixPowerPoints({
|
|
|
id,
|
|
|
lastId,
|
|
@@ -2228,7 +2238,7 @@ export default {
|
|
|
fields: params.fields,
|
|
|
scrollId: params.scrollId,
|
|
|
}).then(res =>{
|
|
|
- if(currentShowGridId === params.id){
|
|
|
+ if(currentShowGridParams === params.id){
|
|
|
if(res.data.data.list?.length >= 100000 && res.data.data.scrollId){
|
|
|
// res.data.data.list.forEach((point) =>{
|
|
|
// point.color = [0, 1, 1];
|
|
@@ -2538,7 +2548,7 @@ export default {
|
|
|
const connectFlyPointWebSocket = (status) => {
|
|
|
if(status === "show"){
|
|
|
if(flyPointSocket){
|
|
|
- socket.send(JSON.stringify({
|
|
|
+ flyPointSocket.send(JSON.stringify({
|
|
|
"flightIdS": ["EFF7AE7B8B044436997F93F327819C20","18207414-c19e-4233-87e2-e6e4743fdea0"],
|
|
|
"messageCode": 1,
|
|
|
"isShow": true
|
|
@@ -2547,13 +2557,12 @@ export default {
|
|
|
flyPointSocket = new WebSocket('ws://58.34.215.19:8100/flight/data/websocket');
|
|
|
flyPointSocket.onopen = () => {
|
|
|
console.log('WebSocket 连接成功');
|
|
|
- flyPointSocket.send(JSON.stringify({
|
|
|
- "flightIdS": ["EFF7AE7B8B044436997F93F327819C20","18207414-c19e-4233-87e2-e6e4743fdea0"],
|
|
|
- "messageCode": 1,
|
|
|
- "isShow": true
|
|
|
- }));
|
|
|
};
|
|
|
flyPointSocket.onmessage = (messageEvent) => {
|
|
|
+ showThreeCubeDetail({
|
|
|
+ "id":"movePointCube",
|
|
|
+ "status":"hide"
|
|
|
+ })
|
|
|
let messages = JSON.parse(messageEvent.data);
|
|
|
if(movePointEvent){
|
|
|
movePointEvent.update(messages)
|
|
@@ -2564,6 +2573,27 @@ export default {
|
|
|
data:messages
|
|
|
});
|
|
|
}
|
|
|
+ let data = []
|
|
|
+ if(messages.length > 0){
|
|
|
+ messages.forEach((item)=>{
|
|
|
+ if(item.surroundGrid != null&&item.surroundGrid.length > 0){
|
|
|
+ data = data.concat(item.surroundGrid);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(data.length > 0){
|
|
|
+ showThreeCubeDetail({
|
|
|
+ "id":"movePointCube",
|
|
|
+ "status":"show",
|
|
|
+ "size": {
|
|
|
+ x:data[0].boxSize.latLength,
|
|
|
+ y:data[0].boxSize.lonLength,
|
|
|
+ z:data[0].boxSize.height
|
|
|
+ },
|
|
|
+ "points":data,
|
|
|
+ "depthTest":false
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
flyPointSocket.onerror = (error) => {
|
|
@@ -2591,7 +2621,6 @@ export default {
|
|
|
//获取当前场景
|
|
|
function getOccupyCube(params){
|
|
|
let id = params.id;
|
|
|
- let lastId = params.lastId;
|
|
|
let status = params.status;
|
|
|
let level = params.level;
|
|
|
let minZ = params.minZ;
|
|
@@ -2603,17 +2632,23 @@ export default {
|
|
|
id:params.id,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = null;
|
|
|
+ currentShowGridParams = null;
|
|
|
return
|
|
|
}
|
|
|
showThreeCubeDetail({
|
|
|
id:params.lastId,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = id;
|
|
|
+ currentShowGridParams = {
|
|
|
+ id,
|
|
|
+ level,
|
|
|
+ minZ,
|
|
|
+ maxZ,
|
|
|
+ rings,
|
|
|
+ fields
|
|
|
+ };
|
|
|
getOccupyByPolygon({
|
|
|
id,
|
|
|
- lastId,
|
|
|
status,
|
|
|
minZ,
|
|
|
maxZ,
|
|
@@ -2634,7 +2669,14 @@ export default {
|
|
|
fields: params.fields,
|
|
|
scrollId: params.scrollId,
|
|
|
}).then(res =>{
|
|
|
- if(currentShowGridId === params.id){
|
|
|
+ if(JSON.stringify(currentShowGridParams) === JSON.stringify({
|
|
|
+ id:params.id,
|
|
|
+ level:params.level,
|
|
|
+ minZ:params.minZ,
|
|
|
+ maxZ:params.maxZ,
|
|
|
+ rings:params.rings,
|
|
|
+ fields:params.fields,
|
|
|
+ })){
|
|
|
if(res.data.data.list?.length >= 100000 && res.data.data.scrollId){
|
|
|
|
|
|
let size = {
|
|
@@ -2674,7 +2716,6 @@ export default {
|
|
|
//获取当前场景
|
|
|
function getPowerCube(params){
|
|
|
let id = params.id;
|
|
|
- let lastId = params.lastId;
|
|
|
let status = params.status;
|
|
|
let level = params.level;
|
|
|
let minZ = params.minZ;
|
|
@@ -2686,24 +2727,26 @@ export default {
|
|
|
id:params.id,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = null;
|
|
|
+ currentShowGridParams = null;
|
|
|
return
|
|
|
}
|
|
|
- showThreeCubeDetail({
|
|
|
- id:params.lastId,
|
|
|
- status:"hide"
|
|
|
- });
|
|
|
- currentShowGridId = id;
|
|
|
+ currentShowGridParams = {
|
|
|
+ id,
|
|
|
+ level,
|
|
|
+ minZ,
|
|
|
+ maxZ,
|
|
|
+ rings,
|
|
|
+ fields
|
|
|
+ };
|
|
|
getSixPowerByPolygon({
|
|
|
id,
|
|
|
- lastId,
|
|
|
status,
|
|
|
minZ,
|
|
|
maxZ,
|
|
|
level,
|
|
|
fields,
|
|
|
rings,
|
|
|
- scrollId:""
|
|
|
+ scrollId:"",
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -2717,7 +2760,14 @@ export default {
|
|
|
fields: params.fields,
|
|
|
scrollId: params.scrollId,
|
|
|
}).then(res =>{
|
|
|
- if(currentShowGridId === params.id){
|
|
|
+ if(JSON.stringify(currentShowGridParams) === JSON.stringify({
|
|
|
+ id:params.id,
|
|
|
+ level:params.level,
|
|
|
+ minZ:params.minZ,
|
|
|
+ maxZ:params.maxZ,
|
|
|
+ rings:params.rings,
|
|
|
+ fields:params.fields,
|
|
|
+ })){
|
|
|
if(res.data.data.list?.length >= 100000 && res.data.data.scrollId){
|
|
|
|
|
|
let size = {
|
|
@@ -2770,14 +2820,14 @@ export default {
|
|
|
id:params.id,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = null;
|
|
|
+ currentShowGridParams = null;
|
|
|
return
|
|
|
}
|
|
|
showThreeCubeDetail({
|
|
|
id:params.lastId,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = id;
|
|
|
+ currentShowGridParams = id;
|
|
|
getSixPowerByFunnel({
|
|
|
id,
|
|
|
lastId,
|
|
@@ -2811,6 +2861,7 @@ export default {
|
|
|
"status":params.status,
|
|
|
"size":size,
|
|
|
"points":res.data.data.list,
|
|
|
+ "depthTest":false
|
|
|
})
|
|
|
})
|
|
|
}
|
|
@@ -2829,14 +2880,14 @@ export default {
|
|
|
id:params.id,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = null;
|
|
|
+ currentShowGridParams = null;
|
|
|
return
|
|
|
}
|
|
|
showThreeCubeDetail({
|
|
|
id:params.lastId,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = id;
|
|
|
+ currentShowGridParams = id;
|
|
|
getSixPowerByFrustumCone({
|
|
|
id,
|
|
|
lastId,
|
|
@@ -2868,6 +2919,7 @@ export default {
|
|
|
"status":params.status,
|
|
|
"size":size,
|
|
|
"points":res.data.data.list,
|
|
|
+ "depthTest":false
|
|
|
})
|
|
|
})
|
|
|
}
|
|
@@ -2885,14 +2937,14 @@ export default {
|
|
|
id:params.id,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = null;
|
|
|
+ currentShowGridParams = null;
|
|
|
return
|
|
|
}
|
|
|
showThreeCubeDetail({
|
|
|
id:params.lastId,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = id;
|
|
|
+ currentShowGridParams = id;
|
|
|
getSixPowerByInvertedCone({
|
|
|
id,
|
|
|
lastId,
|
|
@@ -2921,6 +2973,7 @@ export default {
|
|
|
"status":params.status,
|
|
|
"size":size,
|
|
|
"points":res.data.data.list,
|
|
|
+ "depthTest":false
|
|
|
})
|
|
|
})
|
|
|
}
|
|
@@ -2938,14 +2991,14 @@ export default {
|
|
|
id:params.id,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = null;
|
|
|
+ currentShowGridParams = null;
|
|
|
return
|
|
|
}
|
|
|
showThreeCubeDetail({
|
|
|
id:params.lastId,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = id;
|
|
|
+ currentShowGridParams = id;
|
|
|
getSixPowerByPrism({
|
|
|
id,
|
|
|
lastId,
|
|
@@ -2969,14 +3022,14 @@ export default {
|
|
|
id:params.id,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = null;
|
|
|
+ currentShowGridParams = null;
|
|
|
return
|
|
|
}
|
|
|
showThreeCubeDetail({
|
|
|
id:params.lastId,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = id;
|
|
|
+ currentShowGridParams = id;
|
|
|
getSixPowerByPrism({
|
|
|
id,
|
|
|
lastId,
|
|
@@ -3001,14 +3054,14 @@ export default {
|
|
|
id:params.id,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = null;
|
|
|
+ currentShowGridParams = null;
|
|
|
return
|
|
|
}
|
|
|
showThreeCubeDetail({
|
|
|
id:params.lastId,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = id;
|
|
|
+ currentShowGridParams = id;
|
|
|
getSixPowerByPrism({
|
|
|
id,
|
|
|
lastId,
|
|
@@ -3054,7 +3107,7 @@ export default {
|
|
|
id:params.id,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = null;
|
|
|
+ currentShowGridParams = null;
|
|
|
return
|
|
|
}
|
|
|
let paths = [];
|
|
@@ -3069,7 +3122,7 @@ export default {
|
|
|
id:params.lastId,
|
|
|
status:"hide"
|
|
|
});
|
|
|
- currentShowGridId = id;
|
|
|
+ currentShowGridParams = id;
|
|
|
getSixPowerByPath({
|
|
|
id,
|
|
|
lastId,
|
|
@@ -3096,6 +3149,7 @@ export default {
|
|
|
"status":params.status,
|
|
|
"size":size,
|
|
|
"points":res.data.data.list,
|
|
|
+ "depthTest":false
|
|
|
})
|
|
|
})
|
|
|
}
|