diff --git a/src/utils/enum.js b/src/utils/enum.js index c6b6f4b7..66c03736 100644 --- a/src/utils/enum.js +++ b/src/utils/enum.js @@ -106,6 +106,17 @@ export const iMEnum = new EnumFactory({ 30: '都开为开/单停为停', }, parseInt) +export const qTypeEnum = new EnumFactory({ + 10: '单选', + 20: '多选', + 30: '判断', +}, parseInt) + +export const qLevelEnum = new EnumFactory({ + 10: '低', + 20: '中', + 30: '高', +}, parseInt) export const mpointTypeEnum = new EnumFactory({ 10: '自动采集', diff --git a/src/utils/verificate.js b/src/utils/verificate.js index 51c97443..71f523b2 100644 --- a/src/utils/verificate.js +++ b/src/utils/verificate.js @@ -27,6 +27,7 @@ export function genTree(data) { const map = {} data.forEach(item => { item.label = item.name + item.parentId = item.parent if(item.fullname){ item.label = item.fullname }