Browse Source

ie时间转化异常

zhengnaiwen_citu 3 months ago
parent
commit
4903065681
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/views/humanResources/roster/index.vue

+ 1 - 2
src/views/humanResources/roster/index.vue

@@ -51,7 +51,6 @@ import {
   exportRoster,
   downloadRosterTemplate
 } from '@/api/system'
-import { dateFormat } from '@/utils/date'
 import DICT from '@/utils/dict'
 import { mapGetters } from 'vuex'
 export default {
@@ -191,7 +190,7 @@ export default {
         this.items = data.records.map(e => {
           return {
             ...e,
-            tradeUnionsTime: dateFormat('YYYY-mm-dd', new Date(e.tradeUnionsTime))
+            tradeUnionsTime: e.tradeUnionsTime ? e.tradeUnionsTime.substring(0, 10) : null
           }
         })
         this.total = data.total