|
@@ -208,6 +208,21 @@ export default {
|
|
|
|
|
|
},
|
|
|
async getJson(row) {
|
|
|
+ this.viewer2D.entities.removeAll();
|
|
|
+ this.viewer3D.entities.removeAll();
|
|
|
+ const requestData = row
|
|
|
+ //发发送websockte请求
|
|
|
+ // if(this.websocket && this.websocket.readyState === WebSocket.OPEN){
|
|
|
+ // console.log(' 发送请求');
|
|
|
+ // this.websocket.send(JSON.stringify(requestData));
|
|
|
+ // }
|
|
|
+ // else{
|
|
|
+ // this.startWebSocket();
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.websocket.send(JSON.stringify(requestData));
|
|
|
+ // }, 2000);
|
|
|
+
|
|
|
+ // }
|
|
|
let redunit = [];
|
|
|
let blueunit = [];
|
|
|
let satellite = [];
|