-
+
+
-
+
-
-
-
-
+
+
+
+
-
+
-
-
-
-
- | 序号 |
- 机型代码 |
- 机型名称 |
- 飞机长度 |
- 翼展 |
- 机身高度 |
- 最大乘客数 |
- 最大货物重量 |
- 最大起飞重量 |
- 最大廊桥数 |
- 机型组 |
- CAA码 |
- IATA码 |
- ICAO码 |
-
-
-
-
- | {{i+1}} |
- {{aircraftType.aircraftTypeCode}} |
- {{aircraftType.aircraftTypeName}} |
- {{aircraftType.aircraftLength}} |
- {{aircraftType.aircraftWidth}} |
- {{aircraftType.aircraftHeight}} |
- {{aircraftType.maxPassengers}} |
- {{aircraftType.maxFreightWeight}} |
- {{aircraftType.maxTakeoffWeight}} |
- {{aircraftType.maxAirbridges}} |
- {{aircraftType.aircraftTypeGroupName}} |
- {{aircraftType.aircraftTypeCodeCaa}} |
- {{aircraftType.aircraftTypeCodeIata}} |
- {{aircraftType.aircraftTypeCodeIcao}} |
-
-
-
+
+
+
+
+
+ | 序号 |
+ {{col.COL_CN}} |
+
+
+
+
+
+
+
+
+
+
+ | {{start+i+1}} |
+ {{aircraftType[col.COL_CODE]}} |
+
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/app/pages/basic-data/aircraft-type/aircraft-type.component.scss b/src/app/pages/basic-data/aircraft-type/aircraft-type.component.scss
deleted file mode 100644
index 2804efa..0000000
--- a/src/app/pages/basic-data/aircraft-type/aircraft-type.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-type/aircraft-type.component.ts b/src/app/pages/basic-data/aircraft-type/aircraft-type.component.ts
index a8a9779..83421d1 100644
--- a/src/app/pages/basic-data/aircraft-type/aircraft-type.component.ts
+++ b/src/app/pages/basic-data/aircraft-type/aircraft-type.component.ts
@@ -1,118 +1,214 @@
-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-aircraft-type',
templateUrl: './aircraft-type.component.html',
- styleUrls: ['./aircraft-type.component.scss']
+ styleUrls: ['../basic.scss']
})
export class AircraftTypeComponent implements OnInit {
constructor(
+ private renderer2: Renderer2,
private basicDataService: BasicDataService,
- private changeDetectorRef: ChangeDetectorRef
- ) { }
+ private operateSpinServiceService: OperateSpinServiceService,
+ ) {
+ this.operateSpinServiceService.showSpin();
+ }
- public col_lists = [
- { col_code: 'aircraftTypeCode', col_chn: '机型代码' },
- { col_code: 'aircraftTypeName', col_chn: '机型名称' },
- { col_code: 'aircraftLength', col_chn: '飞机长度' },
- { col_code: 'aircraftWidth', col_chn: '翼展' },
- { col_code: 'aircraftHeight', col_chn: '机身高度' },
- { col_code: 'maxPassengers', col_chn: '最大乘客数' },
- { col_code: 'maxFreightWeight', col_chn: '最大货物重量' },
- { col_code: 'maxTakeoffWeight', col_chn: '最大起飞重量' },
- { col_code: 'maxAirbridges', col_chn: '最大廊桥数' },
- { col_code: 'aircraftTypeGroupName', col_chn: '机型组' },
- { col_code: 'aircraftTypeCodeCaa', col_chn: 'CAA码' },
- { col_code: 'aircraftTypeCodeIata', col_chn: 'IATA码' },
- { col_code: 'aircraftTypeCodeIcao', col_chn: 'ICAO码' },
+ public render_col_lists = [
+ { COL_CODE: 'aircraftTypeCode', COL_CN: '机型代码', COL_WIDTH: "120px" },
+ { COL_CODE: 'aircraftTypeName', COL_CN: '机型名称', COL_WIDTH: "180px" },
+ { COL_CODE: 'aircraftLength', COL_CN: '飞机长度', COL_WIDTH: "85px" },
+ { COL_CODE: 'aircraftWidth', COL_CN: '翼展', COL_WIDTH: "85px" },
+ { COL_CODE: 'aircraftHeight', 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: 'aircraftTypeGroupName', COL_CN: '机型组', COL_WIDTH: "85px" },
+ { COL_CODE: 'aircraftTypeCodeCaa', COL_CN: 'CAA码', COL_WIDTH: "85px" },
+ { COL_CODE: 'aircraftTypeCodeIata', COL_CN: 'IATA码', COL_WIDTH: "85px" },
+ { COL_CODE: 'aircraftTypeCodeIcao', COL_CN: 'ICAO码', COL_WIDTH: "85px" },
]
// 搜索条件
SEARCH = ''; //手动输入条件
+ LASTSEARCH = '';
FLT_POS = 1; //过滤还是定位
SEL_COL = ''; //选择列名
+ LAST_SEL_COL = '';
//下拉框
public filterItems = {
aircrafttypegroupId: '',
}
- aircraftTypesGroups: Array
; //机型组
- aircraftTypes: Array;
- public row_state: any = { renderFlight: {} };
+ public aircraftTypesGroups: Array; //机型组
+ public aircraftTypes: Array;
+
+ public wait_render_data: Array