航班备降撤销备降消息处理修改
This commit is contained in:
@@ -70,10 +70,13 @@ export class RelatedTabComponent implements OnInit {
|
||||
this.precancle = new Date(dateFormatter(this.precancle)).getTime();
|
||||
}
|
||||
if (fdivIndex > -1) {
|
||||
this.prefdiv = this.lines.preFlight['ABN'][fdivIndex].BODY;
|
||||
let airportIndex = this.allAirports.findIndex(val => val.airportCodeIata === this.prefdiv.DDES);
|
||||
if (airportIndex > -1) {
|
||||
this.prefdiv.DDES = this.allAirports[airportIndex].briefNameChn
|
||||
let fdiv = this.lines.preFlight['ABN'][fdivIndex].BODY;
|
||||
if (fdiv.DDES) {
|
||||
this.prefdiv = fdiv;
|
||||
let airportIndex = this.allAirports.findIndex(val => val.airportCodeIata === this.prefdiv.DDES);
|
||||
if (airportIndex > -1) {
|
||||
this.prefdiv.DDES = this.allAirports[airportIndex].briefNameChn
|
||||
}
|
||||
}
|
||||
}
|
||||
if (fretIndex > -1) {
|
||||
@@ -100,11 +103,15 @@ export class RelatedTabComponent implements OnInit {
|
||||
this.reacancle = new Date(dateFormatter(this.reacancle)).getTime();
|
||||
}
|
||||
if (fdivIndex > -1) {
|
||||
this.reafdiv = this.lines.reaFlight['ABN'][fdivIndex].BODY;
|
||||
let airportIndex = this.allAirports.findIndex(val => val.airportCodeIata === this.reafdiv.DDES);
|
||||
if (airportIndex > -1) {
|
||||
this.reafdiv.DDES = this.allAirports[airportIndex].briefNameChn
|
||||
let fdiv = this.lines.reaFlight['ABN'][fdivIndex].BODY;
|
||||
if (fdiv.DDES) {
|
||||
this.reafdiv = fdiv;
|
||||
let airportIndex = this.allAirports.findIndex(val => val.airportCodeIata === this.reafdiv.DDES);
|
||||
if (airportIndex > -1) {
|
||||
this.reafdiv.DDES = this.allAirports[airportIndex].briefNameChn
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (fretIndex > -1) {
|
||||
let fret = this.lines.reaFlight['ABN'][fretIndex].BODY;
|
||||
|
||||
Reference in New Issue
Block a user