个人设置添加值机,登机,保障的颜色设置
This commit is contained in:
@@ -1244,6 +1244,10 @@ export class MainComponent implements OnInit {
|
||||
'SODT': this.cellColorHandle.sodt.bind(this.cellColorHandle),
|
||||
'PADT': this.cellColorHandle.padt.bind(this.cellColorHandle),
|
||||
'PSST': this.cellColorHandle.psst.bind(this.cellColorHandle),
|
||||
'COTM': this.cellColorHandle.cotm.bind(this.cellColorHandle),
|
||||
'CCTM': this.cellColorHandle.cctm.bind(this.cellColorHandle),
|
||||
'BOTM': this.cellColorHandle.botm.bind(this.cellColorHandle),
|
||||
'GCTM': this.cellColorHandle.gctm.bind(this.cellColorHandle),
|
||||
}
|
||||
getColor(col_CODE, flight, col_WIDTH) {
|
||||
let index = this.airline_color.findIndex(color => color['COL_CODE'] === col_CODE)
|
||||
|
||||
+11
-1
@@ -27,12 +27,22 @@ export class ColorSettingsComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.queryTable();
|
||||
this.defaultList=[
|
||||
{"COL_CODE":"SODT", "COL_CN":"预计到达/出发", "COL_BG_COLOR":"rgb(230,221,221,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"SODT", "COL_CN":"计划到达/出发", "COL_BG_COLOR":"rgb(230,221,221,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"ESTT", "COL_CN":"预计到达/出发", "COL_BG_COLOR":"rgb(255,207,157,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"ACTT", "COL_CN":"实际到达/出发", "COL_BG_COLOR":"rgb(149,207,255,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"RENO", "COL_CN":"飞机号变更", "COL_BG_COLOR":"rgb(46,255,135,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"PSST", "COL_CN":"计划机位变更", "COL_BG_COLOR":"rgb(173,255,46,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"PADT", "COL_CN":"前站起飞时间", "COL_BG_COLOR":"rgb(114,181,255,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"COTM", "COL_CN":"值机开始", "COL_BG_COLOR":"rgb(228,157,157,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"CCTM", "COL_CN":"值机结束", "COL_BG_COLOR":"rgb(159,140,140,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"BOTM", "COL_CN":"登机开始", "COL_BG_COLOR":"rgb(247,124,124,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"GCTM", "COL_CN":"登机结束", "COL_BG_COLOR":"rgb(239,229,55,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"FSTA", "COL_CN":"服务开始时间", "COL_BG_COLOR":"rgb(171,169,88,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"FEND", "COL_CN":"服务完成时间", "COL_BG_COLOR":"rgb(194,192,13,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"FPEO", "COL_CN":"服务人员", "COL_BG_COLOR":"rgb(65,194,13,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"FCAR", "COL_CN":"服务车辆", "COL_BG_COLOR":"rgb(191,237,173,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"FNUM", "COL_CN":"服务数量", "COL_BG_COLOR":"rgb(173,237,226,1)","COL_COLOR":"rgb(0,70,255,1)"},
|
||||
{"COL_CODE":"FCGE", "COL_CN":"机务交接时间", "COL_BG_COLOR":"rgb(30,179,153,1)","COL_COLOR":"rgb(0,70,255,1)"}
|
||||
]
|
||||
}
|
||||
//设置颜色 1设置背景颜色 2设置字体颜色
|
||||
|
||||
@@ -102,4 +102,44 @@ export class CellColorHandle {
|
||||
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']) {
|
||||
return {
|
||||
'background-color': colorSetting.COL_BG_COLOR,
|
||||
'color': colorSetting.COL_COLOR
|
||||
}
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user