From e846eefa54a7a2274a34d43d4601e192a1ada3d9 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期六, 25 六月 2022 13:16:07 +0800
Subject: [PATCH] 1.项目整体样式的配置2.实现工艺设置动态添加的静态样式
---
src/utils/global.js | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/utils/global.js b/src/utils/global.js
index ae431e0..044a6b0 100644
--- a/src/utils/global.js
+++ b/src/utils/global.js
@@ -10,6 +10,7 @@
}
return option
}
+
// 澶勭悊琛ㄦ牸鍗曞厓鏍兼牱寮�
export function cellStyle() {
const option = {
@@ -17,3 +18,11 @@
}
return option
}
+
+// 鏃堕棿澶勭悊鍑芥暟
+export function handleDatatime(value) {
+ const data = new Date(value)
+ const month = data.getMonth() < 9 ? '0' + (data.getMonth() + 1) : data.getMonth() + 1
+ const date = data.getDate() <= 9 ? '0' + data.getDate() : data.getDate()
+ return data.getFullYear() + '-' + month + '-' + date
+}
--
Gitblit v1.9.3