From e9e36537d78a68616df9106a730af036b2856797 Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Fri, 19 Sep 2025 10:17:06 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=AC=AC=E4=B8=89=E6=96=B9?=
=?UTF-8?q?=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=8C=96=E5=B7=A5=E5=85=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mixins/donation-mixin.js | 13 +-
pages/memorial/compositons/enshrinedList.vue | 606 +++++++++---------
.../compositons/enshrinedListIndex.vue | 606 +++++++++---------
3 files changed, 621 insertions(+), 604 deletions(-)
diff --git a/pages/institutionalStructure/mixins/donation-mixin.js b/pages/institutionalStructure/mixins/donation-mixin.js
index 8a34b27..b014fdb 100644
--- a/pages/institutionalStructure/mixins/donation-mixin.js
+++ b/pages/institutionalStructure/mixins/donation-mixin.js
@@ -91,12 +91,13 @@ export const donationMixin = {
* @returns {string} 格式化后的日期
*/
formatDate(dateStr) {
- if (!dateStr) return "";
- const date = new Date(dateStr);
- const year = date.getFullYear();
- const month = String(date.getMonth() + 1).padStart(2, "0");
- const day = String(date.getDate()).padStart(2, "0");
- return `${year}/${month}/${day}`;
+ return this.$u.date(dateStr, "yyyy-MM-dd");
+ // if (!dateStr) return "";
+ // const date = new Date(dateStr);
+ // const year = date.getFullYear();
+ // const month = String(date.getMonth() + 1).padStart(2, "0");
+ // const day = String(date.getDate()).padStart(2, "0");
+ // return `${year}/${month}/${day}`;
},
/**
diff --git a/pages/memorial/compositons/enshrinedList.vue b/pages/memorial/compositons/enshrinedList.vue
index 590bddf..635ed83 100644
--- a/pages/memorial/compositons/enshrinedList.vue
+++ b/pages/memorial/compositons/enshrinedList.vue
@@ -16,10 +16,16 @@
class="table-row"
@click="handleItemClick(item)"
>
- {{ item.worshiperName || '未知' }}
- {{ formatDate(item.startDate) }}
+ {{
+ item.worshiperName || "未知"
+ }}
+ {{
+ formatDate(item.startDate)
+ }}
{{ formatDate(item.endDate) }}
- {{ item.thaliName || '未知类型' }}
+ {{
+ item.thaliName || "未知类型"
+ }}
@@ -42,324 +48,326 @@
diff --git a/pages/memorial/compositons/enshrinedListIndex.vue b/pages/memorial/compositons/enshrinedListIndex.vue
index 652054b..b3a1d9c 100644
--- a/pages/memorial/compositons/enshrinedListIndex.vue
+++ b/pages/memorial/compositons/enshrinedListIndex.vue
@@ -16,10 +16,16 @@
class="table-row"
@click="handleItemClick(item)"
>
- {{ item.worshiperName || '未知' }}
- {{ formatDate(item.startDate) }}
+ {{
+ item.worshiperName || "未知"
+ }}
+ {{
+ formatDate(item.startDate)
+ }}
{{ formatDate(item.endDate) }}
- {{ item.thaliName || '未知类型' }}
+ {{
+ item.thaliName || "未知类型"
+ }}
@@ -42,324 +48,326 @@