loulijun2021
2023-03-24 751e1ab5443369f8de9a75cccbaaf74cefb231af
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) {