|
@@ -81,19 +81,21 @@ export function useTableStyle(tableName?: string) {
|
|
|
classes.push('flight-state-cancel')
|
|
|
}
|
|
|
}
|
|
|
+ // if (
|
|
|
+ // ((column.property === 'register' &&
|
|
|
+ // cellData.split('/').some(char => Number(char) > 0)) ||
|
|
|
+ // (['pullregisterTime', 'pullRegisterTime'] as CommonValue[]).includes(
|
|
|
+ // column.property
|
|
|
+ // )) &&
|
|
|
+ // typeof cellData === 'string'
|
|
|
+ // ) {
|
|
|
+ // classes.push('cell-warning')
|
|
|
+ // }
|
|
|
if (
|
|
|
- (column.property === 'register' &&
|
|
|
- typeof cellData === 'string' &&
|
|
|
- cellData.split('/').some(char => Number(char) > 0)) ||
|
|
|
- ((['pullregisterTime', 'pullRegisterTime'] as CommonValue[]).includes(
|
|
|
- column.property
|
|
|
- ) &&
|
|
|
- typeof cellData === 'string')
|
|
|
- ) {
|
|
|
- classes.push('cell-warning')
|
|
|
- }
|
|
|
- if (
|
|
|
- (['resure', 'resureTime'] as CommonValue[]).includes(column.property) &&
|
|
|
+ ([
|
|
|
+ 'resure',
|
|
|
+ // 'resureTime'
|
|
|
+ ] as CommonValue[]).includes(column.property) &&
|
|
|
(row['planeDownTime'] ?? '') !== ''
|
|
|
) {
|
|
|
const { stowage, resure } = row
|
|
@@ -119,7 +121,10 @@ export function useTableStyle(tableName?: string) {
|
|
|
// }
|
|
|
if (
|
|
|
tableName === 'DepartureAirport' &&
|
|
|
- ['securityYes', 'securityTime'].includes(column.property)
|
|
|
+ [
|
|
|
+ 'securityYes',
|
|
|
+ // 'securityTime'
|
|
|
+ ].includes(column.property)
|
|
|
) {
|
|
|
const { receiveSure, receiveSure1, securityYes } = row
|
|
|
let receiveNum = 0,
|
|
@@ -151,7 +156,7 @@ export function useTableStyle(tableName?: string) {
|
|
|
classes.push('cell-warning')
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (column.property === 'loadPlaneTime') {
|
|
|
const { planDepartureTime, loadPlaneTime } = row
|
|
|
if (
|