export const dictionaryDefine = { //接口参数 : [ '字典数据list名', '字典数据Map名', '字段数据ObjMap名' ], label_type: ['labelTypeList', 'labelTypeMap'], // 标签类型 label_level: ['labelLevelList', 'labelLevelMap'], // 标签层级 gx_method: ['gxMethodList', 'gxMethodMap'], // 共享方式 gx_cycle: ['gxCycleList', 'gxCycleMap'], // 共享周期 theme_mode: ['themeModeList', 'themeModeMap'], // 主题模式 default_model: ['defaultModelList', 'defaultModelMap'], // 默认模式 true_false: ['trueFalseList', 'trueFalseMap'], // 是否 fie_type: ['fieTypeList', 'fieTypeMap'], // 字段类型 analyzer: ['analyzerList', 'analyzerMap'], // 分词器 user_status: ['userStatusList', 'userStatusMap'], // 用户状态 role_status: ['roleStatusList', 'roleStatusMap'], // 字典状态 theme_type: ['themeTypeList', 'themeTypeMap'], // 主题类别 theme_status: ['themeStatusList', 'themeStatusMap'], // 主题状态 node_size: ['nodeSizeList', 'nodeSizeMap'], // 关系图谱节点大小 condition_type: ['conditionTypeList', 'conditionTypeMap'], // 条件类型 is_main_index: ['isMainIndexList', 'isMainIndexMap'], // 是否主索引 sort_type: ['sortTypeList', 'sortTypeMap'], // 排序类型 } const stateMap = {} Object.keys(dictionaryDefine).map(i => { stateMap[dictionaryDefine[i][0]] = [] stateMap[dictionaryDefine[i][1]] = new Map() }) export const dictionary = stateMap