From fb06bc8357972af6aae9774bd5f4d4c11d78bec6 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 21 Jan 2023 20:54:33 +0800 Subject: [PATCH] =?UTF-8?q?bpm=EF=BC=9A=E5=A2=9E=E5=8A=A0=20OA=20=E8=AF=B7?= =?UTF-8?q?=E5=81=87=E7=9A=84=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/plugins/vxeTable/index.ts | 10 +++- .../src/views/bpm/oa/leave/detail.vue | 55 +++++++------------ .../src/views/bpm/oa/leave/index.vue | 42 +++++++------- .../src/views/bpm/oa/leave/leave.data.ts | 10 +++- 4 files changed, 58 insertions(+), 59 deletions(-) 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 @@