Newer
Older
KaiFengPC / src / utils / map.js
@zhangdeliang zhangdeliang on 20 May 309 bytes 项目初始化
export const optTextMap = new Map([
  ['add', '新增'],
  ['edit', '编辑'],
  ['view', '查看']
])

export const statusMap = new Map([
  ['0', { text: '停用', type: 'danger' }],
  ['1', { text: '启用', type: 'success' }]
])

export const standardMap = new Map([
  ['1', '达标'],
  ['2', '评级']
])