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

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

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