瀏覽代碼

航站视图-拉下时间颜色提示

zhongxiaoyu 2 年之前
父節點
當前提交
a2ebace4cf
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      src/views/realTime/hooks/useTableStyle.ts

+ 5 - 3
src/views/realTime/hooks/useTableStyle.ts

@@ -84,9 +84,11 @@ export function useTableStyle(tableName?: string) {
       classes.push('cell-click')
     }
     if (
-      column.dataKey === 'register' &&
-      typeof cellData === 'string' &&
-      cellData.split('/').some(char => Number(char) > 0)
+      (column.dataKey === 'register' &&
+        typeof cellData === 'string' &&
+        cellData.split('/').some(char => Number(char) > 0)) ||
+      (['pullregisterTime', 'pullRegisterTime'].includes(column.dataKey) &&
+        typeof cellData === 'string')
     ) {
       classes.push('cell-warning')
     }