航班关联信息延误状态延误类别没转成中文
This commit is contained in:
@@ -21,6 +21,7 @@ export class RelatedTabComponent implements OnInit {
|
||||
public reafret;
|
||||
|
||||
@Input() allAirports;
|
||||
@Input() flightDefinitions;
|
||||
@Input() set flight(flight) {
|
||||
this.predelay = '';
|
||||
this.precancle = '';
|
||||
@@ -61,7 +62,21 @@ export class RelatedTabComponent implements OnInit {
|
||||
|
||||
if (delyIndex > -1) {
|
||||
let delyMessage = this.lines.preFlight['ABN'][delyIndex].BODY
|
||||
this.predelay = delyMessage[delyMessage.length - 1];
|
||||
this.predelay = delyMessage[delyMessage.length - 1];
|
||||
|
||||
let fimsFlightstatusDefinition = null;
|
||||
if (this.flightDefinitions && this.flightDefinitions.length > 0) {
|
||||
for (let i = 0; i < this.flightDefinitions.length; i++) {
|
||||
let temp = this.flightDefinitions[i];
|
||||
if (temp.flightStatus && temp.flightStatus === this.predelay['CODE'] && temp.flightStatusType && temp.flightStatusType === "DLY") {
|
||||
fimsFlightstatusDefinition = temp;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (fimsFlightstatusDefinition) {
|
||||
this.predelay['TYPE'] = fimsFlightstatusDefinition.ddsc;
|
||||
}
|
||||
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']
|
||||
}
|
||||
@@ -95,6 +110,21 @@ export class RelatedTabComponent implements OnInit {
|
||||
if (delyIndex > -1) {
|
||||
let delyMessage = this.lines.reaFlight['ABN'][delyIndex].BODY
|
||||
this.readelay = delyMessage[delyMessage.length - 1];
|
||||
|
||||
let fimsFlightstatusDefinition = null;
|
||||
if (this.flightDefinitions && this.flightDefinitions.length > 0) {
|
||||
for (let i = 0; i < this.flightDefinitions.length; i++) {
|
||||
let temp = this.flightDefinitions[i];
|
||||
if (temp.flightStatus && temp.flightStatus === this.readelay['CODE'] && temp.flightStatusType && temp.flightStatusType === "DLY") {
|
||||
fimsFlightstatusDefinition = temp;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (fimsFlightstatusDefinition) {
|
||||
this.readelay['TYPE'] = fimsFlightstatusDefinition.ddsc;
|
||||
}
|
||||
|
||||
this.readelay['STRT'] = new Date(dateFormatter(this.readelay['STRT'])).getTime();
|
||||
this.readelay['DURA'] = parseInt(this.readelay['DURA'].substr(0, 2)) * 3600000 + parseInt(this.readelay['DURA'].substr(2, 3)) * 60000 + this.readelay['STRT'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user