部分功能优化
This commit is contained in:
@@ -62,7 +62,7 @@ export class RelatedTabComponent implements OnInit {
|
||||
|
||||
if (delyIndex > -1) {
|
||||
let delyMessage = this.lines.preFlight['ABN'][delyIndex].BODY
|
||||
this.predelay = delyMessage[delyMessage.length - 1];
|
||||
this.predelay = Object.assign({}, delyMessage[delyMessage.length - 1]);
|
||||
|
||||
let fimsFlightstatusDefinition = null;
|
||||
if (this.flightDefinitions && this.flightDefinitions.length > 0) {
|
||||
@@ -81,13 +81,13 @@ export class RelatedTabComponent implements OnInit {
|
||||
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) {
|
||||
this.precancle = this.lines.preFlight['ABN'][cancleIndex].BODY;
|
||||
this.precancle = new Date(dateFormatter(this.precancle)).getTime();
|
||||
let cancle = this.lines.preFlight['ABN'][cancleIndex].BODY;
|
||||
this.precancle = new Date(dateFormatter(cancle)).getTime();
|
||||
}
|
||||
if (fdivIndex > -1) {
|
||||
let fdiv = this.lines.preFlight['ABN'][fdivIndex].BODY;
|
||||
if (fdiv.DDES) {
|
||||
this.prefdiv = fdiv;
|
||||
this.prefdiv = Object.assign({}, fdiv);
|
||||
let airportIndex = this.allAirports.findIndex(val => val.airportCodeIata === this.prefdiv.DDES);
|
||||
if (airportIndex > -1) {
|
||||
this.prefdiv.DDES = this.allAirports[airportIndex].briefNameChn
|
||||
@@ -97,7 +97,7 @@ export class RelatedTabComponent implements OnInit {
|
||||
if (fretIndex > -1) {
|
||||
let fret = this.lines.preFlight['ABN'][fretIndex].BODY;
|
||||
if (fret.VALUE && fret.REID) {
|
||||
this.prefret = fret;
|
||||
this.prefret = Object.assign({}, fret);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -109,7 +109,7 @@ export class RelatedTabComponent implements OnInit {
|
||||
|
||||
if (delyIndex > -1) {
|
||||
let delyMessage = this.lines.reaFlight['ABN'][delyIndex].BODY
|
||||
this.readelay = delyMessage[delyMessage.length - 1];
|
||||
this.readelay = Object.assign({}, delyMessage[delyMessage.length - 1]);
|
||||
|
||||
let fimsFlightstatusDefinition = null;
|
||||
if (this.flightDefinitions && this.flightDefinitions.length > 0) {
|
||||
@@ -129,13 +129,13 @@ export class RelatedTabComponent implements OnInit {
|
||||
this.readelay['DURA'] = parseInt(this.readelay['DURA'].substr(0, 2)) * 3600000 + parseInt(this.readelay['DURA'].substr(2, 3)) * 60000 + this.readelay['STRT'];
|
||||
}
|
||||
if (cancleIndex > -1) {
|
||||
this.reacancle = this.lines.reaFlight['ABN'][cancleIndex].BODY;
|
||||
this.reacancle = new Date(dateFormatter(this.reacancle)).getTime();
|
||||
let cancle = this.lines.reaFlight['ABN'][cancleIndex].BODY;
|
||||
this.reacancle = new Date(dateFormatter(cancle)).getTime();
|
||||
}
|
||||
if (fdivIndex > -1) {
|
||||
let fdiv = this.lines.reaFlight['ABN'][fdivIndex].BODY;
|
||||
if (fdiv.DDES) {
|
||||
this.reafdiv = fdiv;
|
||||
this.reafdiv = Object.assign({}, fdiv);
|
||||
let airportIndex = this.allAirports.findIndex(val => val.airportCodeIata === this.reafdiv.DDES);
|
||||
if (airportIndex > -1) {
|
||||
this.reafdiv.DDES = this.allAirports[airportIndex].briefNameChn
|
||||
@@ -146,7 +146,7 @@ export class RelatedTabComponent implements OnInit {
|
||||
if (fretIndex > -1) {
|
||||
let fret = this.lines.reaFlight['ABN'][fretIndex].BODY;
|
||||
if (fret.VALUE && fret.REID) {
|
||||
this.reafret = fret;
|
||||
this.reafret = Object.assign({}, fret);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user