-
+
+
-
+
-
-
-
-
-
-
-
+
-
-
-
-
- | 序号 |
- 航空公司代码 |
- 航空公司中文名 |
- 中文简称 |
- 航空公司英文名 |
- 英文简称 |
- IATA码 |
- CAA码 |
- ICAO码 |
- 上级母公司 |
-
-
-
-
- | {{i+1}} |
- {{airline.airlineCode}} |
- {{airline.airlineName}} |
- {{airline.briefNameChn}} |
- {{airline.airlineNameEng}} |
- {{airline.briefNameEng}} |
- {{airline.airlineCodeIata}} |
- {{airline.airlineCodeCaa}} |
- {{airline.airlineCodeIcao}} |
- {{airline.parentAirlineId}} |
-
-
-
+
+
+
+
+
+ | 序号 |
+ {{col.COL_CN}} |
+
+
+
+
+
+
+
+
+
+
+ | {{start+i+1}} |
+ {{airline[col.COL_CODE]}} |
+
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/app/pages/basic-data/airline/airline.component.scss b/src/app/pages/basic-data/airline/airline.component.scss
deleted file mode 100644
index 2804efa..0000000
--- a/src/app/pages/basic-data/airline/airline.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/airline/airline.component.ts b/src/app/pages/basic-data/airline/airline.component.ts
index de5aa7b..94146e8 100644
--- a/src/app/pages/basic-data/airline/airline.component.ts
+++ b/src/app/pages/basic-data/airline/airline.component.ts
@@ -1,94 +1,209 @@
-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-airline',
templateUrl: './airline.component.html',
- styleUrls: ['./airline.component.scss']
+ styleUrls: ['../basic.scss']
})
export class AirlineComponent implements OnInit {
-
constructor(
+ private renderer2: Renderer2,
private basicDataService: BasicDataService,
- private changeDetectorRef: ChangeDetectorRef
- ) { }
+ private operateSpinServiceService: OperateSpinServiceService,
+ ) {
+ this.operateSpinServiceService.showSpin();
+ }
- public col_lists = [
- { col_code: 'airlineCode', col_chn: '航空公司代码' },
- { col_code: 'airlineName', col_chn: '航空公司中文名' },
- { col_code: 'briefNameChn', col_chn: '中文简称' },
- { col_code: 'airlineNameEng', col_chn: '航空公司英文名' },
- { col_code: 'briefNameEng', col_chn: '英文简称' },
- { col_code: 'airlineCodeIata', col_chn: 'IATA码' },
- { col_code: 'airlineCodeCaa', col_chn: 'CAA码' },
- { col_code: 'airlineCodeIcao', col_chn: 'ICAO码' },
- { col_code: 'parentAirlineId', col_chn: '上级母公司' },
+ public render_col_lists = [
+ { COL_CODE: 'airlineCode', COL_CN: '航空公司代码', COL_WIDTH: "110px" },
+ { COL_CODE: 'airlineName', COL_CN: '航空公司中文名', COL_WIDTH: "180px" },
+ { COL_CODE: 'briefNameChn', COL_CN: '中文简称', COL_WIDTH: "180px" },
+ { COL_CODE: 'airlineNameEng', COL_CN: '航空公司英文名', COL_WIDTH: "180px" },
+ { COL_CODE: 'briefNameEng', COL_CN: '英文简称', COL_WIDTH: "120px" },
+ { COL_CODE: 'airlineCodeIata', COL_CN: 'IATA码', COL_WIDTH: "85px" },
+ { COL_CODE: 'airlineCodeCaa', COL_CN: 'CAA码', COL_WIDTH: "85px" },
+ { COL_CODE: 'airlineCodeIcao', COL_CN: 'ICAO码', COL_WIDTH: "85px" },
+ { COL_CODE: 'parentAirlineName', COL_CN: '上级母公司', COL_WIDTH: "120px" },
]
// 搜索条件
SEARCH = ''; //手动输入条件
+ LASTSEARCH = '';
FLT_POS = 1; //过滤还是定位
SEL_COL = ''; //选择列名
-
- airlinegroups: Array
; //航空集团
- airlines: Array;
- public row_state: any = { renderFlight: {} };
- public render_data: Array