Newer
Older
KaiFengPC / src / views / preassess / evaluation / map.js
@zhangdeliang zhangdeliang on 23 May 539 bytes 初始化项目
export const standardMap = new Map([
  [0, { text: '不达标', type: 'danger' }],
  [1, { text: '达标', type: 'success' }]
])

export const levelMap = new Map([
  [1, { text: '一星级', type: 'warning' }],
  [2, { text: '二星级', type: 'warning' }],
  [3, { text: '三星级', type: 'warning' }],
  [0, { text: '不予评分', type: 'danger' }],
  [-1, { text: '不达标', type: 'danger' }]
])

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