From c952123dc401b7d480dddeecc8cdad56ca4cf6c3 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期六, 22 八月 2026 17:16:03 +0800
Subject: [PATCH] refactor(collaborativeApproval): 统一日期格式化展示
---
src/views/collaborativeApproval/rulesRegulationsManagement/index.vue | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/views/collaborativeApproval/rulesRegulationsManagement/index.vue b/src/views/collaborativeApproval/rulesRegulationsManagement/index.vue
index f7ba9d9..0d03b33 100644
--- a/src/views/collaborativeApproval/rulesRegulationsManagement/index.vue
+++ b/src/views/collaborativeApproval/rulesRegulationsManagement/index.vue
@@ -144,7 +144,7 @@
<el-descriptions-item label="鍒嗙被">{{ getCategoryText(currentRegulationDetail.category) }}</el-descriptions-item>
<el-descriptions-item label="鐗堟湰">{{ currentRegulationDetail.version }}</el-descriptions-item>
<el-descriptions-item label="鍙戝竷浜�">{{ currentRegulationDetail.createUserName }}</el-descriptions-item>
- <el-descriptions-item label="鍙戝竷鏃堕棿">{{ currentRegulationDetail.createTime }}</el-descriptions-item>
+ <el-descriptions-item label="鍙戝竷鏃堕棿">{{ formatDate(currentRegulationDetail.createTime) }}</el-descriptions-item>
</el-descriptions>
<div class="mt-20">
<h4>鍒跺害鍐呭</h4>
@@ -235,6 +235,10 @@
addRuleFile,
} from "@/api/collaborativeApproval/rulesRegulationsManagementFile.js";
import PIMTable from "@/components/PIMTable/PIMTable.vue";
+ import { parseDate } from "@/utils/ruoyi";
+
+ // 鏃ユ湡鍥炴樉鏍煎紡鍖栵紙YYYY-MM-DD锛�
+ const formatDate = value => parseDate(value) || "-";
// 鍝嶅簲寮忔暟鎹�
const operationType = ref("add");
@@ -309,7 +313,7 @@
},
{ label: "鐗堟湰", prop: "version", width: 120 },
{ label: "鍙戝竷浜�", prop: "createUserName", width: 120 },
- { label: "鍙戝竷鏃堕棿", prop: "createTime", width: 180 },
+ { label: "鍙戝竷鏃堕棿", prop: "createTime", width: 180,dataType: "date" },
{
label: "鐘舵��",
prop: "status",
--
Gitblit v1.9.3