From d8eda80eaf2f328ed43dc4f5c783b7dee5a4092c Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期六, 12 十月 2024 17:39:39 +0800
Subject: [PATCH] 1. 新增巡查计划功能(待完成); 2. 完成任务的各场景下的分别移除和添加;
---
src/utils/time-util.js | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/utils/time-util.js b/src/utils/time-util.js
index 9f62dcb..951116b 100644
--- a/src/utils/time-util.js
+++ b/src/utils/time-util.js
@@ -13,6 +13,14 @@
}
},
+ formatYM(date){
+ if (date) {
+ return this.format(date, 'YYYY-MM')
+ } else {
+ return '----/--'
+ }
+ },
+
formatYMD(date){
if (date) {
return this.format(date, 'YYYY-MM-DD')
--
Gitblit v1.9.3