import monitor from './monitorDevice'; import treatment from './treatmentDevice'; import production from './productionDevice'; function enumDevice() { return [ { value: 0, label: '监控设备' }, { value: 1, label: '治理设备' }, { value: 2, label: '生产设备' } ]; } function toLabel(sceneType, deviceType, valueArr) { switch (deviceType + '') { case '0': return monitor.toLabel(sceneType, valueArr); case '1': return treatment.toLabel(sceneType, valueArr); case '2': return production.toLabel(sceneType, valueArr); } } export { enumDevice, toLabel };