From a4043428a3fac2c6c1a16cefa1fb45e5d5a0e853 Mon Sep 17 00:00:00 2001
From: zhouyuejun <505127606@qq.com>
Date: Wed, 20 Feb 2019 11:49:41 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E6=95=B0=E6=8D=AE=E4=B9=8B?=
=?UTF-8?q?=E8=A1=8C=E6=9D=8E=E4=BC=A0=E9=80=81=E5=B8=A6=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/basic-data/chut/chut.component.html | 82 +++--
.../pages/basic-data/chut/chut.component.scss | 59 ---
.../pages/basic-data/chut/chut.component.ts | 338 ++++++++++++++----
3 files changed, 305 insertions(+), 174 deletions(-)
delete mode 100644 src/app/pages/basic-data/chut/chut.component.scss
diff --git a/src/app/pages/basic-data/chut/chut.component.html b/src/app/pages/basic-data/chut/chut.component.html
index 173f29e..d190554 100644
--- a/src/app/pages/basic-data/chut/chut.component.html
+++ b/src/app/pages/basic-data/chut/chut.component.html
@@ -1,45 +1,53 @@
-
-
-
-
-
-
-
-
- | 序号 |
- 行李传送带代码 |
- 行李传送带名称 |
-
-
-
-
- | {{i+1}} |
- {{chut.chutCode}} |
- {{chut.chutName}} |
-
-
-
-
-
-
+
+
+
+
+
+
+ | 序号 |
+ {{col.COL_CN}} |
+
+
+
+
+
+
+
+
+
+
+ | {{start+i+1}} |
+ {{chut[col.COL_CODE]}} |
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/pages/basic-data/chut/chut.component.scss b/src/app/pages/basic-data/chut/chut.component.scss
deleted file mode 100644
index 2804efa..0000000
--- a/src/app/pages/basic-data/chut/chut.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/chut/chut.component.ts b/src/app/pages/basic-data/chut/chut.component.ts
index 9489f5a..9a9c5a3 100644
--- a/src/app/pages/basic-data/chut/chut.component.ts
+++ b/src/app/pages/basic-data/chut/chut.component.ts
@@ -1,23 +1,26 @@
-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-chut',
templateUrl: './chut.component.html',
- styleUrls: ['./chut.component.scss']
+ styleUrls: ['../basic.scss']
})
export class ChutComponent implements OnInit {
constructor(
+ private renderer2: Renderer2,
private basicDataService: BasicDataService,
- private changeDetectorRef: ChangeDetectorRef
- ) { }
+ private operateSpinServiceService: OperateSpinServiceService,
+ ) {
+ this.operateSpinServiceService.showSpin();
+ }
- public col_lists = [
- { col_code: 'chutCode', col_chn: '行李传送带代码' },
- { col_code: 'chutName', col_chn: '行李传送带名称' }
+ public render_col_lists = [
+ { COL_CODE: 'chutCode', COL_CN: '行李传送带代码', COL_WIDTH: "130px" },
+ { COL_CODE: 'chutName', COL_CN: '行李传送带名称', COL_WIDTH: "130px" }
]
// 搜索条件
@@ -25,44 +28,123 @@ export class ChutComponent implements OnInit {
FLT_POS = 1; //过滤还是定位
SEL_COL = ''; //选择列名
- chuts: Array;
- public row_state: any = { renderFlight: {} };
+ public chuts: Array;
+
+ public wait_render_data: Array