diff --git a/src/utils/enum.js b/src/utils/enum.js index ebb6dc50..e3f3cc79 100644 --- a/src/utils/enum.js +++ b/src/utils/enum.js @@ -85,4 +85,16 @@ export const eqTypeEnum = new EnumFactory({ 30: { text: '治理设备', type: 'warning' }, 40: { text: '监测设备', type: 'danger' }, 50: { text: '监控设备', type: 'info' }, -}, parseInt) \ No newline at end of file +}, parseInt) + +export const valTypeEnum = new EnumFactory({ + 'int': '整型', + 'float': '浮点型', + 'str': '字符串型', + 'bool': '布尔型', +}) + +export const boolEnum = new EnumFactory({ + true: '是', + false: '否', +}) \ No newline at end of file