Răsfoiți Sursa

航班视图-时间格式修改

zhongxiaoyu 2 ani în urmă
părinte
comite
de03bcbfb8
1 a modificat fișierele cu 15 adăugiri și 1 ștergeri
  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 ?? '')