详细信息添加标志类和数量类信息

This commit is contained in:
zhouyuejun
2019-01-23 15:48:56 +08:00
parent 6ccc93883a
commit d99cd55daf
2 changed files with 16 additions and 0 deletions
@@ -38,4 +38,12 @@
<p><label>开始登机:</label>{{singleFlight.BOTM}}</p>
<p><label>登机结束:</label>{{singleFlight.GCTM}}</p>
</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>
@@ -12,12 +12,14 @@ export class DetailTabComponent implements OnInit {
public showPsst: string;
public showRemc:string;
public vipNumber:boolean;
@Input() set flight(flight) {
this.lines = Object.assign({}, flight);
if (this.lines.preFlight && !this.lines.reaFlight) {
this.singleFlight = this.lines.renderFlight;
this.showRemc = this.lines.preFlight.REMC;
this.vipNumber = this.lines.preFlight.VIPP;
let psst = this.psstFormatter(this.lines.preFlight);
if (psst) {
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
@@ -28,6 +30,7 @@ export class DetailTabComponent implements OnInit {
} else if (!this.lines.preFlight && this.lines.reaFlight) {
this.singleFlight = this.lines.renderFlight;
this.showRemc = this.lines.reaFlight.REMC;
this.vipNumber = this.lines.reaFlight.VIPP;
let psst = this.psstFormatter(this.lines.reaFlight);
if (psst) {
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
@@ -38,6 +41,7 @@ export class DetailTabComponent implements OnInit {
} else {
this.singleFlight = this.lines.renderPreFlight;
this.showRemc = this.lines.preFlight.REMC;
this.vipNumber = this.lines.preFlight.VIPP;
let psst = this.psstFormatter(this.lines.preFlight);
if (psst) {
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
@@ -56,6 +60,7 @@ export class DetailTabComponent implements OnInit {
if (this.lines.preFlight && !this.lines.reaFlight) {
this.singleFlight = this.lines.renderFlight;
this.showRemc = this.lines.preFlight.REMC;
this.vipNumber = this.lines.preFlight.VIPP;
let psst = this.psstFormatter(this.lines.preFlight);
if (psst) {
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
@@ -66,6 +71,7 @@ export class DetailTabComponent implements OnInit {
} else {
this.singleFlight = this.lines.renderPreFlight;
this.showRemc = this.lines.preFlight.REMC;
this.vipNumber = this.lines.preFlight.VIPP;
let psst = this.psstFormatter(this.lines.preFlight);
if (psst) {
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
@@ -79,6 +85,7 @@ export class DetailTabComponent implements OnInit {
if (!this.lines.preFlight && this.lines.reaFlight) {
this.singleFlight = this.lines.renderFlight;
this.showRemc = this.lines.reaFlight.REMC;
this.vipNumber = this.lines.reaFlight.VIPP;
let psst = this.psstFormatter(this.lines.reaFlight);
if (psst) {
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
@@ -89,6 +96,7 @@ export class DetailTabComponent implements OnInit {
} else {
this.singleFlight = this.lines.renderReaFlight;
this.showRemc = this.lines.reaFlight.REMC;
this.vipNumber = this.lines.reaFlight.VIPP;
let psst = this.psstFormatter(this.lines.reaFlight);
if (psst) {
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';