航班详细信息停机位显示修改
This commit is contained in:
@@ -14,32 +14,31 @@ export class DetailTabComponent implements OnInit {
|
||||
|
||||
@Input() set flight(flight) {
|
||||
this.lines = Object.assign({}, flight);
|
||||
|
||||
if (this.lines.preFlight && !this.lines.reaFlight) {
|
||||
this.singleFlight = this.lines.renderFlight;
|
||||
let psst = this.psstFormatter(this.lines.preFlight);
|
||||
if (psst) {
|
||||
this.showPsst = this.singleFlight.STND + '(' + psst + ')';
|
||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||
} else {
|
||||
this.showPsst = this.singleFlight.STND
|
||||
this.showPsst = (this.singleFlight.STND || '')
|
||||
}
|
||||
this.btnClickDisabled = true;
|
||||
} else if (!this.lines.preFlight && this.lines.reaFlight) {
|
||||
this.singleFlight = this.lines.renderFlight;
|
||||
let psst = this.psstFormatter(this.lines.reaFlight);
|
||||
if (psst) {
|
||||
this.showPsst = this.singleFlight.STND + '(' + psst + ')';
|
||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||
} else {
|
||||
this.showPsst = this.singleFlight.STND
|
||||
this.showPsst = (this.singleFlight.STND || '')
|
||||
}
|
||||
this.btnClickDisabled = true;
|
||||
} else {
|
||||
this.singleFlight = this.lines.renderPreFlight;
|
||||
let psst = this.psstFormatter(this.lines.preFlight);
|
||||
if (psst) {
|
||||
this.showPsst = this.singleFlight.STND + '(' + psst + ')';
|
||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||
} else {
|
||||
this.showPsst = this.singleFlight.STND
|
||||
this.showPsst = (this.singleFlight.STND || '')
|
||||
}
|
||||
this.btnClickDisabled = false;
|
||||
};
|
||||
@@ -54,57 +53,39 @@ export class DetailTabComponent implements OnInit {
|
||||
this.singleFlight = this.lines.renderFlight;
|
||||
let psst = this.psstFormatter(this.lines.preFlight);
|
||||
if (psst) {
|
||||
this.showPsst = this.singleFlight.STND + '(' + psst + ')';
|
||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||
} else {
|
||||
this.showPsst = this.singleFlight.STND
|
||||
}
|
||||
this.btnClickDisabled = true;
|
||||
} else if (!this.lines.preFlight && this.lines.reaFlight) {
|
||||
this.singleFlight = this.lines.renderFlight;
|
||||
let psst = this.psstFormatter(this.lines.reaFlight);
|
||||
if (psst) {
|
||||
this.showPsst = this.singleFlight.STND + '(' + psst + ')';
|
||||
} else {
|
||||
this.showPsst = this.singleFlight.STND
|
||||
this.showPsst = (this.singleFlight.STND || '')
|
||||
}
|
||||
this.btnClickDisabled = true;
|
||||
} else {
|
||||
this.singleFlight = this.lines.renderPreFlight;
|
||||
let psst = this.psstFormatter(this.lines.preFlight);
|
||||
if (psst) {
|
||||
this.showPsst = this.singleFlight.STND + '(' + psst + ')';
|
||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||
} else {
|
||||
this.showPsst = this.singleFlight.STND
|
||||
this.showPsst = (this.singleFlight.STND || '');
|
||||
}
|
||||
this.btnClickDisabled = false;
|
||||
};
|
||||
}
|
||||
showReaFlight() {
|
||||
if (this.lines.preFlight && !this.lines.reaFlight) {
|
||||
this.singleFlight = this.lines.renderFlight;
|
||||
let psst = this.psstFormatter(this.lines.preFlight);
|
||||
if (psst) {
|
||||
this.showPsst = this.singleFlight.STND + '(' + psst + ')';
|
||||
} else {
|
||||
this.showPsst = this.singleFlight.STND
|
||||
}
|
||||
this.btnClickDisabled = true;
|
||||
} else if (!this.lines.preFlight && this.lines.reaFlight) {
|
||||
if (!this.lines.preFlight && this.lines.reaFlight) {
|
||||
this.singleFlight = this.lines.renderFlight;
|
||||
let psst = this.psstFormatter(this.lines.reaFlight);
|
||||
if (psst) {
|
||||
this.showPsst = this.singleFlight.STND + '(' + psst + ')';
|
||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||
} else {
|
||||
this.showPsst = this.singleFlight.STND
|
||||
this.showPsst = (this.singleFlight.STND || '')
|
||||
}
|
||||
this.btnClickDisabled = true;
|
||||
} else {
|
||||
this.singleFlight = this.lines.renderPreFlight;
|
||||
let psst = this.psstFormatter(this.lines.preFlight);
|
||||
this.singleFlight = this.lines.renderReaFlight;
|
||||
let psst = this.psstFormatter(this.lines.reaFlight);
|
||||
if (psst) {
|
||||
this.showPsst = this.singleFlight.STND + '(' + psst + ')';
|
||||
this.showPsst = (this.singleFlight.STND || '') + '(' + psst + ')';
|
||||
} else {
|
||||
this.showPsst = this.singleFlight.STND
|
||||
this.showPsst = (this.singleFlight.STND || '')
|
||||
}
|
||||
this.btnClickDisabled = false;
|
||||
};
|
||||
|
||||
@@ -462,10 +462,8 @@ export class MainComponent implements OnInit {
|
||||
}
|
||||
this.promise.postMessage(dynamicData);
|
||||
this.promise.onmessage = function (e) {
|
||||
// console.log('=====')
|
||||
this.combined_data = e.data;
|
||||
this.selectChange('dynamic');
|
||||
// this.promise.terminate();
|
||||
}.bind(this);
|
||||
// const promise = this.webWorkerService.run(webWorkerHandle, dynamicData);
|
||||
// promise.then(function (response) {
|
||||
|
||||
Reference in New Issue
Block a user