dictionary-define.ts 446 B

12345678910111213
  1. export const dictionaryDefine = {
  2. //接口参数 : [ '字典数据list名', '字典数据Map名', '字段数据ObjMap名' ],
  3. label_type: ['labelTypeList', 'labelTypeMap'], // 标签类型
  4. label_level: ['labelLevelList', 'labelLevelMap'], // 标签层级
  5. }
  6. const stateMap = {}
  7. Object.keys(dictionaryDefine).map(i => {
  8. stateMap[dictionaryDefine[i][0]] = []
  9. stateMap[dictionaryDefine[i][1]] = new Map()
  10. })
  11. export const dictionary = stateMap