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)