1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
| const dustDeviceType = [
| {
| label: '扬尘监测',
| value: '1',
| children: [
| {
| label: '扬尘监测',
| value: '1',
| },
| ],
| },
| ];
|
| const fumeDeviceType = [
| {
| label: '油烟监测',
| value: '1',
| children: [
| {
| label: '油烟监测',
| value: '1',
| },
| ],
| },
| ];
|
| const vocDeviceType = [
| {
| label: 'VOC监测',
| value: '1',
| children: [
| {
| label: 'VOC监测',
| value: '1',
| },
| ],
| },
| ];
|
| // 监测设备类型
| function monitorDevices(sceneType) {
| switch (sceneType) {
| // 工地,码头,搅拌站,堆场
| case '1':
| case '2':
| case '3':
| case '14':
| return dustDeviceType;
| // 餐饮
| case '5':
| return fumeDeviceType;
| // 工业企业,汽修
| case '4':
| case '6':
| return vocDeviceType;
| default:
| return dustDeviceTypebreak;
| }
| }
|
| export { monitorDevices };
|
|