dictionary-define.ts 391 B

123456789101112
  1. export const dictionaryDefine = {
  2. //接口参数 : [ '字典数据list名', '字典数据Map名', '字段数据ObjMap名' ],
  3. sys_role_type: ['sysRoleTypeList', 'sysRoleTypeMap'], // 角色所属分类
  4. }
  5. const stateMap = {}
  6. Object.keys(dictionaryDefine).map(i => {
  7. stateMap[dictionaryDefine[i][0]] = []
  8. stateMap[dictionaryDefine[i][1]] = new Map()
  9. })
  10. export const dictionary = stateMap