From 6141f7a7e61dacd8b80056b564170415d7fff31a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 17 十月 2026 20:05:58 +0800
Subject: [PATCH] fix(ui): 列表时间统一只展示年月日
---
src/views/mes/tm/tool/data.ts | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/mes/tm/tool/data.ts b/src/views/mes/tm/tool/data.ts
index af2c051..4d4b324 100644
--- a/src/views/mes/tm/tool/data.ts
+++ b/src/views/mes/tm/tool/data.ts
@@ -11,7 +11,7 @@
MesToolStatusEnum,
} from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
-import { formatDateTime } from '@vben/utils';
+import { formatDate } from '@vben/utils';
import { Button } from 'ant-design-vue';
@@ -302,7 +302,7 @@
formatter: ({ row }) => {
if (row.maintenType === MesMaintenTypeEnum.REGULAR) {
return row.nextMaintenDate
- ? formatDateTime(row.nextMaintenDate)
+ ? formatDate(row.nextMaintenDate)
: '-';
}
if (row.maintenType === MesMaintenTypeEnum.USAGE) {
--
Gitblit v1.9.3