From e4debe98827b39f521b8461ac184ee793a026fdd Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 28 九月 2026 23:30:57 +0800
Subject: [PATCH] feat(utils): 添加日期格式化工具函数并统一应用到各个组件

---
 src/views/safeProduction/dangerInvestigation/index.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/views/safeProduction/dangerInvestigation/index.vue b/src/views/safeProduction/dangerInvestigation/index.vue
index a278058..e9ada57 100644
--- a/src/views/safeProduction/dangerInvestigation/index.vue
+++ b/src/views/safeProduction/dangerInvestigation/index.vue
@@ -69,10 +69,12 @@
                          show-overflow-tooltip />
         <el-table-column label="涓婃姤鏃堕棿"
                          prop="createTime"
+                         :formatter="formatDateColumn"
                          show-overflow-tooltip />
         <el-table-column label="鏁存敼瀹屾垚鏈熼檺"
                          prop="rectifyTime"
                          width="120"
+                         :formatter="formatDateColumn"
                          show-overflow-tooltip />
         <el-table-column label="鏁存敼璐d换浜�"
                          prop="rectifyUserName"
@@ -89,6 +91,7 @@
         <el-table-column label="瀹為檯鏁存敼瀹屾垚鏃堕棿"
                          prop="rectifyActualTime"
                          width="120"
+                         :formatter="formatDateColumn"
                          show-overflow-tooltip />
         <el-table-column label="楠屾敹鎰忚"
                          prop="verifyRemark"
@@ -97,6 +100,7 @@
         <el-table-column label="楠屾敹鏃堕棿"
                          prop="verifyTime"
                          width="120"
+                         :formatter="formatDateColumn"
                          show-overflow-tooltip />
         <el-table-column label="楠屾敹缁撴灉"
                          prop="verifyResult"
@@ -296,7 +300,7 @@
           <span class="detail-title">{{ form.createUserName }}</span>
         </el-descriptions-item>
         <el-descriptions-item label="涓婃姤鏃堕棿">
-          <span class="detail-title">{{ form.createTime }}</span>
+          <span class="detail-title">{{ dateOnly(form.createTime) }}</span>
         </el-descriptions-item>
         <el-descriptions-item label="鏁存敼璐d换浜�">
           <span class="detail-title">{{ form.rectifyUserName }}</span>
@@ -305,7 +309,7 @@
           <span class="detail-title">{{ form.rectifyUserMobile }}</span>
         </el-descriptions-item>
         <el-descriptions-item label="鏁存敼瀹屾垚鏈熼檺">
-          <span class="detail-title">{{ form.rectifyTime }}</span>
+          <span class="detail-title">{{ dateOnly(form.rectifyTime) }}</span>
         </el-descriptions-item>
       </el-descriptions>
       <div class="classtitle"
@@ -320,7 +324,7 @@
           <span class="detail-title">{{ form2.rectifyMeasures }}</span>
         </el-descriptions-item>
         <el-descriptions-item label="瀹為檯鏁存敼瀹屾垚鏃堕棿">
-          <span class="detail-title">{{ form2.rectifyActualTime }}</span>
+          <span class="detail-title">{{ dateOnly(form2.rectifyActualTime) }}</span>
         </el-descriptions-item>
       </el-descriptions>
       <div class="classtitle"

--
Gitblit v1.9.3