feat: 添加Enum
This commit is contained in:
parent
239d8202ea
commit
1e77723d6f
|
|
@ -106,6 +106,17 @@ export const iMEnum = new EnumFactory({
|
||||||
30: '都开为开/单停为停',
|
30: '都开为开/单停为停',
|
||||||
}, parseInt)
|
}, parseInt)
|
||||||
|
|
||||||
|
export const qTypeEnum = new EnumFactory({
|
||||||
|
10: '单选',
|
||||||
|
20: '多选',
|
||||||
|
30: '判断',
|
||||||
|
}, parseInt)
|
||||||
|
|
||||||
|
export const qLevelEnum = new EnumFactory({
|
||||||
|
10: '低',
|
||||||
|
20: '中',
|
||||||
|
30: '高',
|
||||||
|
}, parseInt)
|
||||||
|
|
||||||
export const mpointTypeEnum = new EnumFactory({
|
export const mpointTypeEnum = new EnumFactory({
|
||||||
10: '自动采集',
|
10: '自动采集',
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ export function genTree(data) {
|
||||||
const map = {}
|
const map = {}
|
||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
item.label = item.name
|
item.label = item.name
|
||||||
|
item.parentId = item.parent
|
||||||
if(item.fullname){
|
if(item.fullname){
|
||||||
item.label = item.fullname
|
item.label = item.fullname
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue