From 6a0907fce051418977f2d02ac408d890c28ee273 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期二, 18 八月 2026 09:51:34 +0800
Subject: [PATCH] fix: 日期格式化
---
src/views/safeProduction/dangerInvestigation/index.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/views/safeProduction/dangerInvestigation/index.vue b/src/views/safeProduction/dangerInvestigation/index.vue
index 1c74d75..1519ab7 100644
--- a/src/views/safeProduction/dangerInvestigation/index.vue
+++ b/src/views/safeProduction/dangerInvestigation/index.vue
@@ -86,7 +86,11 @@
prop="createTime"
width="180"
align="center"
- show-overflow-tooltip />
+ show-overflow-tooltip>
+ <template #default="scope">
+ {{ formatDate(scope.row.createTime) }}
+ </template>
+ </el-table-column>
<el-table-column label="鏁存敼瀹屾垚鏈熼檺"
prop="rectifyTime"
width="120"
@@ -326,7 +330,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">{{ formatDate(form.createTime) }}</span>
</el-descriptions-item>
<el-descriptions-item label="鏁存敼璐d换浜�">
<span class="detail-title">{{ form.rectifyUserName }}</span>
@@ -553,6 +557,7 @@
const userStore = useUserStore();
const { proxy } = getCurrentInstance();
+ const formatDate = date => (date ? dayjs(date).format("YYYY-MM-DD") : "");
const tableData = ref([]);
const selectedRows = ref([]);
const userList = ref([]);
--
Gitblit v1.9.3