Newer
Older
Nanping_sponge_GCYPG / src / views / preassess / noopReview / map.js
@liyingjing liyingjing on 25 Oct 2023 1 KB 工程预评估
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' }]
])

export const statusMap = new Map([
  ['0', { text: '审查中', type: 'warning' }],
  ['1', { text: '已提交', type: 'success' }]
])

export const cadParseStatusMap = new Map([
  ['queue', { text: '排队中', type: 'info' }],
  ['process', { text: '解析中', type: 'warning' }],
  ['success', { text: '解析成功', type: 'success' }],
  ['failure', { text: '解析失败', type: 'danger' }]
])