登机桥显示字段修改及基础数据航空公司修改

This commit is contained in:
zhouyuejun
2019-02-27 16:38:36 +08:00
parent 6fb51f08fe
commit e1c7a28376
5 changed files with 22 additions and 44 deletions
+4
View File
@@ -137,6 +137,10 @@ export class MainComponent implements OnInit {
//订阅航班更新
this.websocketService.dynamicsMessage().subscribe(
event => {
setInterval(() => {
let msg = { "topic": "heart-beat", "message": "" };
this.websocketService.websocket.send(JSON.stringify(msg));
}, 30000);
let data = JSON.parse(event as string);
if (data.topic === 'schd') {
let message = JSON.parse(data.message);