登机桥显示字段修改及基础数据航空公司修改
This commit is contained in:
@@ -97,19 +97,8 @@ export class TransferRenderHandle {
|
||||
}
|
||||
}
|
||||
public abdgFormatter(flight) {
|
||||
if (flight['ABTM']) {
|
||||
if (Array.isArray(flight['ABTM']) && flight['ABTM'].length > 0) {
|
||||
let abdg = [];
|
||||
for (let i = 0; i < flight['ABTM'].length; i++) {
|
||||
abdg.push(flight['ABTM'][i]['ABDG']);
|
||||
}
|
||||
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 '';
|
||||
}
|
||||
if (flight['ABDG']) {
|
||||
return flight['ABDG'];
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user