bpm:增加 OA 请假的详情

This commit is contained in:
YunaiV
2023-01-21 20:54:33 +08:00
parent b4e86430a3
commit fb06bc8357
4 changed files with 58 additions and 59 deletions

View File

@ -135,7 +135,15 @@ VXETable.setup({
})
// 自定义全局的格式化处理函数
VXETable.formats.mixin({
// 格式日期,默认 yyyy-MM-dd HH:mm:ss
// 格式精简日期,默认 yyyy-MM-dd HH:mm:ss
formatDay({ cellValue }, format) {
if (cellValue != null) {
return XEUtils.toDateString(cellValue, format || 'yyyy-MM-dd')
} else {
return ''
}
},
// 格式完整日期,默认 yyyy-MM-dd HH:mm:ss
formatDate({ cellValue }, format) {
if (cellValue != null) {
return XEUtils.toDateString(cellValue, format || 'yyyy-MM-dd HH:mm:ss')