dictionary.js 575 Bytes
/*
 * @Description: 
 * @Autor: renchao
 * @LastEditTime: 2023-07-03 08:59:06
 */
import store from '@/store'
export function getSjlx (level) {
  const resultMap = {
    1: '系统数据',
    2: '存量数据',
    3: '补录数据',
  }
  return resultMap[level] || resultMap.default;
}

export function getDictLeabel (level, code) {
  const resultMap = store.getters.dictData[code]
  const desiredObject = resultMap.find(obj => obj.dcode === level);

  if (desiredObject) {
    const desiredName = desiredObject.dname;
    return desiredName
  } else {
    return ''
  }
}