bugfix: 修复日期为空时的问题

This commit is contained in:
nightdays 2025-11-14 15:24:21 +08:00
parent 0e400727ec
commit 2c0203c7e8

View File

@ -119,7 +119,7 @@ const showDataConfig = ref({
{ {
"label": "购置日期", "name": "gzrq", "label": "购置日期", "name": "gzrq",
"value": (item) => { "value": (item) => {
return formatDate(item.gzrq) return item.gzrq ? formatDate(item.gzrq) : ''
} }
}, },
{ "label": "购买费用(万元)", "name": "gmfy" }, { "label": "购买费用(万元)", "name": "gmfy" },
@ -143,7 +143,7 @@ const showDataConfig = ref({
{ {
"label": "上报时间", "label": "上报时间",
"value": (item) => { "value": (item) => {
return formatDate(item.reportTime) return item.reportTime ? formatDate(item.reportTime) : ''
} }
}, },
{ {