详细信息添加标志类和数量类信息
This commit is contained in:
@@ -38,4 +38,12 @@
|
|||||||
<p><label>开始登机:</label>{{singleFlight.BOTM}}</p>
|
<p><label>开始登机:</label>{{singleFlight.BOTM}}</p>
|
||||||
<p><label>登机结束:</label>{{singleFlight.GCTM}}</p>
|
<p><label>登机结束:</label>{{singleFlight.GCTM}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="hr-line">标志类 -----------------------------------------</div>
|
||||||
|
<div class="message-container">
|
||||||
|
<p><label>VIP航班标志:</label>{{vipNumber>0?'是':'否'}}</p>
|
||||||
|
</div>
|
||||||
|
<div class="hr-line">数量类 -----------------------------------------</div>
|
||||||
|
<div class="message-container">
|
||||||
|
<p><label>VIP人数:</label>{{vipNumber}}</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -12,12 +12,14 @@ export class DetailTabComponent implements OnInit {
|
|||||||
|
|
||||||
public showPsst: string;
|
public showPsst: string;
|
||||||
public showRemc:string;
|
public showRemc:string;
|
||||||
|
public vipNumber:boolean;
|
||||||
|
|
||||||
@Input() set flight(flight) {
|
@Input() set flight(flight) {
|
||||||
this.lines = Object.assign({}, flight);
|
this.lines = Object.assign({}, flight);
|
||||||
if (this.lines.preFlight && !this.lines.reaFlight) {
|
if (this.lines.preFlight && !this.lines.reaFlight) {
|
||||||
this.singleFlight = this.lines.renderFlight;
|
this.singleFlight = this.lines.renderFlight;
|
||||||
this.showRemc = this.lines.preFlight.REMC;
|
this.showRemc = this.lines.preFlight.REMC;
|
||||||
|
this.vipNumber = this.lines.preFlight.VIPP;
|
||||||
let psst = this.psstFormatter(this.lines.preFlight);
|
let psst = this.psstFormatter(this.lines.preFlight);
|
||||||
if (psst) {
|
if (psst) {
|
||||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||||
@@ -28,6 +30,7 @@ export class DetailTabComponent implements OnInit {
|
|||||||
} else if (!this.lines.preFlight && this.lines.reaFlight) {
|
} else if (!this.lines.preFlight && this.lines.reaFlight) {
|
||||||
this.singleFlight = this.lines.renderFlight;
|
this.singleFlight = this.lines.renderFlight;
|
||||||
this.showRemc = this.lines.reaFlight.REMC;
|
this.showRemc = this.lines.reaFlight.REMC;
|
||||||
|
this.vipNumber = this.lines.reaFlight.VIPP;
|
||||||
let psst = this.psstFormatter(this.lines.reaFlight);
|
let psst = this.psstFormatter(this.lines.reaFlight);
|
||||||
if (psst) {
|
if (psst) {
|
||||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||||
@@ -38,6 +41,7 @@ export class DetailTabComponent implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
this.singleFlight = this.lines.renderPreFlight;
|
this.singleFlight = this.lines.renderPreFlight;
|
||||||
this.showRemc = this.lines.preFlight.REMC;
|
this.showRemc = this.lines.preFlight.REMC;
|
||||||
|
this.vipNumber = this.lines.preFlight.VIPP;
|
||||||
let psst = this.psstFormatter(this.lines.preFlight);
|
let psst = this.psstFormatter(this.lines.preFlight);
|
||||||
if (psst) {
|
if (psst) {
|
||||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||||
@@ -56,6 +60,7 @@ export class DetailTabComponent implements OnInit {
|
|||||||
if (this.lines.preFlight && !this.lines.reaFlight) {
|
if (this.lines.preFlight && !this.lines.reaFlight) {
|
||||||
this.singleFlight = this.lines.renderFlight;
|
this.singleFlight = this.lines.renderFlight;
|
||||||
this.showRemc = this.lines.preFlight.REMC;
|
this.showRemc = this.lines.preFlight.REMC;
|
||||||
|
this.vipNumber = this.lines.preFlight.VIPP;
|
||||||
let psst = this.psstFormatter(this.lines.preFlight);
|
let psst = this.psstFormatter(this.lines.preFlight);
|
||||||
if (psst) {
|
if (psst) {
|
||||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||||
@@ -66,6 +71,7 @@ export class DetailTabComponent implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
this.singleFlight = this.lines.renderPreFlight;
|
this.singleFlight = this.lines.renderPreFlight;
|
||||||
this.showRemc = this.lines.preFlight.REMC;
|
this.showRemc = this.lines.preFlight.REMC;
|
||||||
|
this.vipNumber = this.lines.preFlight.VIPP;
|
||||||
let psst = this.psstFormatter(this.lines.preFlight);
|
let psst = this.psstFormatter(this.lines.preFlight);
|
||||||
if (psst) {
|
if (psst) {
|
||||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||||
@@ -79,6 +85,7 @@ export class DetailTabComponent implements OnInit {
|
|||||||
if (!this.lines.preFlight && this.lines.reaFlight) {
|
if (!this.lines.preFlight && this.lines.reaFlight) {
|
||||||
this.singleFlight = this.lines.renderFlight;
|
this.singleFlight = this.lines.renderFlight;
|
||||||
this.showRemc = this.lines.reaFlight.REMC;
|
this.showRemc = this.lines.reaFlight.REMC;
|
||||||
|
this.vipNumber = this.lines.reaFlight.VIPP;
|
||||||
let psst = this.psstFormatter(this.lines.reaFlight);
|
let psst = this.psstFormatter(this.lines.reaFlight);
|
||||||
if (psst) {
|
if (psst) {
|
||||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||||
@@ -89,6 +96,7 @@ export class DetailTabComponent implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
this.singleFlight = this.lines.renderReaFlight;
|
this.singleFlight = this.lines.renderReaFlight;
|
||||||
this.showRemc = this.lines.reaFlight.REMC;
|
this.showRemc = this.lines.reaFlight.REMC;
|
||||||
|
this.vipNumber = this.lines.reaFlight.VIPP;
|
||||||
let psst = this.psstFormatter(this.lines.reaFlight);
|
let psst = this.psstFormatter(this.lines.reaFlight);
|
||||||
if (psst) {
|
if (psst) {
|
||||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||||
|
|||||||
Reference in New Issue
Block a user