故障告警
This commit is contained in:
@ -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}`
|
||||
}
|
||||
|
Reference in New Issue
Block a user