whyczyk
2022-03-02 733823ffa701f749c7154cacf60a26951891f2ca
public/mapJson/js/index.js
@@ -102,8 +102,16 @@
                StationName1: '山东省',
                StationName2: '烟台市',
                StationName5: '',
                adcode: 370000,
                adcode: 370600,
                value: 'yantai'
            },
            {
                label: '山东省-临沂市',
                StationName1: '山东省',
                StationName2: '临沂市',
                StationName5: '',
                adcode: 371300,
                value: 'linyishi'
            },
            {
                label: '贵州省',
@@ -162,6 +170,14 @@
                value: 'suzhoushi'
            },
            {
                label: "江苏省-无锡市",
                StationName1: "江苏省",
                StationName2: '无锡市',
                StationName5: '',
                adcode: 320200,
                value: 'wuxishi'
            },
            {
                label: "江苏省-苏州市-吴中区",
                StationName1: "江苏省",
                StationName2: '苏州市',
@@ -176,14 +192,94 @@
                StationName5: '',
                adcode: 220000,
                value: 'jilinsheng'
            },
            {
                label: "内蒙古自治区",
                StationName1: "内蒙古自治区",
                StationName2: '',
                StationName5: '',
                adcode: 150000,
                value: 'neimengguzizhiqu'
            },
            {
                label: "内蒙古自治区-通辽市",
                StationName1: "内蒙古自治区",
                StationName2: '通辽市',
                StationName5: '',
                adcode: 150500,
                value: 'tongliaoshi'
            },
            {
                label: "广西壮族自治区",
                StationName1: "广西壮族自治区",
                StationName2: "",
                StationName5: "",
                adcode: 450000,
                value: "guangxizhuangzuzizhiqu"
            },
            {
                label: "广西壮族自治区-百色市",
                StationName1: "广西壮族自治区",
                StationName2: "百色市",
                StationName5: "",
                adcode: 451000,
                value: "baiseshi"
            },
            {
                label: "辽宁省",
                StationName1: "辽宁省",
                StationName2: "",
                StationName5: "",
                adcode: 210000,
                value: "liaoningsheng"
            },
            {
                label: "辽宁省-本溪市",
                StationName1: "辽宁省",
                StationName2: "本溪市",
                StationName5: "",
                adcode: 210500,
                value: "benxishi"
            },
            {
                label: "辽宁省-大连市",
                StationName1: "辽宁省",
                StationName2: "大连市",
                StationName5: "",
                adcode: 210200,
                value: "dalianshi"
            },
            {
                label: "福建省",
                StationName1: "福建省",
                StationName2: "",
                StationName5: "",
                adcode: 350000,
                value: "fujiansheng"
            },
            {
                label: "福建省-福州市",
                StationName1: "福建省",
                StationName2: "福州市",
                StationName5: "",
                adcode: 350100,
                value: "fuzhoushi"
            },
            {
                label: "四川省",
                StationName1: "四川省",
                StationName2: "",
                StationName5: "",
                adcode: 510000,
                value: "sichuansheng"
            }
        ];
    },
    getItemByValue(value, list) {
        let result = false;
        for(let i=0; i<list.length; i++) {
        for (let i = 0; i < list.length; i++) {
            let item = list[i];
            if(item.value == value) {
            if (item.value == value) {
                result = item;
            }
        }