diff --git a/src/app/pages/basic-data/stand/stand.component.html b/src/app/pages/basic-data/stand/stand.component.html index b934154..b9e84bf 100644 --- a/src/app/pages/basic-data/stand/stand.component.html +++ b/src/app/pages/basic-data/stand/stand.component.html @@ -42,12 +42,13 @@
diff --git a/src/app/pages/basic-data/stand/stand.component.ts b/src/app/pages/basic-data/stand/stand.component.ts index b362116..19eaf52 100644 --- a/src/app/pages/basic-data/stand/stand.component.ts +++ b/src/app/pages/basic-data/stand/stand.component.ts @@ -41,6 +41,28 @@ ngOnInit() { if(this.terminalAreas && this.terminalAreas.length>0){//所属航站楼区域数据转换处理 this.terminalAreasHandle(); } + this.render_data.forEach(element => {//机位类型列表显示数据转换 + if (element['standType'] == 'bridge') { + element['standType'] = '靠桥机位' + return element['standType']; + } + if(element['standType'] == 'remote'){ + element['standType'] = '远机位' + return element['standType']; + } + if(element['standType'] == 'near'){ + element['standType'] = '近机位' + return element['standType']; + } + if(element['standType'] == 'night'){ + element['standType'] = '过夜机位' + return element['standType']; + } + if(element['standType'] == 'specific'){ + element['standType'] = '专机位' + return element['standType']; + } + }); this.render_data.forEach(element => {//资源状态列表显示数据转换 if (element['standStatus'] == '0') { element['standStatus'] = '可用' @@ -113,6 +135,7 @@ selectRow(i) { selectChange() { this.return_data = this.stands.filter(item=>{ let is_satis = true; + //资源状态 if (item['standStatus'] == '可用') { item['standStatus'] = '0' } @@ -128,6 +151,22 @@ selectChange() { if(item['standStatus'] == '预分'){ item['standStatus'] = '4' } + //机位类型 + if (item['standType'] == '靠桥机位') { + item['standType'] = 'bridge' + } + if(item['standType'] == '远机位'){ + item['standType'] = 'remote' + } + if(item['standType'] == '近机位'){ + item['standType'] = 'near' + } + if(item['standType'] == '过夜机位'){ + item['standType'] = 'night' + } + if(item['standType'] == '专机位'){ + item['standType'] = 'specific' + } for (const key in this.filterItems) { if (this.filterItems.hasOwnProperty(key) && this.filterItems[key]) { if (item[key] === +this.filterItems[key] || item[key] === this.filterItems[key]) { @@ -141,7 +180,29 @@ selectChange() { } return is_satis; }) - this.return_data.forEach(element => {//资源状态列表显示数据转换 + this.return_data.forEach(element => { //机位类型列表显示数据转换 + if (element['standType'] == 'bridge') { + element['standType'] = '靠桥机位' + return element['standType']; + } + if(element['standType'] == 'remote'){ + element['standType'] = '远机位' + return element['standType']; + } + if(element['standType'] == 'near'){ + element['standType'] = '近机位' + return element['standType']; + } + if(element['standType'] == 'night'){ + element['standType'] = '过夜机位' + return element['standType']; + } + if(element['standType'] == 'specific'){ + element['standType'] = '专机位' + return element['standType']; + } + }); + this.return_data.forEach(element => { //资源状态列表显示数据转换 if (element['standStatus'] == '0') { element['standStatus'] = '可用' return element['standStatus'];