航班返航及撤销返航消息处理

This commit is contained in:
zhouyuejun
2019-01-24 10:22:06 +08:00
parent 9acf53cfc6
commit 63741d8ae8
4 changed files with 28 additions and 43 deletions
@@ -65,7 +65,7 @@ export class RelatedTabComponent implements OnInit {
this.predelay['STRT'] = new Date(dateFormatter(this.predelay['STRT'])).getTime();
this.predelay['DURA'] = parseInt(this.predelay['DURA'].substr(0, 2)) * 3600000 + parseInt(this.predelay['DURA'].substr(2, 3)) * 60000 + this.predelay['STRT']
}
if (cancleIndex > -1) {
if (cancleIndex > -1) {
this.precancle = this.lines.preFlight['ABN'][cancleIndex].BODY;
this.precancle = new Date(dateFormatter(this.precancle)).getTime();
}
@@ -77,7 +77,10 @@ export class RelatedTabComponent implements OnInit {
}
}
if (fretIndex > -1) {
this.prefret = this.lines.preFlight['ABN'][fretIndex].BODY;
let fret = this.lines.preFlight['ABN'][fretIndex].BODY;
if (fret.VALUE && fret.REID) {
this.prefret = fret;
}
}
}
if (this.lines.reaFlight && this.lines.reaFlight['ABN'] && this.lines.reaFlight['ABN'].length > 0) {
@@ -104,7 +107,10 @@ export class RelatedTabComponent implements OnInit {
}
}
if (fretIndex > -1) {
this.reafret = this.lines.reaFlight['ABN'][fretIndex].BODY;
let fret = this.lines.reaFlight['ABN'][fretIndex].BODY;
if (fret.VALUE && fret.REID) {
this.reafret = fret;
}
}
}
};