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