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