19 lines
494 B
TypeScript
19 lines
494 B
TypeScript
/**
|
|
* 行李传送带号显示转换
|
|
*/
|
|
export default function (flight) {
|
|
if(flight['CHDT']){
|
|
if(Array.isArray(flight['CHDT'])&&flight['CHDT'].length>0){
|
|
let chdt = [];
|
|
for (let i = 0; i < flight['CHDT'].length; i++) {
|
|
chdt.push(flight['CHDT'][i]['CHUT']);
|
|
}
|
|
let set = new Set(chdt);
|
|
return Array.from(set).join(',');
|
|
}else{
|
|
return '';
|
|
}
|
|
}else{
|
|
return '';
|
|
}
|
|
} |