feiyu02
2025-05-15 026f17ebafb85250d9ae9b71b80ae5f07341c172
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
function pollutionList() {
  return [
    {
      label: '优',
      value: 1
    },
    {
      label: '良',
      value: 2
    },
    {
      label: '轻度污染',
      value: 3
    },
    {
      label: '中度污染',
      value: 4
    },
    {
      label: '重度污染',
      value: 5
    }
  ];
}
 
function pollutionName(type) {
  return pollutionList().find((v) => v.value == type).label;
}
 
export { pollutionList, pollutionName };