whyczyk
2021-07-21 6e32b8f6cf5dd63eafdb372729b29fb37abaccc6
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
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'
            },
            {
                label: '贵州省',
                StationName1: '贵州省',
                StationName2: '',
                StationName5: '',
                adcode: 520000,
                value: 'guizhousheng'
            },
            {
                label: '河南省-平顶山市',
                StationName1: '河南省',
                StationName2: '平顶山市',
                StationName5: '',
                adcode: 410400,
                value: 'pingdingshan'
            },
            {
                label: "河北省",
                StationName1: '河北省',
                StationName2: '',
                StationName5: '',
                adcode: 130000,
                value: 'hebeisheng'
            },
            {
                label: "河北省-秦皇岛市",
                StationName1: '河北省',
                StationName2: '秦皇岛市',
                StationName5: '',
                adcode: 130300,
                value: 'qinhuangdaoshi'
            },
            {
                label: "云南省",
                StationName1: '云南省',
                StationName2: '',
                StationName5: '',
                adcode: 530000,
                value: 'yunnansheng'
            },
            {
                label: "江苏省",
                StationName1: "江苏省",
                StationName2: '',
                StationName5: '',
                adcode: 320000,
                value: 'jiangsusheng'
            },
            {
                label: "江苏省-苏州市",
                StationName1: "江苏省",
                StationName2: '苏州市',
                StationName5: '',
                adcode: 320500,
                value: 'suzhoushi'
            },
            {
                label: "江苏省-苏州市-吴中区",
                StationName1: "江苏省",
                StationName2: '苏州市',
                StationName5: '吴中区',
                adcode: 320506,
                value: 'suzhouwuzhongqu'
            },
        ];
    },
    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;
    },
};