riku
2024-10-30 d4e7c11e06b643c9353444c839cec40c25945219
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 };