From 47c9eb1a85483773cb1ca1b6a28a5b0aeb553225 Mon Sep 17 00:00:00 2001 From: john Date: Thu, 8 Oct 2026 14:07:27 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20portal=20=E9=82=80=E8=AF=B7=E5=87=BD/?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=87=BD=E6=97=A5=E6=9C=9F=E4=BB=85=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=B9=B4=E6=9C=88=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Code --- ry-vue3/src/views/portal/Invitation.vue | 8 +++++++- ry-vue3/src/views/portal/SupportLetter.vue | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ry-vue3/src/views/portal/Invitation.vue b/ry-vue3/src/views/portal/Invitation.vue index dc75afc..be0b008 100644 --- a/ry-vue3/src/views/portal/Invitation.vue +++ b/ry-vue3/src/views/portal/Invitation.vue @@ -90,7 +90,13 @@ async function load() { } function onSearch() { page.pageNum = 1; load() } function onReset() { q.value = { projectNo: '', title: '' }; onSearch() } -function fmt(t) { return t ? new Date(t).toLocaleString('zh-CN') : '' } +// 只显示年月日, 不显示时分秒 (与 portal/Publicity.vue fmtDate 口径一致) +function fmt(t) { + if (!t) return '' + const d = new Date(t) + const p = n => String(n).padStart(2, '0') + return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())}` +} const detailOpen = ref(false) const current = ref(null) diff --git a/ry-vue3/src/views/portal/SupportLetter.vue b/ry-vue3/src/views/portal/SupportLetter.vue index e4ce946..78943e1 100644 --- a/ry-vue3/src/views/portal/SupportLetter.vue +++ b/ry-vue3/src/views/portal/SupportLetter.vue @@ -79,7 +79,13 @@ async function load() { } function onSearch() { page.pageNum = 1; load() } function onReset() { q.value = { projectNo: '', title: '' }; onSearch() } -function fmt(t) { return t ? new Date(t).toLocaleString('zh-CN') : '' } +// 只显示年月日, 不显示时分秒 (与 portal/Publicity.vue fmtDate 口径一致) +function fmt(t) { + if (!t) return '' + const d = new Date(t) + const p = n => String(n).padStart(2, '0') + return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())}` +} const detailOpen = ref(false) const current = ref(null)