diff --git a/yudao-ui-admin-vue3/src/plugins/vxeTable/index.ts b/yudao-ui-admin-vue3/src/plugins/vxeTable/index.ts index 9576e8175..6b61bb5c6 100644 --- a/yudao-ui-admin-vue3/src/plugins/vxeTable/index.ts +++ b/yudao-ui-admin-vue3/src/plugins/vxeTable/index.ts @@ -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') diff --git a/yudao-ui-admin-vue3/src/views/bpm/oa/leave/detail.vue b/yudao-ui-admin-vue3/src/views/bpm/oa/leave/detail.vue index 9e351e255..41e011b0e 100644 --- a/yudao-ui-admin-vue3/src/views/bpm/oa/leave/detail.vue +++ b/yudao-ui-admin-vue3/src/views/bpm/oa/leave/detail.vue @@ -1,54 +1,37 @@ diff --git a/yudao-ui-admin-vue3/src/views/bpm/oa/leave/index.vue b/yudao-ui-admin-vue3/src/views/bpm/oa/leave/index.vue index c25e52c4b..c6cd4875c 100644 --- a/yudao-ui-admin-vue3/src/views/bpm/oa/leave/index.vue +++ b/yudao-ui-admin-vue3/src/views/bpm/oa/leave/index.vue @@ -1,24 +1,26 @@