loulijun2021
2022-06-24 a271e033ffebf9e95c9ee54fac8891814583571f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 全局主要颜色
export function getGlobalColor() {
  return { globalColor: `#42b983` }
}
 
// 处理表头单元格样式
export function headerCellStyle() {
  const option = {
    background: '#eee', padding: '0'
  }
  return option
}
 
// 处理表格单元格样式
export function cellStyle() {
  const option = {
    padding: '5px 0'
  }
  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
}