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
| export const deviceDictList = [
| {
| label: "次生仪",
| value: "1437295832",
| },
| {
| label: "雨量计",
| value: "1437295810",
| },
| {
| label: "摄像头",
| value: "1437295825",
| },
| {
| label: "含水率",
| value: "1437295822",
| },
| {
| label: "泥位计",
| value: "1437295811",
| },
| {
| label: "编码器",
| value: "1437295815",
| },
| {
| label: "流速仪",
| value: "1437295821",
| },
| {
| label: "墒情",
| value: "14372958380",
| },
| ]
|
| export function getDictName(dictList, value) {
| const dict = dictList.find(item => item.value === value)
| return dict ? dict.label : ""
| }
|
|