From d6551a0cb85f43e76e9edee23b854ed55696eb44 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期二, 10 九月 2024 14:57:53 +0800
Subject: [PATCH] 1.月计时工资页面开发完成
---
src/utils/global.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/utils/global.js b/src/utils/global.js
index 766ab45..f9e2b79 100644
--- a/src/utils/global.js
+++ b/src/utils/global.js
@@ -22,6 +22,13 @@
return option
}
+// 鏃堕棿澶勭悊鍑芥暟 骞存湀
+export function handleDatetime4(value) {
+ const data = new Date(value)
+ const month = data.getMonth() < 9 ? '0' + (data.getMonth() + 1) : data.getMonth() + 1
+ return data.getFullYear() + '-' + month
+}
+
// 鏃堕棿澶勭悊鍑芥暟 骞存湀鏃�
export function handleDatetime(value) {
const data = new Date(value)
--
Gitblit v1.9.3