util.js 421 Bytes
export function isEmpty(data) {
  return (data ?? '') === ''
}

export function filterStr(val, dataList, hireType) {
  if (isEmpty(val)) return '-'
  if (hireType == 2 && val == 9) return '区域督导'
  const staffStr = `${val}`?.split(',')
  let result = staffStr?.map(v => {
    const found = dataList?.find(item => item.confId == v)
    return found?.confValue
  })
  return result?.length ? result.join(',') : '-'
}