Browse Source

feat: 修改时间格式化

zhouyuhao 1 year ago
parent
commit
2c07201960

+ 2 - 2
src/views/Booking/src/components/BookingDetail/src/components/ContainersView.vue

@@ -42,13 +42,13 @@ const handleColumns = (columns: any) => {
           return dayjs(row[column.field]).unix()
         },
         formatter: ({ cellValue }: any) =>
-          cellValue ? dayjs(cellValue).format('MMM-YYYY-DD ') : '--'
+          cellValue ? dayjs(cellValue).format('MMM-DD-YYYY ') : '--'
       }
     } else if (item.formatter === 'dateTime') {
       curColumn = {
         ...curColumn,
         formatter: ({ cellValue }: any) =>
-          cellValue ? dayjs(cellValue).format('MMM-YYYY-DD HH:mm:ss') : '--'
+          cellValue ? dayjs(cellValue).format('MMM-DD-YYYY HH:mm:ss') : '--'
       }
     }
     return curColumn

+ 2 - 2
src/views/Booking/src/components/BookingTable/src/BookingTable.vue

@@ -58,13 +58,13 @@ const handleColumns = (columns: any, status?: string) => {
       curColumn = {
         ...curColumn,
         formatter: ({ cellValue }: any) =>
-          cellValue ? dayjs(cellValue).format('MMM-YYYY-DD ') : '--'
+          cellValue ? dayjs(cellValue).format('MMM-DD-YYYY ') : '--'
       }
     } else if (item.formatter === 'dateTime') {
       curColumn = {
         ...curColumn,
         formatter: ({ cellValue }: any) =>
-          cellValue ? dayjs(cellValue).format('MMM-YYYY-DD HH:mm:ss') : '--'
+          cellValue ? dayjs(cellValue).format('MMM-DD-YYYY HH:mm:ss') : '--'
       }
     }
     return curColumn

+ 1 - 1
src/views/OperationLog/src/components/BookingTable/src/BookingTable.vue

@@ -47,7 +47,7 @@ const handleColumns = (columns: any, status?: string) => {
       curColumn = {
         ...curColumn,
         formatter: ({ cellValue }: any) =>
-          cellValue ? dayjs(cellValue).format('MMM-YYYY-DD ') : '--'
+          cellValue ? dayjs(cellValue).format('MMM-DD-YYYY ') : '--'
       }
     } else if (item.formatter === 'dateTime') {
       curColumn = {

+ 2 - 2
src/views/Tracking/src/components/TrackingDetail/src/components/ContainersView.vue

@@ -43,13 +43,13 @@ const handleColumns = (columns: any) => {
           return dayjs(row[column.field]).unix()
         },
         formatter: ({ cellValue }: any) =>
-          cellValue ? dayjs(cellValue).format('MMM-YYYY-DD ') : '--'
+          cellValue ? dayjs(cellValue).format('MMM-DD-YYYY ') : '--'
       }
     } else if (item.formatter === 'dateTime') {
       curColumn = {
         ...curColumn,
         formatter: ({ cellValue }: any) =>
-          cellValue ? dayjs(cellValue).format('MMM-YYYY-DD HH:mm:ss') : '--'
+          cellValue ? dayjs(cellValue).format('MMM-DD-YYYY HH:mm:ss') : '--'
       }
     }
     return curColumn

+ 2 - 2
src/views/Tracking/src/components/TrackingTable/src/TrackingTable.vue

@@ -54,13 +54,13 @@ const handleColumns = (columns: any, status?: string) => {
       curColumn = {
         ...curColumn,
         formatter: ({ cellValue }: any) =>
-          cellValue ? dayjs(cellValue).format('MMM-YYYY-DD ') : '--'
+          cellValue ? dayjs(cellValue).format('MMM-DD-YYYY ') : '--'
       }
     } else if (item.formatter === 'dateTime') {
       curColumn = {
         ...curColumn,
         formatter: ({ cellValue }: any) =>
-          cellValue ? dayjs(cellValue).format('MMM-YYYY-DD HH:mm:ss') : '--'
+          cellValue ? dayjs(cellValue).format('MMM-DD-YYYY HH:mm:ss') : '--'
       }
     }
     return curColumn

+ 1 - 1
src/views/Tracking/src/components/TrackingTable/src/components/VGMView.vue

@@ -145,7 +145,7 @@ const handleColumns = (columns: any) => {
       curColumn = {
         ...curColumn,
         formatter: ({ cellValue }: any) =>
-          cellValue ? dayjs(cellValue).format('MMM-YYYY-DD HH:mm:ss') : '--'
+          cellValue ? dayjs(cellValue).format('MMM-DD-YYYY HH:mm:ss') : '--'
       }
     }
     return curColumn