update timeFilter

This commit is contained in:
2022-09-01 09:16:51 +08:00
parent 3668f92731
commit 2df5897f3d
36 changed files with 91 additions and 90 deletions

View File

@@ -1,7 +1,12 @@
/** filters */
import moment from 'moment'
export const dictFilter = dictTypeId => {
return val => {
return JSON.parse(localStorage.getItem('dictList'))[dictTypeId].find(item => item.dictValue === val)?.dictLabel || '-'
}
}
}
export const timeFilter = (val) => {
return moment(val).format('YYYY-MM-DD HH:mm:ss')
}