From 6c8bfe23b583ae5dda7c162ce4c94298cc932878 Mon Sep 17 00:00:00 2001 From: monkeyhouyi Date: Tue, 3 Dec 2024 11:21:19 +0800 Subject: [PATCH] 时间过滤器 --- src/utils/ncc.js | 5 +++++ src/views/basePrincipalResponsibility/index.vue | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/utils/ncc.js b/src/utils/ncc.js index be7410b..94624c2 100644 --- a/src/utils/ncc.js +++ b/src/utils/ncc.js @@ -218,6 +218,11 @@ const ncc = { if (!cellValue) return '' return dayjs(cellValue).format(format) }, + tableDateFormatDay(row, column, cellValue) { + let format = 'YYYY-MM-DD' + if (!cellValue) return '' + return dayjs(cellValue).format(format) + }, timeDeadLine(time){ let date = (new Date()).getTime(); let timeDiff = time - date; diff --git a/src/views/basePrincipalResponsibility/index.vue b/src/views/basePrincipalResponsibility/index.vue index 5fc13d8..4772670 100644 --- a/src/views/basePrincipalResponsibility/index.vue +++ b/src/views/basePrincipalResponsibility/index.vue @@ -34,14 +34,14 @@
- + - + - + -- libgit2 0.21.4