src/utils/global.js
@@ -1,3 +1,5 @@ import { NewEncodingRules } from '@/api/xtsz' // 全局主要颜色 export function getGlobalColor() { return { globalColor: `#42b983` } @@ -26,3 +28,11 @@ const date = data.getDate() <= 9 ? '0' + data.getDate() : data.getDate() return data.getFullYear() + '-' + month + '-' + date } // 获取规则生成的编码 export async function getNewEncodingRules(encode) { const res = await NewEncodingRules({ rightcode: encode }) if (res.code === '200') { return { RightCode: res.data[0], numvalue: res.data[1] } } }