+
-
-
-
-
- | 序号 |
- 登机门代码 |
- 登机门名称 |
- 航站楼区域 |
- 资源状态 |
-
-
-
-
- | {{i+1}} |
- {{gate.gateCode}} |
- {{gate.gateName}} |
- {{gate.terminalAreaName}} |
- {{gate.gateStatus}} |
-
-
-
+
+
+
+
+
+ | 序号 |
+ {{col.COL_CN}} |
+
+
+
+
+
+
+
+
+
+
+ | {{start+i+1}} |
+ {{gate[col.COL_CODE]}} |
+
+
+
+
+
diff --git a/src/app/pages/basic-data/gate/gate.component.scss b/src/app/pages/basic-data/gate/gate.component.scss
index 2804efa..1f9f019 100644
--- a/src/app/pages/basic-data/gate/gate.component.scss
+++ b/src/app/pages/basic-data/gate/gate.component.scss
@@ -1,11 +1,13 @@
.main-page {
+ position: relative;
width: 100%;
height: 100%;
- overflow-y: scroll;
+ overflow-y: auto;
padding: 15px 10px;
background-color: #fff;
.page-content {
border: 1px solid #ccc;
+ height: 100%;
padding: 10px 20px;
.search-filter {
padding: 0 15px;
@@ -17,43 +19,79 @@
}
}
}
- .airline-table{
- .table-container{
- // border: 1px solid #ccc;
+ .airline-table {
+ .table-container {
+ display: inline-block;
+ // position: relative;
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);
+ // overflow-x: auto;
+ overflow-y: hidden;
+ box-shadow: 0 0 1px 0.5px #ddd;
+ .table-head {
+ overflow: hidden;
+ overflow-y: auto;
+ height: 42px;
+ table {
+ margin: 0;
+ width: max-content;
+ th {
+ border-bottom: none;
+ background-color: #ddd;
+ text-align: center;
+ color: rgb(0, 0, 255);
}
}
- th{
- background-color: #ddd;
- color: rgb(0, 0, 255);
+ &::-webkit-scrollbar {
+ width: 15px;
+ height: 15px;
}
- th,td{
- // border: none;
- text-align: center;
+ }
+
+ .table-body {
+ position: relative;
+ // height: 600px;
+ overflow: auto;
+ width: 100%;
+ .list-view-phantom {
+ position: absolute;
+ left: 0;
+ top: 0;
+ right: 0;
+ z-index: -1;
+ }
+ table {
+ left: 0;
+ right: 0;
+ top: 0;
+ position: absolute;
+ width: max-content;
+ tr {
+ cursor: pointer;
+ height: 42px;
+ &.selected {
+ background: rgb(181, 215, 255);
+ }
+ }
+ td {
+ border: 1px solid #dee2e6;
+ text-align: center;
+ }
+ }
+ &::-webkit-scrollbar {
+ width: 15px;
+ height: 15px;
+ }
+ &::-webkit-scrollbar-thumb {
+ /*滚动条里面小方块*/
+ background: rgba(165, 207, 222, 1);
+ border-radius: 10px;
+ }
+ &::-webkit-scrollbar-track {
+ background: rgba(0, 0, 0, 0.06);
+ border-radius: 10px;
}
}
}
}
}
}
-
-@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/gate/gate.component.ts b/src/app/pages/basic-data/gate/gate.component.ts
index 1c84101..42df982 100644
--- a/src/app/pages/basic-data/gate/gate.component.ts
+++ b/src/app/pages/basic-data/gate/gate.component.ts
@@ -1,6 +1,6 @@
-import { Component, OnInit } from '@angular/core';
-import { BasicDataService } from '../../../services/basic-data-service'
-import { 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-gate',
@@ -10,79 +10,167 @@ import * as $ from 'jquery';
export class GateComponent implements OnInit {
constructor(
+ private renderer2: Renderer2,
private basicDataService: BasicDataService,
- private changeDetectorRef: ChangeDetectorRef
- ) { }
+ private operateSpinServiceService: OperateSpinServiceService,
+ ) {
+ this.operateSpinServiceService.showSpin();
+ }
- public col_lists = [
- { col_code: 'gateCode', col_chn: '登机门代码' },
- { col_code: 'gateName', col_chn: '登机门名称' },
- { col_code: 'terminalAreaName', col_chn: '航站楼区域' },
- { col_code: 'gateStatus', col_chn: '资源状态' },
+ public render_col_lists = [
+ { COL_CODE: 'gateCode', COL_CN: '登机门代码', COL_WIDTH: "120px" },
+ { COL_CODE: 'gateName', COL_CN: '登机门名称', COL_WIDTH: "120px" },
+ { COL_CODE: 'terminalAreaName', COL_CN: '航站楼区域', COL_WIDTH: "120px" },
+ { COL_CODE: 'gateStatus', COL_CN: '资源状态', COL_WIDTH: "120px" },
]
// 搜索条件
SEARCH = ''; //手动输入条件
+ LASTSEARCH = '';
FLT_POS = 1; //过滤还是定位
SEL_COL = ''; //选择列名
+ LAST_SEL_COL = '';
//下拉框
public filterItems = {
terminalAreaCode: '',
gateStatus: '',
}
- terminalAreas: Array
; //所属航站楼区域
- gates: Array;
- public row_state: any = { renderFlight: {} };
+ public terminalAreas: Array; //所属航站楼区域
+ public gates: Array;
+
+ public wait_render_data: Array