From 37c1c18b0e47bd8b9272a33bfa557c62b564d24b Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 23 四月 2024 15:05:33 +0800
Subject: [PATCH] 带徒管理的添加时间转化格式

---
 src/views/employeeSalary/apprenticeshipManage/index.vue |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/views/employeeSalary/apprenticeshipManage/index.vue b/src/views/employeeSalary/apprenticeshipManage/index.vue
index 0cedec9..ef15e92 100644
--- a/src/views/employeeSalary/apprenticeshipManage/index.vue
+++ b/src/views/employeeSalary/apprenticeshipManage/index.vue
@@ -42,6 +42,8 @@
 import { getMentorList, deleteMentorInfo } from "@/api/employeeSalary/apprenticeshipManage.js"
 import AddDialog from "@/views/employeeSalary/apprenticeshipManage/components/addDialog.vue"
 import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
+import Date from "@/api/date";
+const { formatDate2 } = Date;
 export default {
   name: "apprenticeshipManage",
   props: {},
@@ -118,7 +120,8 @@
               const list = res.data.map(item=>{
                 return {
                   ...item,
-                  name:item.worker?item.worker.name:''
+                  name:item.worker?item.worker.name:'',
+                  created_at:item.CreatedAt?formatDate2(item.CreatedAt).split(' ')[0]:''
                 }
               })
               this.tableList.tableInfomation = list || []

--
Gitblit v1.8.0