fix: portal 邀请函/支持函日期仅显示年月日
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user