Newer
Older
Nanping_sponge_GCYPG / src / views / home / rationality / map.js
@liyingjing liyingjing on 25 Oct 2023 656 bytes 工程预评估
export const standardMap = new Map([
  [0, { text: '否', type: 'danger' }],
  [1, { text: '是', type: 'success' }]
])

export const standardTextMap = new Map([
  [0, { text: '不达标', type: 'danger' }],
  [1, { text: '达标', type: 'success' }]
])

export const verticalRationalityMap = new Map([
  [-1, { text: '存在不合理', type: 'danger' }],
  [0, { text: '合理', type: 'success' }],
  [1, { text: '不合理', type: 'danger' }]
])

export const levelMap = new Map([
  ['优', { text: '优', type: 'success' }],
  ['良', { text: '良', type: '' }],
  ['中', { text: '中', type: 'warning' }],
  ['差', { text: '差', type: 'danger' }]
])