单元格颜色显示修改
This commit is contained in:
@@ -7,33 +7,13 @@ export class CellColorHandle {
|
||||
|
||||
|
||||
public reno(flight, colorSetting) {
|
||||
if (this.orderHandle.isArriFlight(flight)) {
|
||||
if (flight['preFlight']['RENO'] && flight['preFlight']['RENO'].indexOf('(') > 0) {
|
||||
return {
|
||||
'background-color': colorSetting.COL_BG_COLOR,
|
||||
'color': colorSetting.COL_COLOR
|
||||
}
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
} else if (this.orderHandle.isDeptFlight(flight)) {
|
||||
if (flight['reaFlight']['RENO'] && flight['reaFlight']['RENO'].indexOf('(') > 0) {
|
||||
return {
|
||||
'background-color': colorSetting.COL_BG_COLOR,
|
||||
'color': colorSetting.COL_COLOR
|
||||
}
|
||||
} else {
|
||||
return {};
|
||||
if (flight['renderFlight']['RENO'] && flight['renderFlight']['RENO'].indexOf('(') > 0) {
|
||||
return {
|
||||
'background-color': colorSetting.COL_BG_COLOR,
|
||||
'color': colorSetting.COL_COLOR
|
||||
}
|
||||
} else {
|
||||
if ((flight['preFlight']['RENO'] && flight['preFlight']['RENO'].indexOf('(') > 0) || (flight['reaFlight']['RENO'] && flight['reaFlight']['RENO'].indexOf('(') > 0)) {
|
||||
return {
|
||||
'background-color': colorSetting.COL_BG_COLOR,
|
||||
'color': colorSetting.COL_COLOR
|
||||
}
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,17 +85,8 @@ export class CellColorHandle {
|
||||
}
|
||||
|
||||
public padt(flight, colorSetting) {
|
||||
if (this.orderHandle.isArriFlight(flight)) {
|
||||
if (flight['preFlight']['PADT'] && flight['preFlight']['PADT'].indexOf('(') > 0) {
|
||||
return {
|
||||
'background-color': colorSetting.COL_BG_COLOR,
|
||||
'color': colorSetting.COL_COLOR
|
||||
}
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
} else if (this.orderHandle.isDeptFlight(flight)) {
|
||||
if (flight['reaFlight']['PADT'] && flight['reaFlight']['PADT'].indexOf('(') > 0) {
|
||||
if (this.orderHandle.isArriFlight(flight) || this.orderHandle.isLinked(flight)) {
|
||||
if (flight['preFlight']['PADT']) {
|
||||
return {
|
||||
'background-color': colorSetting.COL_BG_COLOR,
|
||||
'color': colorSetting.COL_COLOR
|
||||
@@ -124,56 +95,12 @@ export class CellColorHandle {
|
||||
return {};
|
||||
}
|
||||
} else {
|
||||
if ((flight['preFlight']['PADT'] && flight['preFlight']['PADT'].indexOf('(') > 0) || (flight['reaFlight']['PADT'] && flight['reaFlight']['PADT'].indexOf('(') > 0)) {
|
||||
return {
|
||||
'background-color': colorSetting.COL_BG_COLOR,
|
||||
'color': colorSetting.COL_COLOR
|
||||
}
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
public psst(flight, colorSetting) {
|
||||
return {};
|
||||
}
|
||||
|
||||
public cotm(flight, colorSetting) {
|
||||
if (flight['renderFlight']['COTM'] && !flight['renderFlight']['CCTM']) {
|
||||
return {
|
||||
'background-color': colorSetting.COL_BG_COLOR,
|
||||
'color': colorSetting.COL_COLOR
|
||||
}
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
public cctm(flight, colorSetting) {
|
||||
if (flight['renderFlight']['CCTM']) {
|
||||
return {
|
||||
'background-color': colorSetting.COL_BG_COLOR,
|
||||
'color': colorSetting.COL_COLOR
|
||||
}
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
public botm(flight, colorSetting) {
|
||||
if (flight['renderFlight']['BOTM'] && !flight['renderFlight']['GCTM']) {
|
||||
return {
|
||||
'background-color': colorSetting.COL_BG_COLOR,
|
||||
'color': colorSetting.COL_COLOR
|
||||
}
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
public gctm(flight, colorSetting) {
|
||||
if (flight['renderFlight']['GCTM']) {
|
||||
if (flight['renderFlight']['PSST'] && flight['renderFlight']['PSST'].indexOf('(') > 0) {
|
||||
return {
|
||||
'background-color': colorSetting.COL_BG_COLOR,
|
||||
'color': colorSetting.COL_COLOR
|
||||
|
||||
Reference in New Issue
Block a user