-
+
+
-
+
-
-
-
-
-
-
-
+
-
-
-
-
- | 序号 |
- 飞机号 |
- 最大乘客数 |
- 最大货物重量 |
- 最大起飞重量 |
- 最大廊桥数 |
- 机主航空公司 |
- 航空公司 |
- 机型 |
-
-
-
-
- | {{i+1}} |
- {{aircraft.aircraftNumber}} |
- {{aircraft.maxPassengers}} |
- {{aircraft.maxFreightWeight}} |
- {{aircraft.maxTakeoffWeight}} |
- {{aircraft.maxAirbridges}} |
- {{aircraft.airlineOwnerName}} |
- {{aircraft.airlineName}} |
- {{aircraft.aircraftTypeName}} |
-
-
-
+
+
+
+
+
+ | 序号 |
+ {{col.COL_CN}} |
+
+
+
+
+
+
+
+
+
+
+ | {{start+i+1}} |
+ {{aircraft[col.COL_CODE]}} |
+
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/app/pages/basic-data/aircraft/aircraft.component.scss b/src/app/pages/basic-data/aircraft/aircraft.component.scss
deleted file mode 100644
index 2804efa..0000000
--- a/src/app/pages/basic-data/aircraft/aircraft.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/aircraft/aircraft.component.ts b/src/app/pages/basic-data/aircraft/aircraft.component.ts
index 78beb46..95076d5 100644
--- a/src/app/pages/basic-data/aircraft/aircraft.component.ts
+++ b/src/app/pages/basic-data/aircraft/aircraft.component.ts
@@ -1,106 +1,113 @@
-import { Component, OnInit, ChangeDetectorRef } from '@angular/core';
+import { Component, OnInit, ViewChild, Renderer2 } from '@angular/core';
import { BasicDataService } from '../../../services/basic-data-service';
import { OperateSpinServiceService } from '../../../services/operate-spin-service.service';
import * as $ from 'jquery';
@Component({
selector: 'app-aircraft',
templateUrl: './aircraft.component.html',
- styleUrls: ['./aircraft.component.scss']
+ styleUrls: ['../basic.scss']
})
export class AircraftComponent implements OnInit {
constructor(
+ private renderer2: Renderer2,
private basicDataService: BasicDataService,
- private changeDetectorRef: ChangeDetectorRef,
private operateSpinServiceService: OperateSpinServiceService
) {
this.operateSpinServiceService.showSpin();
- this.changeDetectorRef.detach();
}
- public col_lists = [
- { col_code: 'aircraftNumber', col_chn: '飞机号' },
- { col_code: 'maxPassengers', col_chn: '最大乘客数' },
- { col_code: 'maxFreightWeight', col_chn: '最大货物重量' },
- { col_code: 'maxTakeoffWeight', col_chn: '最大起飞重量' },
- { col_code: 'maxAirbridges', col_chn: '最大廊桥数' },
- { col_code: 'aircraftOwnerCode', col_chn: '机主航空公司' },
- { col_code: 'airlineName', col_chn: '航空公司' },
- { col_code: 'aircraftTypeName', col_chn: '机型' }
+ public render_col_lists = [
+ { COL_CODE: 'aircraftNumber', COL_CN: '飞机号', COL_WIDTH: "85px" },
+ { COL_CODE: 'maxPassengers', COL_CN: '最大乘客数', COL_WIDTH: "120px" },
+ { COL_CODE: 'maxFreightWeight', COL_CN: '最大货物重量', COL_WIDTH: "120px" },
+ { COL_CODE: 'maxTakeoffWeight', COL_CN: '最大起飞重量', COL_WIDTH: "120px" },
+ { COL_CODE: 'maxAirbridges', COL_CN: '最大廊桥数', COL_WIDTH: "120px" },
+ { COL_CODE: 'airlineOwnerName', COL_CN: '机主航空公司', COL_WIDTH: "120px" },
+ { COL_CODE: 'airlineName', COL_CN: '航空公司', COL_WIDTH: "120px" },
+ { COL_CODE: 'aircraftTypeName', COL_CN: '机型', COL_WIDTH: "120px" }
]
// 搜索条件
SEARCH = ''; //手动输入条件
+ LASTSEARCH = '';
FLT_POS = 1; //过滤还是定位
SEL_COL = ''; //选择列名
+ LAST_SEL_COL = '';
//下拉框
public filterItems = {
airlineCode: '',
aircraftTypeCode: '',
}
- airlines: Array
; //航空公司
- aircraftTypes: Array; //机型
- aircrafts: Array;
- public row_state: any = { renderFlight: {} };
+ public airlines: Array; //航空公司
+ public aircraftTypes: Array; //机型
+ public aircrafts: Array;
+
+ public wait_render_data: Array