From dc7ec3f6693f39779ef748c1f832860010fe73e5 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期四, 15 一月 2026 15:07:21 +0800
Subject: [PATCH] 1.甘特图递交

---
 src/utils/global.js |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/utils/global.js b/src/utils/global.js
index b121552..6669882 100644
--- a/src/utils/global.js
+++ b/src/utils/global.js
@@ -41,6 +41,23 @@
   return data.getFullYear() + '-' + month + '-' + date
 }
 
+// 鏃堕棿澶勭悊鍑芥暟  骞存湀鏃�  鏃跺垎绉�  寰�鍓嶆帹涓�澶�
+export function handleDateReduceOneDay(value) {
+  const newDate = new Date(value)
+  newDate.setDate(newDate.getDate() - 1)
+  const dt = new Date(newDate)
+  const wk = dt.getDay()
+  const y = dt.getFullYear()
+  const m = (dt.getMonth() + 1 + '').padStart(2, '0')
+  const d = (dt.getDate() + '').padStart(2, '0')
+
+  const hh = (dt.getHours() + '').padStart(2, '0')
+  const mm = (dt.getMinutes() + '').padStart(2, '0')
+  const ss = (dt.getSeconds() + '').padStart(2, '0')
+
+  return `${y}-${m}-${d}  ${hh}:${mm}:${ss}`
+}
+
 // 浜嬩欢澶勭悊鍑芥暟  鏃跺垎绉�
 // 鑾峰彇褰撳墠鏃堕棿
 export function handleDatetime2(value) {

--
Gitblit v1.9.3