Quellcode durchsuchen

航班视图-时间格式修改

zhongxiaoyu vor 2 Jahren
Ursprung
Commit
de03bcbfb8
1 geänderte Dateien mit 15 neuen und 1 gelöschten Zeilen
  1. 15 1
      src/views/realTime/components/FlightView/index.vue

+ 15 - 1
src/views/realTime/components/FlightView/index.vue

@@ -139,7 +139,21 @@ const {
 } = useTable(`${props.name}Waybill`, dataContent)
 
 const tableFormatter = (row, column, cellValue, index) => {
-  if (column.property.includes('Time') && typeof cellValue === 'string') {
+  if (
+    (column.property.includes('Time') ||
+      [
+        'tally',
+        'pull',
+        'wait',
+        'stowage',
+        'depot',
+        'resure',
+        'planeDown',
+        'loadPlane',
+        'pullSure',
+      ].includes(column.property)) &&
+    typeof cellValue === 'string'
+  ) {
     return cellValue.slice(5, -3).replace('T', '\n')
   }
   return String(cellValue ?? '')