From 209f14d3d6d2733a34c163d1e3b66a57d822a80a Mon Sep 17 00:00:00 2001
From: zhouyuejun <505127606@qq.com>
Date: Wed, 20 Feb 2019 16:00:35 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E6=95=B0=E6=8D=AE=E4=B9=8B?=
=?UTF-8?q?=E6=9C=BA=E5=9C=BA=E4=BF=AE=E6=94=B9=E4=BC=98=E5=8C=96=E5=92=8C?=
=?UTF-8?q?=E5=90=84=E6=A8=A1=E5=9D=97=E8=A1=A8=E6=A0=BC=E5=AF=B9=E9=BD=90?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../basic-data/airport/airport.component.html | 129 +++--
.../basic-data/airport/airport.component.scss | 59 ---
.../basic-data/airport/airport.component.ts | 468 +++++++++++++-----
.../basic-data/carousel/carousel.component.ts | 2 +-
.../checkin-desk/checkin-desk.component.ts | 2 +-
.../checkin-group/checkin-group.component.ts | 2 +-
.../pages/basic-data/chut/chut.component.ts | 2 +-
.../pages/basic-data/gate/gate.component.ts | 2 +-
.../pages/basic-data/stand/stand.component.ts | 2 +-
.../basic-data/terminal/terminal.component.ts | 2 +-
.../historical-data.component.ts | 2 +-
src/app/pages/main/main.component.ts | 2 +-
.../seasonal-plan/seasonal-plan.component.ts | 2 +-
13 files changed, 411 insertions(+), 265 deletions(-)
delete mode 100644 src/app/pages/basic-data/airport/airport.component.scss
diff --git a/src/app/pages/basic-data/airport/airport.component.html b/src/app/pages/basic-data/airport/airport.component.html
index d69f1b4..76664d6 100644
--- a/src/app/pages/basic-data/airport/airport.component.html
+++ b/src/app/pages/basic-data/airport/airport.component.html
@@ -1,78 +1,71 @@
-
-
-
-
-
-
-
-
-
- | 序号 |
- 机场代码 |
- 机场中文名 |
- 中文简称 |
- 机场英文名 |
- 英文简称 |
- IATA码 |
- CAA码 |
- ICAO码 |
- 机场集团 |
- 所在城市 |
-
-
-
-
- | {{i+1}} |
- {{airport.airportCode}} |
- {{airport.airportNameChn}} |
- {{airport.briefNameChn}} |
- {{airport.airportNameEng}} |
- {{airport.briefNameEng}} |
- {{airport.airportCodeIata}} |
- {{airport.airportCodeCaa}} |
- {{airport.airportCodeIcao}} |
- {{airport.airportGroupName}} |
- {{airport.cityNameChn}} |
-
-
-
-
-
-
+
+
+
+
+
+
+ | 序号 |
+ {{col.COL_CN}} |
+
+
+
+
+
+
+
+
+
+
+ | {{start+i+1}} |
+ {{airport[col.COL_CODE]}} |
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/pages/basic-data/airport/airport.component.scss b/src/app/pages/basic-data/airport/airport.component.scss
deleted file mode 100644
index 2804efa..0000000
--- a/src/app/pages/basic-data/airport/airport.component.scss
+++ /dev/null
@@ -1,59 +0,0 @@
-.main-page {
- width: 100%;
- height: 100%;
- overflow-y: scroll;
- padding: 15px 10px;
- background-color: #fff;
- .page-content {
- border: 1px solid #ccc;
- padding: 10px 20px;
- .search-filter {
- padding: 0 15px;
- .input-container {
- padding: 0;
- > .form-control {
- width: 180px;
- display: inline-block;
- }
- }
- }
- .airline-table{
- .table-container{
- // border: 1px solid #ccc;
- width: 100%;
- height: 700px;
- overflow: auto;
- box-shadow: 0 0 1px .5px #ddd;
- table{
- width: max-content;
- tr{
- cursor: pointer;
- &.selected{
- background: rgb(181, 215, 255);
- }
- }
- th{
- background-color: #ddd;
- color: rgb(0, 0, 255);
- }
- th,td{
- // border: none;
- text-align: center;
- }
- }
- }
- }
- }
-}
-
-@media screen and (max-width: 991px) {
- .line-operator-right {
- text-align: left !important;
- }
-}
-
-// @media screen and (min-width: 1200px){
-// .line-operator-right{
-// text-align: left;
-// }
-// }
diff --git a/src/app/pages/basic-data/airport/airport.component.ts b/src/app/pages/basic-data/airport/airport.component.ts
index 72f3617..3184bf7 100644
--- a/src/app/pages/basic-data/airport/airport.component.ts
+++ b/src/app/pages/basic-data/airport/airport.component.ts
@@ -1,37 +1,42 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, OnInit, ViewChild, Renderer2 } from '@angular/core';
import { BasicDataService } from '../../../services/basic-data-service';
-import { ChangeDetectorRef } from '@angular/core';
+import { OperateSpinServiceService } from '../../../services/operate-spin-service.service';
import * as $ from 'jquery';
@Component({
selector: 'app-airport',
templateUrl: './airport.component.html',
- styleUrls: ['./airport.component.scss']
+ styleUrls: ['../basic.scss']
})
export class AirportComponent implements OnInit {
constructor(
+ private renderer2: Renderer2,
private basicDataService: BasicDataService,
- private changeDetectorRef: ChangeDetectorRef
- ) { }
+ private operateSpinServiceService: OperateSpinServiceService,
+ ) {
+ this.operateSpinServiceService.showSpin();
+ }
- public col_lists = [
- { col_code: 'airportCode', col_chn: '机场代码' },
- { col_code: 'airportNameChn', col_chn: '机场中文名' },
- { col_code: 'briefNameChn', col_chn: '中文简称' },
- { col_code: 'airportNameEng', col_chn: '机场英文名' },
- { col_code: 'briefNameEng', col_chn: '英文简称' },
- { col_code: 'airportCodeIata', col_chn: 'IATA码' },
- { col_code: 'airportCodeCaa', col_chn: 'CAA码' },
- { col_code: 'airportCodeIcao', col_chn: 'ICAO码' },
- { col_code: 'airportGroupName', col_chn: '机场集团' },
- { col_code: 'cityNameChn', col_chn: '所在城市' },
+ public render_col_lists = [
+ { COL_CODE: 'airportCode', COL_CN: '机场代码', COL_WIDTH: "85px" },
+ { COL_CODE: 'airportNameChn', COL_CN: '机场中文名', COL_WIDTH: "200px" },
+ { COL_CODE: 'briefNameChn', COL_CN: '中文简称', COL_WIDTH: "85px" },
+ { COL_CODE: 'airportNameEng', COL_CN: '机场英文名', COL_WIDTH: "180px" },
+ { COL_CODE: 'briefNameEng', COL_CN: '英文简称', COL_WIDTH: "120px" },
+ { COL_CODE: 'airportCodeIata', COL_CN: 'IATA码', COL_WIDTH: "85px" },
+ { COL_CODE: 'airportCodeCaa', COL_CN: 'CAA码', COL_WIDTH: "85px" },
+ { COL_CODE: 'airportCodeIcao', COL_CN: 'ICAO码', COL_WIDTH: "85px" },
+ { COL_CODE: 'airportGroupName', COL_CN: '机场集团', COL_WIDTH: "120px" },
+ { COL_CODE: 'cityNameChn', COL_CN: '所在城市', COL_WIDTH: "120px" },
]
// 搜索条件
SEARCH = ''; //手动输入条件
+ LASTSEARCH = '';
FLT_POS = 1; //过滤还是定位
SEL_COL = ''; //选择列名
+ LAST_SEL_COL = '';
//下拉框
public filterItems = {
@@ -39,100 +44,185 @@ export class AirportComponent implements OnInit {
cityId: '',
}
- airportgroups: Array
; //机场集团
- citys: Array; //城市
- airports: Array;
- public row_state: any = { renderFlight: {} };
+ public airportgroups: Array; //机场集团
+ public citys: Array; //城市
+ public airports: Array;
+
+ public wait_render_data: Array