filter.js 168 B

123456789
  1. export function dictFilter(val, arr){
  2. let label = ""
  3. arr.forEach(item => {
  4. if (val === Number(item.dictValue)) {
  5. label = item.dictLabel
  6. }
  7. })
  8. return label;
  9. }