loulijun2021
2022-06-24 a271e033ffebf9e95c9ee54fac8891814583571f
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
}