From 5470628d7f1761b8b96e735bb9d1e17e628d4183 Mon Sep 17 00:00:00 2001 From: zhouyuejun <505127606@qq.com> Date: Mon, 26 Nov 2018 18:53:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=88=AA=E7=8F=ADtab?= =?UTF-8?q?=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/basic-data-service.ts | 1 - .../main/detail-tab/detail-tab.component.html | 34 +++++++ .../main/detail-tab/detail-tab.component.scss | 19 ++++ .../detail-tab/detail-tab.component.spec.ts | 25 +++++ .../main/detail-tab/detail-tab.component.ts | 15 +++ .../guarantee-tab.component.html | 3 + .../guarantee-tab.component.scss | 0 .../guarantee-tab.component.spec.ts | 25 +++++ .../guarantee-tab/guarantee-tab.component.ts | 15 +++ src/app/pages/main/main.component.html | 41 ++++---- src/app/pages/main/main.component.scss | 23 ++++- src/app/pages/main/main.component.ts | 99 +++++++------------ src/app/pages/main/main.module.ts | 17 +++- .../related-tab/related-tab.component.html | 36 +++++++ .../related-tab/related-tab.component.scss | 22 +++++ .../related-tab/related-tab.component.spec.ts | 25 +++++ .../main/related-tab/related-tab.component.ts | 41 ++++++++ .../special-tab/special-tab.component.html | 3 + .../special-tab/special-tab.component.scss | 0 .../special-tab/special-tab.component.spec.ts | 25 +++++ .../main/special-tab/special-tab.component.ts | 15 +++ .../pages/main/vip-tab/vip-tab.component.html | 3 + .../pages/main/vip-tab/vip-tab.component.scss | 0 .../main/vip-tab/vip-tab.component.spec.ts | 25 +++++ .../pages/main/vip-tab/vip-tab.component.ts | 15 +++ 25 files changed, 435 insertions(+), 92 deletions(-) create mode 100644 src/app/pages/main/detail-tab/detail-tab.component.html create mode 100644 src/app/pages/main/detail-tab/detail-tab.component.scss create mode 100644 src/app/pages/main/detail-tab/detail-tab.component.spec.ts create mode 100644 src/app/pages/main/detail-tab/detail-tab.component.ts create mode 100644 src/app/pages/main/guarantee-tab/guarantee-tab.component.html create mode 100644 src/app/pages/main/guarantee-tab/guarantee-tab.component.scss create mode 100644 src/app/pages/main/guarantee-tab/guarantee-tab.component.spec.ts create mode 100644 src/app/pages/main/guarantee-tab/guarantee-tab.component.ts create mode 100644 src/app/pages/main/related-tab/related-tab.component.html create mode 100644 src/app/pages/main/related-tab/related-tab.component.scss create mode 100644 src/app/pages/main/related-tab/related-tab.component.spec.ts create mode 100644 src/app/pages/main/related-tab/related-tab.component.ts create mode 100644 src/app/pages/main/special-tab/special-tab.component.html create mode 100644 src/app/pages/main/special-tab/special-tab.component.scss create mode 100644 src/app/pages/main/special-tab/special-tab.component.spec.ts create mode 100644 src/app/pages/main/special-tab/special-tab.component.ts create mode 100644 src/app/pages/main/vip-tab/vip-tab.component.html create mode 100644 src/app/pages/main/vip-tab/vip-tab.component.scss create mode 100644 src/app/pages/main/vip-tab/vip-tab.component.spec.ts create mode 100644 src/app/pages/main/vip-tab/vip-tab.component.ts diff --git a/src/app/pages/basic-data-service.ts b/src/app/pages/basic-data-service.ts index 50cee09..38477d0 100644 --- a/src/app/pages/basic-data-service.ts +++ b/src/app/pages/basic-data-service.ts @@ -84,7 +84,6 @@ export class BasicDataService { terminalAreaRes, airlineRes ]) => { - console.log('---') this.flightStatus = flightStatusRes.body; this.flightStatus_subject.next(flightStatusRes.body); this.checkin_group = checkinGroupRes.body; diff --git a/src/app/pages/main/detail-tab/detail-tab.component.html b/src/app/pages/main/detail-tab/detail-tab.component.html new file mode 100644 index 0000000..a307a76 --- /dev/null +++ b/src/app/pages/main/detail-tab/detail-tab.component.html @@ -0,0 +1,34 @@ +
+
描述类 -----------------------------------------
+
+

{{flight.renderFlight.FLNO}}

+

{{flight.renderFlight.ALCD}}

+

{{flight.renderFlight.FLIN}}

+

{{flight.renderFlight.FLTY}}

+ +

{{flight.renderFlight.ERUT}}

+

{{flight.renderFlight.ACFT}}

+

{{flight.renderFlight.MVIN}}

+

{{flight.renderFlight.RENO}}

+

{{flight.renderFlight.FTSS}}

+
+
资源类 -----------------------------------------
+
+

{{flight.renderFlight.STND}}

+

{{flight.renderFlight.GATE}}

+

{{flight.renderFlight.CHKC}}

+

{{flight.renderFlight.CHUT}}

+
+
时间类 -----------------------------------------
+
+

{{flight.renderFlight.SODT}}

+

{{flight.renderFlight.ESTT}}

+

{{flight.renderFlight.ACTT}}

+

{{flight.renderFlight.CHTM_ON}}

+

{{flight.renderFlight.CHTM_OFF}}

+

{{flight.renderFlight.COTM}}

+

{{flight.renderFlight.CCTM}}

+

{{flight.renderFlight.BOTM}}

+

{{flight.renderFlight.GCTM}}

+
+
\ No newline at end of file diff --git a/src/app/pages/main/detail-tab/detail-tab.component.scss b/src/app/pages/main/detail-tab/detail-tab.component.scss new file mode 100644 index 0000000..0987231 --- /dev/null +++ b/src/app/pages/main/detail-tab/detail-tab.component.scss @@ -0,0 +1,19 @@ +.tab-container{ + padding: 10px; + height: 635px; + overflow: auto; + border: 1px solid #ccc; + .hr-line{ + font-weight: bold; + } + .message-container{ + padding: 5px 10px 5px 10px; + p{ + margin: 0; + label{ + width: 120px; + text-align: right; + } + } + } +} \ No newline at end of file diff --git a/src/app/pages/main/detail-tab/detail-tab.component.spec.ts b/src/app/pages/main/detail-tab/detail-tab.component.spec.ts new file mode 100644 index 0000000..354e6c6 --- /dev/null +++ b/src/app/pages/main/detail-tab/detail-tab.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { DetailTabComponent } from './detail-tab.component'; + +describe('DetailTabComponent', () => { + let component: DetailTabComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ DetailTabComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(DetailTabComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/main/detail-tab/detail-tab.component.ts b/src/app/pages/main/detail-tab/detail-tab.component.ts new file mode 100644 index 0000000..0d070f8 --- /dev/null +++ b/src/app/pages/main/detail-tab/detail-tab.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit, Input } from '@angular/core'; + +@Component({ + selector: 'app-detail-tab', + templateUrl: './detail-tab.component.html', + styleUrls: ['./detail-tab.component.scss'] +}) +export class DetailTabComponent implements OnInit { + @Input() flight; + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/pages/main/guarantee-tab/guarantee-tab.component.html b/src/app/pages/main/guarantee-tab/guarantee-tab.component.html new file mode 100644 index 0000000..6c7ac1e --- /dev/null +++ b/src/app/pages/main/guarantee-tab/guarantee-tab.component.html @@ -0,0 +1,3 @@ +

+ guarantee-tab works! +

diff --git a/src/app/pages/main/guarantee-tab/guarantee-tab.component.scss b/src/app/pages/main/guarantee-tab/guarantee-tab.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/main/guarantee-tab/guarantee-tab.component.spec.ts b/src/app/pages/main/guarantee-tab/guarantee-tab.component.spec.ts new file mode 100644 index 0000000..939dd2f --- /dev/null +++ b/src/app/pages/main/guarantee-tab/guarantee-tab.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { GuaranteeTabComponent } from './guarantee-tab.component'; + +describe('GuaranteeTabComponent', () => { + let component: GuaranteeTabComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ GuaranteeTabComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(GuaranteeTabComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/main/guarantee-tab/guarantee-tab.component.ts b/src/app/pages/main/guarantee-tab/guarantee-tab.component.ts new file mode 100644 index 0000000..6bc3b03 --- /dev/null +++ b/src/app/pages/main/guarantee-tab/guarantee-tab.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-guarantee-tab', + templateUrl: './guarantee-tab.component.html', + styleUrls: ['./guarantee-tab.component.scss'] +}) +export class GuaranteeTabComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/pages/main/main.component.html b/src/app/pages/main/main.component.html index f378930..d477413 100644 --- a/src/app/pages/main/main.component.html +++ b/src/app/pages/main/main.component.html @@ -119,7 +119,7 @@