whycwx
2021-03-04 61c48f743b7f49736d353cd37e3b403a4ff25ba5
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
export default {
    mapList() {
        return [
            {
                label: '中国',
                StationName1: '',
                StationName2: '',
                StationName5: '',
                adcode: 100000,
                value: 'zhongguo',
            },
            {
                label: '湖北省',
                StationName1: '湖北省',
                StationName2: '',
                StationName5: '',
                adcode: 420000,
                value: 'hubeisheng'
            },
            {
                label: '湖北省-武汉市',
                StationName1: '湖北省',
                StationName2: '',
                StationName5: '',
                adcode: 420100,
                value: 'wuhan'
            },
            {
                label: '广州省-清远市',
                StationName1: '广州省',
                StationName2: '清远市',
                StationName5: '',
                adcode: 441800,
                value: 'qingyuan'
            },
            {
                label: '山西省',
                StationName1: '山西省',
                StationName2: '',
                StationName5: '',
                adcode: 140000,
                value: 'shanxi'
            },
            {
                label: '山西省-太原市',
                StationName1: '山西省',
                StationName2: '太原市',
                StationName5: '',
                adcode: 140100,
                value: 'taiyuan'
            },
            {
                label: '山东省',
                StationName1: '山东省',
                StationName2: '',
                StationName5: '',
                adcode: 370000,
                value: 'shandong'
            },
            {
                label: '山东省-烟台市',
                StationName1: '山东省',
                StationName2: '烟台市',
                StationName5: '',
                adcode: 370000,
                value: 'yantai'
            }
        ];
    },
    getItemByValue(value, list) {
        let result = false;
        for(let i=0; i<list.length; i++) {
            let item = list[i];
            if(item.value == value) {
                result = item;
            }
        }
        return result;
    },
};