航班备降撤销备降消息处理修改

This commit is contained in:
zhouyuejun
2019-01-25 14:36:11 +08:00
parent df2cfb40a8
commit 85b2f676c9
3 changed files with 101 additions and 80 deletions
@@ -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;