From 7d0a954d23d21c0cdaff6ed20ad7291b3dbf889a Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 30 六月 2022 17:45:39 +0800
Subject: [PATCH] 1.完成制造模型(工序定义)页面开发
---
src/utils/global.js | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/utils/global.js b/src/utils/global.js
index f636c90..044a6b0 100644
--- a/src/utils/global.js
+++ b/src/utils/global.js
@@ -6,10 +6,11 @@
// 澶勭悊琛ㄥご鍗曞厓鏍兼牱寮�
export function headerCellStyle() {
const option = {
- background: '#eee', padding: '5px 0'
+ background: '#eee', padding: '0'
}
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