故障告警

This commit is contained in:
白菜
2025-07-01 14:11:41 +08:00
parent 46490aebee
commit 9b78635fd8
3 changed files with 56 additions and 14 deletions

View File

@ -4,3 +4,11 @@ export const formatNumber = (val) => {
return val
}else {return '-'}
}
export const formatDate = (val) => {
if(!val) return ''
const date = new Date(val)
const month = date.getMonth() + 1,day = date.getDate()
return `${date.getFullYear()}-${month<10?'0'+month : month}-${day<10 ? '0'+day : day}`
}