|
@@ -74,12 +74,6 @@ export function useTableStyle(tableName?: string) {
|
|
|
rowIndex,
|
|
|
}) => {
|
|
|
const classes: string[] = []
|
|
|
- // if ((['4/243', '0/6'] as any[]).includes(cellData)) {
|
|
|
- // classes.push('cell-warning')
|
|
|
- // }
|
|
|
- // if ((['5/357'] as any).includes(cellData)) {
|
|
|
- // classes.push('cell-alarm')
|
|
|
- // }
|
|
|
if ((['flightNO'] as any[]).includes(column.dataKey)) {
|
|
|
classes.push('cell-click')
|
|
|
}
|
|
@@ -87,11 +81,23 @@ export function useTableStyle(tableName?: string) {
|
|
|
(column.dataKey === 'register' &&
|
|
|
typeof cellData === 'string' &&
|
|
|
cellData.split('/').some(char => Number(char) > 0)) ||
|
|
|
- (['pullregisterTime', 'pullRegisterTime'].includes(column.dataKey) &&
|
|
|
+ ((['pullregisterTime', 'pullRegisterTime'] as any[]).includes(
|
|
|
+ column.dataKey
|
|
|
+ ) &&
|
|
|
typeof cellData === 'string')
|
|
|
) {
|
|
|
classes.push('cell-warning')
|
|
|
}
|
|
|
+ if (
|
|
|
+ (['depotJoin', 'resure'] as any[]).includes(column.dataKey) &&
|
|
|
+ (cellData ?? '') !== ''
|
|
|
+ ) {
|
|
|
+ if (cellData === rowData['stowage']) {
|
|
|
+ classes.push('cell-success')
|
|
|
+ } else if ((rowData['planeDownTime'] ?? '') !== '') {
|
|
|
+ classes.push('cell-alarm')
|
|
|
+ }
|
|
|
+ }
|
|
|
return classes.join(' ')
|
|
|
}
|
|
|
|