loulijun2021
2023-06-03 f1ee5a9bc88eff3a75245569e091fe352a452922
src/utils/global.js
@@ -1,4 +1,4 @@
import { NewEncodingRules } from '@/api/xtsz'
import { NewEncodingRules } from '@/api/systemSettings'
// 全局主要颜色
export function getGlobalColor() {
@@ -50,6 +50,13 @@
  // return `${y}-${m}-${d}  ${hh}:${mm}:${ss}   ${week}`
  return `${y}-${m}-${d}  ${hh}:${mm}:${ss}`
}
// 时间处理函数   返回 时分
export function handleDatetime3(value) {
  const dt = new Date(value)
  const hh = (dt.getHours() + '').padStart(2, '0')
  const mm = (dt.getMinutes() + '').padStart(2, '0')
  return `${hh}:${mm}`
}
// 获取规则生成的编码
export async function getNewEncodingRules(encode) {