Explorar o código

航班视图-时间格式修改

zhongxiaoyu %!s(int64=2) %!d(string=hai) anos
pai
achega
de03bcbfb8
Modificáronse 1 ficheiros con 15 adicións e 1 borrados
  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 ?? '')