消息处理修改方式及部分消息提示语修改
This commit is contained in:
@@ -26,7 +26,7 @@ export class RelatedTabComponent implements OnInit {
|
||||
this.precancle = '';
|
||||
this.prefdiv = '';
|
||||
this.prefret = '';
|
||||
|
||||
|
||||
this.readelay = '';
|
||||
this.reacancle = '';
|
||||
this.reafdiv = '';
|
||||
@@ -60,11 +60,12 @@ export class RelatedTabComponent implements OnInit {
|
||||
let fretIndex = this.lines.preFlight['ABN'].findIndex(ele => ele.TYPE === 'RTN');
|
||||
|
||||
if (delyIndex > -1) {
|
||||
this.predelay = this.lines.preFlight['ABN'][delyIndex].BODY;
|
||||
let delyMessage = this.lines.preFlight['ABN'][delyIndex].BODY
|
||||
this.predelay = delyMessage[delyMessage.length - 1];
|
||||
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();
|
||||
}
|
||||
@@ -86,7 +87,8 @@ export class RelatedTabComponent implements OnInit {
|
||||
let fretIndex = this.lines.reaFlight['ABN'].findIndex(ele => ele.TYPE === 'RTN');
|
||||
|
||||
if (delyIndex > -1) {
|
||||
this.readelay = this.lines.reaFlight['ABN'][delyIndex].BODY;
|
||||
let delyMessage = this.lines.reaFlight['ABN'][delyIndex].BODY
|
||||
this.readelay = delyMessage[delyMessage.length - 1];
|
||||
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