feat: 添加Enum

This commit is contained in:
caoqianming 2024-06-03 19:15:11 +08:00
parent 239d8202ea
commit 1e77723d6f
2 changed files with 12 additions and 0 deletions

View File

@ -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: '自动采集',

View File

@ -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
}