消息警示添加内容及航班列表优化
This commit is contained in:
@@ -5,6 +5,8 @@ export class TransferRenderHandle {
|
||||
if (flight['GTDT']) {
|
||||
if (Array.isArray(flight['GTDT']) && flight['GTDT'].length > 0) {
|
||||
return timeFormatter(flight['GTDT'][0]['GCTM']);
|
||||
} else if (Object.prototype.toString.call(flight['GTDT']) === '[object Object]') {
|
||||
return timeFormatter(flight['GTDT']['GCTM']);
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -28,8 +30,10 @@ export class TransferRenderHandle {
|
||||
}
|
||||
let set = new Set(abdg);
|
||||
return Array.from(set).join(',');
|
||||
} else if (Object.prototype.toString.call(flight['ABTM']) === '[object Object]') {
|
||||
return flight['ABTM']['ABDG'];
|
||||
} else {
|
||||
return ''
|
||||
return '';
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
@@ -43,6 +47,13 @@ export class TransferRenderHandle {
|
||||
return timeFormatter(flight['ABTM'][i]['AOTM']);
|
||||
}
|
||||
}
|
||||
} else if (Object.prototype.toString.call(flight['ABTM']) === '[object Object]') {
|
||||
if (flight['ABTM']['ABOP'] === 'A') {
|
||||
return timeFormatter(flight['ABTM']['AOTM']);
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -58,6 +69,13 @@ export class TransferRenderHandle {
|
||||
return timeFormatter(flight['ABTM'][i]['AOTM']);
|
||||
}
|
||||
}
|
||||
} else if (Object.prototype.toString.call(flight['ABTM']) === '[object Object]') {
|
||||
if (flight['ABTM']['ABOP'] === 'D') {
|
||||
return timeFormatter(flight['ABTM']['AOTM']);
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -74,6 +92,8 @@ export class TransferRenderHandle {
|
||||
}
|
||||
let set = new Set(belt);
|
||||
return Array.from(set).join(',');
|
||||
} else if (Object.prototype.toString.call(flight['CLDT']) === '[object Object]') {
|
||||
return flight['CLDT']['BELT'];
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -90,6 +110,8 @@ export class TransferRenderHandle {
|
||||
}
|
||||
let set = new Set(chkc);
|
||||
return Array.from(set).join(',');
|
||||
} else if (Object.prototype.toString.call(flight['CKDT']) === '[object Object]') {
|
||||
return flight['CKDT']['CHKC'];
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -101,6 +123,8 @@ export class TransferRenderHandle {
|
||||
if (flight['CKDT']) {
|
||||
if (Array.isArray(flight['CKDT']) && flight['CKDT'].length > 0) {
|
||||
return timeFormatter(flight['CKDT'][0]['CCTM']);
|
||||
} else if (Object.prototype.toString.call(flight['CKDT']) === '[object Object]') {
|
||||
return timeFormatter(flight['CKDT']['CCTM']);
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -112,6 +136,8 @@ export class TransferRenderHandle {
|
||||
if (flight['CKDT']) {
|
||||
if (Array.isArray(flight['CKDT']) && flight['CKDT'].length > 0) {
|
||||
return timeFormatter(flight['CKDT'][0]['COTM']);
|
||||
} else if (Object.prototype.toString.call(flight['CKDT']) === '[object Object]') {
|
||||
return timeFormatter(flight['CKDT']['COTM']);
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -127,6 +153,12 @@ export class TransferRenderHandle {
|
||||
return timeFormatter(flight['CHOT'][i]['CHTM']);
|
||||
}
|
||||
}
|
||||
} else if (Object.prototype.toString.call(flight['CHOT']) === '[object Object]') {
|
||||
if (flight['CHOT']['CHID'] === 'ON') {
|
||||
return timeFormatter(flight['CHOT']['CHTM']);
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -142,6 +174,12 @@ export class TransferRenderHandle {
|
||||
return timeFormatter(flight['CHOT'][i]['CHTM']);
|
||||
}
|
||||
}
|
||||
} else if (Object.prototype.toString.call(flight['CHOT']) === '[object Object]') {
|
||||
if (flight['CHOT']['CHID'] === 'OFF') {
|
||||
return timeFormatter(flight['CHOT']['CHTM']);
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -159,12 +197,14 @@ export class TransferRenderHandle {
|
||||
public chutFormatter(flight) {
|
||||
if (flight['CHDT']) {
|
||||
if (Array.isArray(flight['CHDT']) && flight['CHDT'].length > 0) {
|
||||
let chdt = [];
|
||||
let chut = [];
|
||||
for (let i = 0; i < flight['CHDT'].length; i++) {
|
||||
chdt.push(flight['CHDT'][i]['CHUT']);
|
||||
chut.push(flight['CHDT'][i]['CHUT']);
|
||||
}
|
||||
let set = new Set(chdt);
|
||||
let set = new Set(chut);
|
||||
return Array.from(set).join(',');
|
||||
} else if (Object.prototype.toString.call(flight['CHDT']) === '[object Object]') {
|
||||
return flight['CHDT']['CHUT'];
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -182,12 +222,14 @@ export class TransferRenderHandle {
|
||||
public psstFormatter(flight) {
|
||||
if (flight['PSDT']) {
|
||||
if (Array.isArray(flight['PSDT']) && flight['PSDT'].length > 0) {
|
||||
let chkc = [];
|
||||
let psst = [];
|
||||
for (let i = 0; i < flight['PSDT'].length; i++) {
|
||||
chkc.push(flight['PSDT'][i]['PSST']);
|
||||
psst.push(flight['PSDT'][i]['PSST']);
|
||||
}
|
||||
let set = new Set(chkc);
|
||||
let set = new Set(psst);
|
||||
return Array.from(set).join(',');
|
||||
} else if (Object.prototype.toString.call(flight['PSDT']) === '[object Object]') {
|
||||
return flight['PSDT']['PSST'];
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -221,6 +263,8 @@ export class TransferRenderHandle {
|
||||
erut.push(flight['ERUT'][i]['APCD']);
|
||||
}
|
||||
return erut.join(' - ');
|
||||
} else if (Object.prototype.toString.call(flight['ERUT']) === '[object Object]') {
|
||||
return flight['ERUT']['APCD'];
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -257,6 +301,8 @@ export class TransferRenderHandle {
|
||||
}
|
||||
let set = new Set(gate);
|
||||
return Array.from(set).join(',');
|
||||
} else if (Object.prototype.toString.call(flight['GTDT']) === '[object Object]') {
|
||||
return flight['GTDT']['GATE'];
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -271,7 +317,7 @@ export class TransferRenderHandle {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
public fldtFormatter(flight){
|
||||
public fldtFormatter(flight) {
|
||||
if (flight['SODT']) {
|
||||
return dateWithNotimeFormatter(flight['SODT']);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user