Element UI 搜索树(tree),回显
效果图
回显
选择
provinces 是后台返回数据,处理完之后的tree的数据
cityData 是 select 回显的数组
checkedList 选中数据的key值
filterText 输入的数据
回显代码
<el-select v-model="formData.sendBlindArea" placeholder="搜索结果" multiple disabled>
<el-option
v-for="(item, index) of cityData"
:key="index"
:value="item.id"
:label="item.name"
></el-option>
</el-select>
搜索树代码
<el-input
placeholder="支持搜索省/市/区号"
v-model="filterText">
<el-button slot="append" @click="filterProvinces">搜索</el-button>
<el-button slot="append" @click="resetChecked">重置</el-button>
</el-input>
<div style="height: 400px; overflow: auto;">
<el-tree
ref="tree"
class="filter-tree"
node-key="value"
show-checkbox
:data="provinces"
:filter-node-method="filterNode"
:default-checked-keys="checkedList"
:props="defaultProps"
@check-change="handleCheckChange">
</el-tree>
</div>
data 定义变量
// 发送盲区
checkedList: [],
provinces: [],
cityData: [],
filterText: ''
JS 操作树方法
// 树的操作
filterNode(value, data) {
if (!value) return true
return data.label.indexOf(value) !== -1 || data.areaCode && data.areaCode.includes(value)
},
handleCheckChange() {
this.checkedList = this.$refs.tree.getCheckedKeys().filter(item => { return item && typeof item === 'number' })
console.log(this.checkedList, 'checkedList')
this.$set(this.formData, 'sendBlindArea', this.checkedList)
},
handleClose(type) {
this.dialogVisible = false
},
// 搜索
filterProvinces() {
this.$refs.tree.filter(this.filterText)
},
// 重置
resetChecked() {
for (var i = 0; i < this.$refs.tree.store._getAllNodes().length; i++) {
if (this.$refs.tree.store._getAllNodes()[i].id !== 1) {
this.$refs.tree.store._getAllNodes()[i].expanded = false
}
}
this.filterText = ''
this.checkedList = []
this.$set(this.formData, 'sendBlindArea', [])
this.$refs.tree.setCheckedKeys([])
this.filterProvinces()
},
初始化树数据方法
let provinces = res.data.provinces
provinces.forEach((item) => {
if (item) {
item.label = item.name
item.value = item.name
item.children = item.cities
delete item.name
delete item.cities
}
})
provinces.forEach((item) => {
if (item) {
item.children.forEach((i) => {
this.cityData.push({
...i
})
i.value = i.id
i.label = i.name
delete i.id
delete i.name
})
}
})
this.provinces = provinces
后台返回的数据
const res = {
"code": 1,
"data": {
"provinces": [
{
"cities": [
{
"areaCode": "0546",
"id": 105,
"name": "东营"
},
{
"areaCode": "0539",
"id": 106,
"name": "临沂"
},
{
"areaCode": "0631",
"id": 107,
"name": "威海"
},
{
"areaCode": "0534",
"id": 108,
"name": "德州"
},
{
"areaCode": "0633",
"id": 109,
"name": "日照"
},
{
"areaCode": "0632",
"id": 110,
"name": "枣庄"
},
{
"areaCode": "0538",
"id": 111,
"name": "泰安"
},
{
"areaCode": "0531",
"id": 112,
"name": "济南"
},
{
"areaCode": "0537",
"id": 113,
"name": "济宁"
},
{
"areaCode": "0533",
"id": 114,
"name": "淄博"
},
{
"areaCode": "0543",
"id": 115,
"name": "滨州"
},
{
"areaCode": "0536",
"id": 116,
"name": "潍坊"
},
{
"areaCode": "0535",
"id": 117,
"name": "烟台"
},
{
"areaCode": "0635",
"id": 118,
"name": "聊城"
},
{
"areaCode": "0634",
"id": 119,
"name": "莱芜"
},
{
"areaCode": "0530",
"id": 120,
"name": "菏泽"
},
{
"areaCode": "0532",
"id": 121,
"name": "青岛"
}
],
"name": "山东"
},
{
"cities": [
{
"areaCode": "0598",
"id": 309,
"name": "三明"
},
{
"areaCode": "0599",
"id": 310,
"name": "南平"
},
{
"areaCode": "0592",
"id": 311,
"name": "厦门"
},
{
"areaCode": "0593",
"id": 312,
"name": "宁德"
},
{
"areaCode": "0595",
"id": 313,
"name": "泉州"
},
{
"areaCode": "0596",
"id": 314,
"name": "漳州"
},
{
"areaCode": "0591",
"id": 315,
"name": "福州"
},
{
"areaCode": "0594",
"id": 316,
"name": "莆田"
},
{
"areaCode": "0597",
"id": 317,
"name": "龙岩"
}
],
"name": "福建"
},
{
"cities": [
{
"areaCode": "0398",
"id": 224,
"name": "三门峡"
},
{
"areaCode": "0376",
"id": 225,
"name": "信阳"
},
{
"areaCode": "0376",
"id": 226,
"name": "信阳/潢川"
},
{
"areaCode": "0377",
"id": 227,
"name": "南阳"
},
{
"areaCode": "0394",
"id": 228,
"name": "周口"
},
{
"areaCode": "0370",
"id": 229,
"name": "商丘"
},
{
"areaCode": "0372",
"id": 230,
"name": "安阳"
},
{
"areaCode": "0375",
"id": 231,
"name": "平顶山"
},
{
"areaCode": "0371",
"id": 232,
"name": "开封"
},
{
"areaCode": "0373",
"id": 233,
"name": "新乡"
},
{
"areaCode": "0379",
"id": 234,
"name": "洛阳"
},
{
"areaCode": "0391",
"id": 235,
"name": "济源"
},
{
"areaCode": "0395",
"id": 236,
"name": "漯河"
},
{
"areaCode": "0376",
"id": 237,
"name": "潢川"
},
{
"areaCode": "0393",
"id": 238,
"name": "濮阳"
},
{
"areaCode": "0391",
"id": 239,
"name": "焦作"
},
{
"areaCode": "0391",
"id": 240,
"name": "焦作济源"
},
{
"areaCode": "0374",
"id": 241,
"name": "许昌"
},
{
"areaCode": "0371",
"id": 242,
"name": "郑州"
},
{
"areaCode": "0371",
"id": 243,
"name": "郑州/开封"
},
{
"areaCode": "0396",
"id": 244,
"name": "驻马店"
},
{
"areaCode": "0392",
"id": 245,
"name": "鹤壁"
}
],
"name": "河南"
},
{
"cities": [
{
"areaCode": "0311",
"id": 211,
"name": "保定"
},
{
"areaCode": "0312",
"id": 212,
"name": "保定"
},
{
"areaCode": "0315",
"id": 213,
"name": "唐山"
},
{
"areaCode": "0316",
"id": 214,
"name": "廊坊"
},
{
"areaCode": "0313",
"id": 215,
"name": "张家口"
},
{
"areaCode": "0314",
"id": 216,
"name": "承德"
},
{
"areaCode": "0317",
"id": 217,
"name": "沧州"
},
{
"areaCode": "0311",
"id": 218,
"name": "石家庄"
},
{
"areaCode": "0335",
"id": 219,
"name": "秦皇岛"
},
{
"areaCode": "0318",
"id": 220,
"name": "衡水"
},
{
"areaCode": "0319",
"id": 221,
"name": "邢台"
},
{
"areaCode": "0310",
"id": 222,
"name": "邯郸"
},
{
"areaCode": "0312",
"id": 223,
"name": "雄安"
}
],
"name": "河北"
},
{
"cities": [
{
"areaCode": "023",
"id": 356,
"name": "万州"
},
{
"areaCode": "023",
"id": 357,
"name": "涪陵"
},
{
"areaCode": "023",
"id": 358,
"name": "重庆"
},
{
"areaCode": "023",
"id": 359,
"name": "黔江"
}
],
"name": "重庆"
},
{
"cities": [
{
"areaCode": "0743",
"id": 276,
"name": "吉首"
},
{
"areaCode": "0738",
"id": 277,
"name": "娄底"
},
{
"areaCode": "0730",
"id": 278,
"name": "岳阳"
},
{
"areaCode": "0736",
"id": 279,
"name": "常德"
},
{
"areaCode": "0744",
"id": 280,
"name": "张家界"
},
{
"areaCode": "0745",
"id": 281,
"name": "怀化"
},
{
"areaCode": "0731",
"id": 282,
"name": "株洲"
},
{
"areaCode": "0746",
"id": 283,
"name": "永州"
},
{
"areaCode": "0731",
"id": 284,
"name": "湘潭"
},
{
"areaCode": "0743",
"id": 285,
"name": "湘西"
},
{
"areaCode": "0737",
"id": 286,
"name": "益阳"
},
{
"areaCode": "0743",
"id": 287,
"name": "自治州"
},
{
"areaCode": "0734",
"id": 288,
"name": "衡阳"
},
{
"areaCode": "0739",
"id": 289,
"name": "邵阳"
},
{
"areaCode": "0735",
"id": 290,
"name": "郴州"
},
{
"areaCode": "0731",
"id": 291,
"name": "长沙"
},
{
"areaCode": "0731",
"id": 292,
"name": "长沙/湘潭/株洲"
}
],
"name": "湖南"
},
{
"cities": [
{
"areaCode": "0728",
"id": 260,
"name": "仙桃"
},
{
"areaCode": "0719",
"id": 261,
"name": "十堰"
},
{
"areaCode": "0715",
"id": 262,
"name": "咸宁"
},
{
"areaCode": "0712",
"id": 263,
"name": "孝感"
},
{
"areaCode": "0717",
"id": 264,
"name": "宜昌"
},
{
"areaCode": "0718",
"id": 265,
"name": "恩施"
},
{
"areaCode": "027",
"id": 266,
"name": "武汉"
},
{
"areaCode": "027",
"id": 267,
"name": "江汉"
},
{
"areaCode": "0728",
"id": 268,
"name": "江汉"
},
{
"areaCode": "0716",
"id": 269,
"name": "荆州"
},
{
"areaCode": "0724",
"id": 270,
"name": "荆门"
},
{
"areaCode": "0710",
"id": 271,
"name": "襄阳"
},
{
"areaCode": "0711",
"id": 272,
"name": "鄂州"
},
{
"areaCode": "0722",
"id": 273,
"name": "随州"
},
{
"areaCode": "0713",
"id": 274,
"name": "黄冈"
},
{
"areaCode": "0714",
"id": 275,
"name": "黄石"
}
],
"name": "湖北"
},
{
"cities": [
{
"areaCode": "0898",
"id": 257,
"name": "三亚"
},
{
"areaCode": "0898",
"id": 258,
"name": "海南"
},
{
"areaCode": "0898",
"id": 259,
"name": "海口"
}
],
"name": "海南"
},
{
"cities": [
{
"areaCode": "0793",
"id": 200,
"name": "上饶"
},
{
"areaCode": "0792",
"id": 201,
"name": "九江"
},
{
"areaCode": "0791",
"id": 202,
"name": "南昌"
},
{
"areaCode": "0796",
"id": 203,
"name": "吉安"
},
{
"areaCode": "0795",
"id": 204,
"name": "宜春"
},
{
"areaCode": "0794",
"id": 205,
"name": "抚州"
},
{
"areaCode": "0790",
"id": 206,
"name": "新余"
},
{
"areaCode": "0798",
"id": 207,
"name": "景德镇"
},
{
"areaCode": "0799",
"id": 208,
"name": "萍乡"
},
{
"areaCode": "0797",
"id": 209,
"name": "赣州"
},
{
"areaCode": "0701",
"id": 210,
"name": "鹰潭"
}
],
"name": "江西"
},
{
"cities": [
{
"areaCode": "0464",
"id": 383,
"name": "七台河"
},
{
"areaCode": "0458",
"id": 384,
"name": "伊春"
},
{
"areaCode": "0454",
"id": 385,
"name": "佳木斯"
},
{
"areaCode": "0469",
"id": 386,
"name": "双鸭山"
},
{
"areaCode": "0451",
"id": 387,
"name": "哈尔滨"
},
{
"areaCode": "0457",
"id": 388,
"name": "大兴安岭"
},
{
"areaCode": "0459",
"id": 389,
"name": "大庆"
},
{
"areaCode": "0453",
"id": 390,
"name": "牡丹江"
},
{
"areaCode": "0455",
"id": 391,
"name": "绥化"
},
{
"areaCode": "0467",
"id": 392,
"name": "鸡西"
},
{
"areaCode": "0468",
"id": 393,
"name": "鹤岗"
},
{
"areaCode": "0456",
"id": 394,
"name": "黑河"
},
{
"areaCode": "0452",
"id": 395,
"name": "齐齐哈尔"
}
],
"name": "黑龙江"
},
{
"cities": [
{
"areaCode": "022",
"id": 80,
"name": "天津"
}
],
"name": "天津"
},
{
"cities": [
{
"areaCode": "029",
"id": 360,
"name": "咸阳"
},
{
"areaCode": "0914",
"id": 361,
"name": "商州"
},
{
"areaCode": "0914",
"id": 362,
"name": "商洛"
},
{
"areaCode": "0915",
"id": 363,
"name": "安康"
},
{
"areaCode": "0917",
"id": 364,
"name": "宝鸡"
},
{
"areaCode": "0911",
"id": 365,
"name": "延安"
},
{
"areaCode": "0912",
"id": 366,
"name": "榆林"
},
{
"areaCode": "0916",
"id": 367,
"name": "汉中"
},
{
"areaCode": "0913",
"id": 368,
"name": "渭南"
},
{
"areaCode": "029",
"id": 369,
"name": "西安"
},
{
"areaCode": "0919",
"id": 370,
"name": "铜川"
}
],
"name": "陕西"
},
{
"cities": [
{
"areaCode": "0858",
"id": 325,
"name": "六盘水"
},
{
"areaCode": "0859",
"id": 326,
"name": "兴义"
},
{
"areaCode": "0855",
"id": 327,
"name": "凯里"
},
{
"areaCode": "0851",
"id": 328,
"name": "安顺"
},
{
"areaCode": "0853",
"id": 329,
"name": "安顺"
},
{
"areaCode": "0857",
"id": 330,
"name": "毕节"
},
{
"areaCode": "0851",
"id": 331,
"name": "贵阳"
},
{
"areaCode": "0851",
"id": 332,
"name": "贵阳/遵义/安顺"
},
{
"areaCode": "0851",
"id": 333,
"name": "遵义"
},
{
"areaCode": "0852",
"id": 334,
"name": "遵义"
},
{
"areaCode": "0854",
"id": 335,
"name": "都匀"
},
{
"areaCode": "0856",
"id": 336,
"name": "铜仁"
},
{
"areaCode": "0855",
"id": 337,
"name": "黔东南"
},
{
"areaCode": "0854",
"id": 338,
"name": "黔南"
},
{
"areaCode": "0859",
"id": 339,
"name": "黔西南"
}
],
"name": "贵州"
},
{
"cities": [
{
"areaCode": "0991",
"id": 168,
"name": "乌鲁木齐"
},
{
"areaCode": "0999",
"id": 169,
"name": "伊犁"
},
{
"areaCode": "0908",
"id": 170,
"name": "克州"
},
{
"areaCode": "0990",
"id": 171,
"name": "克拉玛依"
},
{
"areaCode": "0909",
"id": 172,
"name": "博乐"
},
{
"areaCode": "0909",
"id": 173,
"name": "博州"
},
{
"areaCode": "0995",
"id": 174,
"name": "吐鲁番"
},
{
"areaCode": "0903",
"id": 175,
"name": "和田"
},
{
"areaCode": "0902",
"id": 176,
"name": "哈密"
},
{
"areaCode": "0998",
"id": 177,
"name": "喀什"
},
{
"areaCode": "0901",
"id": 178,
"name": "塔城"
},
{
"areaCode": "0992",
"id": 179,
"name": "奎屯"
},
{
"areaCode": "0996",
"id": 180,
"name": "巴州"
},
{
"areaCode": "0996",
"id": 181,
"name": "库尔勒"
},
{
"areaCode": "0994",
"id": 182,
"name": "昌吉"
},
{
"areaCode": "0993",
"id": 183,
"name": "石河子"
},
{
"areaCode": "0997",
"id": 184,
"name": "阿克苏"
},
{
"areaCode": "0906",
"id": 185,
"name": "阿勒泰"
}
],
"name": "新疆"
},
{
"cities": [
{
"areaCode": "025",
"id": 186,
"name": "南京"
},
{
"areaCode": "0513",
"id": 187,
"name": "南通"
},
{
"areaCode": "0527",
"id": 188,
"name": "宿迁"
},
{
"areaCode": "0519",
"id": 189,
"name": "常州"
},
{
"areaCode": "0516",
"id": 190,
"name": "徐州"
},
{
"areaCode": "0514",
"id": 191,
"name": "扬州"
},
{
"areaCode": "025",
"id": 192,
"name": "无锡"
},
{
"areaCode": "0510",
"id": 193,
"name": "无锡"
},
{
"areaCode": "0523",
"id": 194,
"name": "泰州"
},
{
"areaCode": "0517",
"id": 195,
"name": "淮安"
},
{
"areaCode": "0515",
"id": 196,
"name": "盐城"
},
{
"areaCode": "0512",
"id": 197,
"name": "苏州"
},
{
"areaCode": "0518",
"id": 198,
"name": "连云港"
},
{
"areaCode": "0511",
"id": 199,
"name": "镇江"
}
],
"name": "江苏"
},
{
"cities": [
{
"areaCode": "0558",
"id": 86,
"name": "亳州"
},
{
"areaCode": "0567",
"id": 87,
"name": "亳州"
},
{
"areaCode": "0564",
"id": 88,
"name": "六安"
},
{
"areaCode": "0551",
"id": 89,
"name": "合肥"
},
{
"areaCode": "0556",
"id": 90,
"name": "安庆"
},
{
"areaCode": "0563",
"id": 91,
"name": "宣城"
},
{
"areaCode": "0557",
"id": 92,
"name": "宿州"
},
{
"areaCode": "0565",
"id": 93,
"name": "巢湖"
},
{
"areaCode": "0566",
"id": 94,
"name": "池州"
},
{
"areaCode": "0561",
"id": 95,
"name": "淮北"
},
{
"areaCode": "0554",
"id": 96,
"name": "淮南"
},
{
"areaCode": "0550",
"id": 97,
"name": "滁州"
},
{
"areaCode": "0553",
"id": 98,
"name": "芜湖"
},
{
"areaCode": "0552",
"id": 99,
"name": "蚌埠"
},
{
"areaCode": "0562",
"id": 100,
"name": "铜陵"
},
{
"areaCode": "0558",
"id": 101,
"name": "阜阳"
},
{
"areaCode": "0558",
"id": 102,
"name": "阜阳/亳州"
},
{
"areaCode": "0555",
"id": 103,
"name": "马鞍山"
},
{
"areaCode": "0559",
"id": 104,
"name": "黄山"
}
],
"name": "安徽"
},
{
"cities": [
{
"areaCode": "0893",
"id": 318,
"name": "山南"
},
{
"areaCode": "0891",
"id": 319,
"name": "拉萨"
},
{
"areaCode": "0892",
"id": 320,
"name": "日喀则"
},
{
"areaCode": "0895",
"id": 321,
"name": "昌都"
},
{
"areaCode": "0894",
"id": 322,
"name": "林芝"
},
{
"areaCode": "0896",
"id": 323,
"name": "那曲"
},
{
"areaCode": "0897",
"id": 324,
"name": "阿里"
}
],
"name": "西藏"
},
{
"cities": [
{
"areaCode": "0432",
"id": 44,
"name": "吉林"
},
{
"areaCode": "0434",
"id": 45,
"name": "四平"
},
{
"areaCode": "0433",
"id": 46,
"name": "延吉"
},
{
"areaCode": "0433",
"id": 47,
"name": "延边"
},
{
"areaCode": "0438",
"id": 48,
"name": "松原"
},
{
"areaCode": "0435",
"id": 49,
"name": "梅河口"
},
{
"areaCode": "0433",
"id": 50,
"name": "珲春"
},
{
"areaCode": "0436",
"id": 51,
"name": "白城"
},
{
"areaCode": "0439",
"id": 52,
"name": "白山"
},
{
"areaCode": "0437",
"id": 53,
"name": "辽源"
},
{
"areaCode": "0435",
"id": 54,
"name": "通化"
},
{
"areaCode": "0431",
"id": 55,
"name": "长春"
}
],
"name": "吉林"
},
{
"cities": [
{
"areaCode": "021",
"id": 1,
"name": "上海"
}
],
"name": "上海"
},
{
"cities": [
{
"areaCode": "0930",
"id": 293,
"name": "临夏"
},
{
"areaCode": "0931",
"id": 294,
"name": "兰州"
},
{
"areaCode": "0937",
"id": 295,
"name": "嘉峪关"
},
{
"areaCode": "0938",
"id": 296,
"name": "天水"
},
{
"areaCode": "0932",
"id": 297,
"name": "定西"
},
{
"areaCode": "0933",
"id": 298,
"name": "平凉"
},
{
"areaCode": "0934",
"id": 299,
"name": "庆阳"
},
{
"areaCode": "0936",
"id": 300,
"name": "张掖"
},
{
"areaCode": "0935",
"id": 301,
"name": "武威"
},
{
"areaCode": "0941",
"id": 302,
"name": "甘南"
},
{
"areaCode": "0943",
"id": 303,
"name": "白银"
},
{
"areaCode": "0937",
"id": 304,
"name": "酒泉"
},
{
"areaCode": "0937",
"id": 305,
"name": "酒泉嘉峪关"
},
{
"areaCode": "0935",
"id": 306,
"name": "金昌"
},
{
"areaCode": "0935",
"id": 307,
"name": "金昌武威"
},
{
"areaCode": "0939",
"id": 308,
"name": "陇南"
}
],
"name": "甘肃"
},
{
"cities": [
{
"areaCode": "0357",
"id": 122,
"name": "临汾"
},
{
"areaCode": "0358",
"id": 123,
"name": "吕梁"
},
{
"areaCode": "0352",
"id": 124,
"name": "大同"
},
{
"areaCode": "0351",
"id": 125,
"name": "太原"
},
{
"areaCode": "0350",
"id": 126,
"name": "忻州"
},
{
"areaCode": "0354",
"id": 127,
"name": "晋中"
},
{
"areaCode": "0356",
"id": 128,
"name": "晋城"
},
{
"areaCode": "0349",
"id": 129,
"name": "朔州"
},
{
"areaCode": "0359",
"id": 130,
"name": "运城"
},
{
"areaCode": "0355",
"id": 131,
"name": "长治"
},
{
"areaCode": "0353",
"id": 132,
"name": "阳泉"
}
],
"name": "山西"
},
{
"cities": [
{
"areaCode": "0955",
"id": 81,
"name": "中卫"
},
{
"areaCode": "0953",
"id": 82,
"name": "吴忠"
},
{
"areaCode": "0954",
"id": 83,
"name": "固原"
},
{
"areaCode": "0952",
"id": 84,
"name": "石嘴山"
},
{
"areaCode": "0951",
"id": 85,
"name": "银川"
}
],
"name": "宁夏"
},
{
"cities": [
{
"areaCode": "0833",
"id": 56,
"name": "乐山"
},
{
"areaCode": "0832",
"id": 57,
"name": "内江"
},
{
"areaCode": "0834",
"id": 58,
"name": "凉山"
},
{
"areaCode": "0817",
"id": 59,
"name": "南充"
},
{
"areaCode": "0831",
"id": 60,
"name": "宜宾"
},
{
"areaCode": "0827",
"id": 61,
"name": "巴中"
},
{
"areaCode": "0839",
"id": 62,
"name": "广元"
},
{
"areaCode": "0826",
"id": 63,
"name": "广安"
},
{
"areaCode": "0836",
"id": 64,
"name": "康定"
},
{
"areaCode": "0838",
"id": 65,
"name": "德阳"
},
{
"areaCode": "028",
"id": 66,
"name": "成都"
},
{
"areaCode": "028",
"id": 67,
"name": "成都/眉山/资阳"
},
{
"areaCode": "0812",
"id": 68,
"name": "攀枝花"
},
{
"areaCode": "0830",
"id": 69,
"name": "泸州"
},
{
"areaCode": "0836",
"id": 70,
"name": "甘孜"
},
{
"areaCode": "028",
"id": 71,
"name": "眉山"
},
{
"areaCode": "0816",
"id": 72,
"name": "绵阳"
},
{
"areaCode": "0813",
"id": 73,
"name": "自贡"
},
{
"areaCode": "028",
"id": 74,
"name": "资阳"
},
{
"areaCode": "0818",
"id": 75,
"name": "达县"
},
{
"areaCode": "0818",
"id": 76,
"name": "达州"
},
{
"areaCode": "0825",
"id": 77,
"name": "遂宁"
},
{
"areaCode": "0837",
"id": 78,
"name": "阿坝"
},
{
"areaCode": "0835",
"id": 79,
"name": "雅安"
}
],
"name": "四川"
},
{
"cities": [
{
"areaCode": "0578",
"id": 246,
"name": "丽水"
},
{
"areaCode": "0576",
"id": 247,
"name": "台州"
},
{
"areaCode": "0573",
"id": 248,
"name": "嘉兴"
},
{
"areaCode": "0574",
"id": 249,
"name": "宁波"
},
{
"areaCode": "0571",
"id": 250,
"name": "杭州"
},
{
"areaCode": "0577",
"id": 251,
"name": "温州"
},
{
"areaCode": "0572",
"id": 252,
"name": "湖州"
},
{
"areaCode": "0575",
"id": 253,
"name": "绍兴"
},
{
"areaCode": "0580",
"id": 254,
"name": "舟山"
},
{
"areaCode": "0570",
"id": 255,
"name": "衢州"
},
{
"areaCode": "0579",
"id": 256,
"name": "金华"
}
],
"name": "浙江"
},
{
"cities": [
{
"areaCode": "0779",
"id": 154,
"name": "北海"
},
{
"areaCode": "0771",
"id": 155,
"name": "南宁"
},
{
"areaCode": "0771",
"id": 156,
"name": "崇左"
},
{
"areaCode": "0772",
"id": 157,
"name": "来宾"
},
{
"areaCode": "0772",
"id": 158,
"name": "柳州"
},
{
"areaCode": "0773",
"id": 159,
"name": "桂林"
},
{
"areaCode": "0774",
"id": 160,
"name": "梧州"
},
{
"areaCode": "0778",
"id": 161,
"name": "河池"
},
{
"areaCode": "0775",
"id": 162,
"name": "玉林"
},
{
"areaCode": "0776",
"id": 163,
"name": "百色"
},
{
"areaCode": "0775",
"id": 164,
"name": "贵港"
},
{
"areaCode": "0774",
"id": 165,
"name": "贺州"
},
{
"areaCode": "0777",
"id": 166,
"name": "钦州"
},
{
"areaCode": "0770",
"id": 167,
"name": "防城港"
}
],
"name": "广西"
},
{
"cities": [
{
"areaCode": "0883",
"id": 2,
"name": "临沧"
},
{
"areaCode": "0888",
"id": 3,
"name": "丽江"
},
{
"areaCode": "0875",
"id": 4,
"name": "保山"
},
{
"areaCode": "0872",
"id": 5,
"name": "大理"
},
{
"areaCode": "0692",
"id": 6,
"name": "德宏"
},
{
"areaCode": "0886",
"id": 7,
"name": "怒江"
},
{
"areaCode": "0879",
"id": 8,
"name": "思茅"
},
{
"areaCode": "0876",
"id": 9,
"name": "文山"
},
{
"areaCode": "0871",
"id": 10,
"name": "昆明"
},
{
"areaCode": "0870",
"id": 11,
"name": "昭通"
},
{
"areaCode": "0879",
"id": 12,
"name": "普洱"
},
{
"areaCode": "0874",
"id": 13,
"name": "曲靖"
},
{
"areaCode": "0878",
"id": 14,
"name": "楚雄"
},
{
"areaCode": "0691",
"id": 15,
"name": "版纳"
},
{
"areaCode": "0877",
"id": 16,
"name": "玉溪"
},
{
"areaCode": "0873",
"id": 17,
"name": "红河"
},
{
"areaCode": "0691",
"id": 18,
"name": "西双版纳"
},
{
"areaCode": "0887",
"id": 19,
"name": "迪庆"
}
],
"name": "云南"
},
{
"cities": [
{
"areaCode": "0478",
"id": 20,
"name": "临河"
},
{
"areaCode": "0474",
"id": 21,
"name": "乌兰察布"
},
{
"areaCode": "0474",
"id": 22,
"name": "乌兰察布市"
},
{
"areaCode": "0482",
"id": 23,
"name": "乌兰浩特"
},
{
"areaCode": "0473",
"id": 24,
"name": "乌海"
},
{
"areaCode": "0482",
"id": 25,
"name": "兴安盟"
},
{
"areaCode": "0472",
"id": 26,
"name": "包头"
},
{
"areaCode": "0470",
"id": 27,
"name": "呼伦贝尔"
},
{
"areaCode": "0470",
"id": 28,
"name": "呼伦贝尔市"
},
{
"areaCode": "0471",
"id": 29,
"name": "呼和浩特"
},
{
"areaCode": "0478",
"id": 30,
"name": "巴彦淖尔"
},
{
"areaCode": "0470",
"id": 31,
"name": "海拉尔"
},
{
"areaCode": "0476",
"id": 32,
"name": "赤峰"
},
{
"areaCode": "0475",
"id": 33,
"name": "通辽"
},
{
"areaCode": "0477",
"id": 34,
"name": "鄂尔多斯"
},
{
"areaCode": "0477",
"id": 35,
"name": "鄂尔多斯市"
},
{
"areaCode": "0479",
"id": 36,
"name": "锡林浩特"
},
{
"areaCode": "0479",
"id": 37,
"name": "锡林郭勒"
},
{
"areaCode": "0479",
"id": 38,
"name": "锡林郭勒盟"
},
{
"areaCode": "0483",
"id": 39,
"name": "阿拉善"
},
{
"areaCode": "0483",
"id": 40,
"name": "阿拉善盟"
},
{
"areaCode": "0483",
"id": 41,
"name": "阿盟"
},
{
"areaCode": "0474",
"id": 42,
"name": "集宁"
}
],
"name": "内蒙古"
},
{
"cities": [
{
"areaCode": "0415",
"id": 340,
"name": "丹东"
},
{
"areaCode": "0411",
"id": 341,
"name": "大连"
},
{
"areaCode": "024",
"id": 342,
"name": "抚顺"
},
{
"areaCode": "0421",
"id": 343,
"name": "朝阳"
},
{
"areaCode": "024",
"id": 344,
"name": "本溪"
},
{
"areaCode": "0414",
"id": 345,
"name": "本溪"
},
{
"areaCode": "024",
"id": 346,
"name": "沈阳"
},
{
"areaCode": "024",
"id": 347,
"name": "沈阳/铁岭/抚顺/本溪"
},
{
"areaCode": "0427",
"id": 348,
"name": "盘锦"
},
{
"areaCode": "0417",
"id": 349,
"name": "营口"
},
{
"areaCode": "0429",
"id": 350,
"name": "葫芦岛"
},
{
"areaCode": "0419",
"id": 351,
"name": "辽阳"
},
{
"areaCode": "024",
"id": 352,
"name": "铁岭"
},
{
"areaCode": "0416",
"id": 353,
"name": "锦州"
},
{
"areaCode": "0418",
"id": 354,
"name": "阜新"
},
{
"areaCode": "0412",
"id": 355,
"name": "鞍山"
}
],
"name": "辽宁"
},
{
"cities": [
{
"areaCode": "0769",
"id": 133,
"name": "东莞"
},
{
"areaCode": "0760",
"id": 134,
"name": "中山"
},
{
"areaCode": "0766",
"id": 135,
"name": "云浮"
},
{
"areaCode": "0757",
"id": 136,
"name": "佛山"
},
{
"areaCode": "020",
"id": 137,
"name": "广州"
},
{
"areaCode": "0752",
"id": 138,
"name": "惠州"
},
{
"areaCode": "0663",
"id": 139,
"name": "揭阳"
},
{
"areaCode": "0753",
"id": 140,
"name": "梅州"
},
{
"areaCode": "0754",
"id": 141,
"name": "汕头"
},
{
"areaCode": "0660",
"id": 142,
"name": "汕尾"
},
{
"areaCode": "0750",
"id": 143,
"name": "江门"
},
{
"areaCode": "0762",
"id": 144,
"name": "河源"
},
{
"areaCode": "0755",
"id": 145,
"name": "深圳"
},
{
"areaCode": "0763",
"id": 146,
"name": "清远"
},
{
"areaCode": "0759",
"id": 147,
"name": "湛江"
},
{
"areaCode": "0768",
"id": 148,
"name": "潮州"
},
{
"areaCode": "0756",
"id": 149,
"name": "珠海"
},
{
"areaCode": "0758",
"id": 150,
"name": "肇庆"
},
{
"areaCode": "0668",
"id": 151,
"name": "茂名"
},
{
"areaCode": "0662",
"id": 152,
"name": "阳江"
},
{
"areaCode": "0751",
"id": 153,
"name": "韶关"
}
],
"name": "广东"
},
{
"cities": [
{
"areaCode": "0974",
"id": 371,
"name": "共和"
},
{
"areaCode": "0977",
"id": 372,
"name": "德令哈"
},
{
"areaCode": "0975",
"id": 373,
"name": "果洛"
},
{
"areaCode": "0979",
"id": 374,
"name": "格尔木"
},
{
"areaCode": "0972",
"id": 375,
"name": "海东"
},
{
"areaCode": "0970",
"id": 376,
"name": "海北"
},
{
"areaCode": "0974",
"id": 377,
"name": "海南"
},
{
"areaCode": "0970",
"id": 378,
"name": "海晏"
},
{
"areaCode": "0977",
"id": 379,
"name": "海西"
},
{
"areaCode": "0976",
"id": 380,
"name": "玉树"
},
{
"areaCode": "0971",
"id": 381,
"name": "西宁"
},
{
"areaCode": "0973",
"id": 382,
"name": "黄南"
}
],
"name": "青海"
},
{
"cities": [
{
"areaCode": "010",
"id": 43,
"name": "北京"
}
],
"name": "北京"
}
]
},
"msg": "成功!"
}
初始化完的数据
this.provinces = [
{
"label": "山东",
"value": "山东",
"children": [
{
"areaCode": "0546",
"value": 105,
"label": "东营"
},
{
"areaCode": "0539",
"value": 106,
"label": "临沂"
},
{
"areaCode": "0631",
"value": 107,
"label": "威海"
},
{
"areaCode": "0534",
"value": 108,
"label": "德州"
},
{
"areaCode": "0633",
"value": 109,
"label": "日照"
},
{
"areaCode": "0632",
"value": 110,
"label": "枣庄"
},
{
"areaCode": "0538",
"value": 111,
"label": "泰安"
},
{
"areaCode": "0531",
"value": 112,
"label": "济南"
},
{
"areaCode": "0537",
"value": 113,
"label": "济宁"
},
{
"areaCode": "0533",
"value": 114,
"label": "淄博"
},
{
"areaCode": "0543",
"value": 115,
"label": "滨州"
},
{
"areaCode": "0536",
"value": 116,
"label": "潍坊"
},
{
"areaCode": "0535",
"value": 117,
"label": "烟台"
},
{
"areaCode": "0635",
"value": 118,
"label": "聊城"
},
{
"areaCode": "0634",
"value": 119,
"label": "莱芜"
},
{
"areaCode": "0530",
"value": 120,
"label": "菏泽"
},
{
"areaCode": "0532",
"value": 121,
"label": "青岛"
}
]
},
{
"label": "福建",
"value": "福建",
"children": [
{
"areaCode": "0598",
"value": 309,
"label": "三明"
},
{
"areaCode": "0599",
"value": 310,
"label": "南平"
},
{
"areaCode": "0592",
"value": 311,
"label": "厦门"
},
{
"areaCode": "0593",
"value": 312,
"label": "宁德"
},
{
"areaCode": "0595",
"value": 313,
"label": "泉州"
},
{
"areaCode": "0596",
"value": 314,
"label": "漳州"
},
{
"areaCode": "0591",
"value": 315,
"label": "福州"
},
{
"areaCode": "0594",
"value": 316,
"label": "莆田"
},
{
"areaCode": "0597",
"value": 317,
"label": "龙岩"
}
]
},
{
"label": "河南",
"value": "河南",
"children": [
{
"areaCode": "0398",
"value": 224,
"label": "三门峡"
},
{
"areaCode": "0376",
"value": 225,
"label": "信阳"
},
{
"areaCode": "0376",
"value": 226,
"label": "信阳/潢川"
},
{
"areaCode": "0377",
"value": 227,
"label": "南阳"
},
{
"areaCode": "0394",
"value": 228,
"label": "周口"
},
{
"areaCode": "0370",
"value": 229,
"label": "商丘"
},
{
"areaCode": "0372",
"value": 230,
"label": "安阳"
},
{
"areaCode": "0375",
"value": 231,
"label": "平顶山"
},
{
"areaCode": "0371",
"value": 232,
"label": "开封"
},
{
"areaCode": "0373",
"value": 233,
"label": "新乡"
},
{
"areaCode": "0379",
"value": 234,
"label": "洛阳"
},
{
"areaCode": "0391",
"value": 235,
"label": "济源"
},
{
"areaCode": "0395",
"value": 236,
"label": "漯河"
},
{
"areaCode": "0376",
"value": 237,
"label": "潢川"
},
{
"areaCode": "0393",
"value": 238,
"label": "濮阳"
},
{
"areaCode": "0391",
"value": 239,
"label": "焦作"
},
{
"areaCode": "0391",
"value": 240,
"label": "焦作济源"
},
{
"areaCode": "0374",
"value": 241,
"label": "许昌"
},
{
"areaCode": "0371",
"value": 242,
"label": "郑州"
},
{
"areaCode": "0371",
"value": 243,
"label": "郑州/开封"
},
{
"areaCode": "0396",
"value": 244,
"label": "驻马店"
},
{
"areaCode": "0392",
"value": 245,
"label": "鹤壁"
}
]
},
{
"label": "河北",
"value": "河北",
"children": [
{
"areaCode": "0311",
"value": 211,
"label": "保定"
},
{
"areaCode": "0312",
"value": 212,
"label": "保定"
},
{
"areaCode": "0315",
"value": 213,
"label": "唐山"
},
{
"areaCode": "0316",
"value": 214,
"label": "廊坊"
},
{
"areaCode": "0313",
"value": 215,
"label": "张家口"
},
{
"areaCode": "0314",
"value": 216,
"label": "承德"
},
{
"areaCode": "0317",
"value": 217,
"label": "沧州"
},
{
"areaCode": "0311",
"value": 218,
"label": "石家庄"
},
{
"areaCode": "0335",
"value": 219,
"label": "秦皇岛"
},
{
"areaCode": "0318",
"value": 220,
"label": "衡水"
},
{
"areaCode": "0319",
"value": 221,
"label": "邢台"
},
{
"areaCode": "0310",
"value": 222,
"label": "邯郸"
},
{
"areaCode": "0312",
"value": 223,
"label": "雄安"
}
]
},
{
"label": "重庆",
"value": "重庆",
"children": [
{
"areaCode": "023",
"value": 356,
"label": "万州"
},
{
"areaCode": "023",
"value": 357,
"label": "涪陵"
},
{
"areaCode": "023",
"value": 358,
"label": "重庆"
},
{
"areaCode": "023",
"value": 359,
"label": "黔江"
}
]
},
{
"label": "湖南",
"value": "湖南",
"children": [
{
"areaCode": "0743",
"value": 276,
"label": "吉首"
},
{
"areaCode": "0738",
"value": 277,
"label": "娄底"
},
{
"areaCode": "0730",
"value": 278,
"label": "岳阳"
},
{
"areaCode": "0736",
"value": 279,
"label": "常德"
},
{
"areaCode": "0744",
"value": 280,
"label": "张家界"
},
{
"areaCode": "0745",
"value": 281,
"label": "怀化"
},
{
"areaCode": "0731",
"value": 282,
"label": "株洲"
},
{
"areaCode": "0746",
"value": 283,
"label": "永州"
},
{
"areaCode": "0731",
"value": 284,
"label": "湘潭"
},
{
"areaCode": "0743",
"value": 285,
"label": "湘西"
},
{
"areaCode": "0737",
"value": 286,
"label": "益阳"
},
{
"areaCode": "0743",
"value": 287,
"label": "自治州"
},
{
"areaCode": "0734",
"value": 288,
"label": "衡阳"
},
{
"areaCode": "0739",
"value": 289,
"label": "邵阳"
},
{
"areaCode": "0735",
"value": 290,
"label": "郴州"
},
{
"areaCode": "0731",
"value": 291,
"label": "长沙"
},
{
"areaCode": "0731",
"value": 292,
"label": "长沙/湘潭/株洲"
}
]
},
{
"label": "湖北",
"value": "湖北",
"children": [
{
"areaCode": "0728",
"value": 260,
"label": "仙桃"
},
{
"areaCode": "0719",
"value": 261,
"label": "十堰"
},
{
"areaCode": "0715",
"value": 262,
"label": "咸宁"
},
{
"areaCode": "0712",
"value": 263,
"label": "孝感"
},
{
"areaCode": "0717",
"value": 264,
"label": "宜昌"
},
{
"areaCode": "0718",
"value": 265,
"label": "恩施"
},
{
"areaCode": "027",
"value": 266,
"label": "武汉"
},
{
"areaCode": "027",
"value": 267,
"label": "江汉"
},
{
"areaCode": "0728",
"value": 268,
"label": "江汉"
},
{
"areaCode": "0716",
"value": 269,
"label": "荆州"
},
{
"areaCode": "0724",
"value": 270,
"label": "荆门"
},
{
"areaCode": "0710",
"value": 271,
"label": "襄阳"
},
{
"areaCode": "0711",
"value": 272,
"label": "鄂州"
},
{
"areaCode": "0722",
"value": 273,
"label": "随州"
},
{
"areaCode": "0713",
"value": 274,
"label": "黄冈"
},
{
"areaCode": "0714",
"value": 275,
"label": "黄石"
}
]
},
{
"label": "海南",
"value": "海南",
"children": [
{
"areaCode": "0898",
"value": 257,
"label": "三亚"
},
{
"areaCode": "0898",
"value": 258,
"label": "海南"
},
{
"areaCode": "0898",
"value": 259,
"label": "海口"
}
]
},
{
"label": "江西",
"value": "江西",
"children": [
{
"areaCode": "0793",
"value": 200,
"label": "上饶"
},
{
"areaCode": "0792",
"value": 201,
"label": "九江"
},
{
"areaCode": "0791",
"value": 202,
"label": "南昌"
},
{
"areaCode": "0796",
"value": 203,
"label": "吉安"
},
{
"areaCode": "0795",
"value": 204,
"label": "宜春"
},
{
"areaCode": "0794",
"value": 205,
"label": "抚州"
},
{
"areaCode": "0790",
"value": 206,
"label": "新余"
},
{
"areaCode": "0798",
"value": 207,
"label": "景德镇"
},
{
"areaCode": "0799",
"value": 208,
"label": "萍乡"
},
{
"areaCode": "0797",
"value": 209,
"label": "赣州"
},
{
"areaCode": "0701",
"value": 210,
"label": "鹰潭"
}
]
},
{
"label": "黑龙江",
"value": "黑龙江",
"children": [
{
"areaCode": "0464",
"value": 383,
"label": "七台河"
},
{
"areaCode": "0458",
"value": 384,
"label": "伊春"
},
{
"areaCode": "0454",
"value": 385,
"label": "佳木斯"
},
{
"areaCode": "0469",
"value": 386,
"label": "双鸭山"
},
{
"areaCode": "0451",
"value": 387,
"label": "哈尔滨"
},
{
"areaCode": "0457",
"value": 388,
"label": "大兴安岭"
},
{
"areaCode": "0459",
"value": 389,
"label": "大庆"
},
{
"areaCode": "0453",
"value": 390,
"label": "牡丹江"
},
{
"areaCode": "0455",
"value": 391,
"label": "绥化"
},
{
"areaCode": "0467",
"value": 392,
"label": "鸡西"
},
{
"areaCode": "0468",
"value": 393,
"label": "鹤岗"
},
{
"areaCode": "0456",
"value": 394,
"label": "黑河"
},
{
"areaCode": "0452",
"value": 395,
"label": "齐齐哈尔"
}
]
},
{
"label": "天津",
"value": "天津",
"children": [
{
"areaCode": "022",
"value": 80,
"label": "天津"
}
]
},
{
"label": "陕西",
"value": "陕西",
"children": [
{
"areaCode": "029",
"value": 360,
"label": "咸阳"
},
{
"areaCode": "0914",
"value": 361,
"label": "商州"
},
{
"areaCode": "0914",
"value": 362,
"label": "商洛"
},
{
"areaCode": "0915",
"value": 363,
"label": "安康"
},
{
"areaCode": "0917",
"value": 364,
"label": "宝鸡"
},
{
"areaCode": "0911",
"value": 365,
"label": "延安"
},
{
"areaCode": "0912",
"value": 366,
"label": "榆林"
},
{
"areaCode": "0916",
"value": 367,
"label": "汉中"
},
{
"areaCode": "0913",
"value": 368,
"label": "渭南"
},
{
"areaCode": "029",
"value": 369,
"label": "西安"
},
{
"areaCode": "0919",
"value": 370,
"label": "铜川"
}
]
},
{
"label": "贵州",
"value": "贵州",
"children": [
{
"areaCode": "0858",
"value": 325,
"label": "六盘水"
},
{
"areaCode": "0859",
"value": 326,
"label": "兴义"
},
{
"areaCode": "0855",
"value": 327,
"label": "凯里"
},
{
"areaCode": "0851",
"value": 328,
"label": "安顺"
},
{
"areaCode": "0853",
"value": 329,
"label": "安顺"
},
{
"areaCode": "0857",
"value": 330,
"label": "毕节"
},
{
"areaCode": "0851",
"value": 331,
"label": "贵阳"
},
{
"areaCode": "0851",
"value": 332,
"label": "贵阳/遵义/安顺"
},
{
"areaCode": "0851",
"value": 333,
"label": "遵义"
},
{
"areaCode": "0852",
"value": 334,
"label": "遵义"
},
{
"areaCode": "0854",
"value": 335,
"label": "都匀"
},
{
"areaCode": "0856",
"value": 336,
"label": "铜仁"
},
{
"areaCode": "0855",
"value": 337,
"label": "黔东南"
},
{
"areaCode": "0854",
"value": 338,
"label": "黔南"
},
{
"areaCode": "0859",
"value": 339,
"label": "黔西南"
}
]
},
{
"label": "新疆",
"value": "新疆",
"children": [
{
"areaCode": "0991",
"value": 168,
"label": "乌鲁木齐"
},
{
"areaCode": "0999",
"value": 169,
"label": "伊犁"
},
{
"areaCode": "0908",
"value": 170,
"label": "克州"
},
{
"areaCode": "0990",
"value": 171,
"label": "克拉玛依"
},
{
"areaCode": "0909",
"value": 172,
"label": "博乐"
},
{
"areaCode": "0909",
"value": 173,
"label": "博州"
},
{
"areaCode": "0995",
"value": 174,
"label": "吐鲁番"
},
{
"areaCode": "0903",
"value": 175,
"label": "和田"
},
{
"areaCode": "0902",
"value": 176,
"label": "哈密"
},
{
"areaCode": "0998",
"value": 177,
"label": "喀什"
},
{
"areaCode": "0901",
"value": 178,
"label": "塔城"
},
{
"areaCode": "0992",
"value": 179,
"label": "奎屯"
},
{
"areaCode": "0996",
"value": 180,
"label": "巴州"
},
{
"areaCode": "0996",
"value": 181,
"label": "库尔勒"
},
{
"areaCode": "0994",
"value": 182,
"label": "昌吉"
},
{
"areaCode": "0993",
"value": 183,
"label": "石河子"
},
{
"areaCode": "0997",
"value": 184,
"label": "阿克苏"
},
{
"areaCode": "0906",
"value": 185,
"label": "阿勒泰"
}
]
},
{
"label": "江苏",
"value": "江苏",
"children": [
{
"areaCode": "025",
"value": 186,
"label": "南京"
},
{
"areaCode": "0513",
"value": 187,
"label": "南通"
},
{
"areaCode": "0527",
"value": 188,
"label": "宿迁"
},
{
"areaCode": "0519",
"value": 189,
"label": "常州"
},
{
"areaCode": "0516",
"value": 190,
"label": "徐州"
},
{
"areaCode": "0514",
"value": 191,
"label": "扬州"
},
{
"areaCode": "025",
"value": 192,
"label": "无锡"
},
{
"areaCode": "0510",
"value": 193,
"label": "无锡"
},
{
"areaCode": "0523",
"value": 194,
"label": "泰州"
},
{
"areaCode": "0517",
"value": 195,
"label": "淮安"
},
{
"areaCode": "0515",
"value": 196,
"label": "盐城"
},
{
"areaCode": "0512",
"value": 197,
"label": "苏州"
},
{
"areaCode": "0518",
"value": 198,
"label": "连云港"
},
{
"areaCode": "0511",
"value": 199,
"label": "镇江"
}
]
},
{
"label": "安徽",
"value": "安徽",
"children": [
{
"areaCode": "0558",
"value": 86,
"label": "亳州"
},
{
"areaCode": "0567",
"value": 87,
"label": "亳州"
},
{
"areaCode": "0564",
"value": 88,
"label": "六安"
},
{
"areaCode": "0551",
"value": 89,
"label": "合肥"
},
{
"areaCode": "0556",
"value": 90,
"label": "安庆"
},
{
"areaCode": "0563",
"value": 91,
"label": "宣城"
},
{
"areaCode": "0557",
"value": 92,
"label": "宿州"
},
{
"areaCode": "0565",
"value": 93,
"label": "巢湖"
},
{
"areaCode": "0566",
"value": 94,
"label": "池州"
},
{
"areaCode": "0561",
"value": 95,
"label": "淮北"
},
{
"areaCode": "0554",
"value": 96,
"label": "淮南"
},
{
"areaCode": "0550",
"value": 97,
"label": "滁州"
},
{
"areaCode": "0553",
"value": 98,
"label": "芜湖"
},
{
"areaCode": "0552",
"value": 99,
"label": "蚌埠"
},
{
"areaCode": "0562",
"value": 100,
"label": "铜陵"
},
{
"areaCode": "0558",
"value": 101,
"label": "阜阳"
},
{
"areaCode": "0558",
"value": 102,
"label": "阜阳/亳州"
},
{
"areaCode": "0555",
"value": 103,
"label": "马鞍山"
},
{
"areaCode": "0559",
"value": 104,
"label": "黄山"
}
]
},
{
"label": "西藏",
"value": "西藏",
"children": [
{
"areaCode": "0893",
"value": 318,
"label": "山南"
},
{
"areaCode": "0891",
"value": 319,
"label": "拉萨"
},
{
"areaCode": "0892",
"value": 320,
"label": "日喀则"
},
{
"areaCode": "0895",
"value": 321,
"label": "昌都"
},
{
"areaCode": "0894",
"value": 322,
"label": "林芝"
},
{
"areaCode": "0896",
"value": 323,
"label": "那曲"
},
{
"areaCode": "0897",
"value": 324,
"label": "阿里"
}
]
},
{
"label": "吉林",
"value": "吉林",
"children": [
{
"areaCode": "0432",
"value": 44,
"label": "吉林"
},
{
"areaCode": "0434",
"value": 45,
"label": "四平"
},
{
"areaCode": "0433",
"value": 46,
"label": "延吉"
},
{
"areaCode": "0433",
"value": 47,
"label": "延边"
},
{
"areaCode": "0438",
"value": 48,
"label": "松原"
},
{
"areaCode": "0435",
"value": 49,
"label": "梅河口"
},
{
"areaCode": "0433",
"value": 50,
"label": "珲春"
},
{
"areaCode": "0436",
"value": 51,
"label": "白城"
},
{
"areaCode": "0439",
"value": 52,
"label": "白山"
},
{
"areaCode": "0437",
"value": 53,
"label": "辽源"
},
{
"areaCode": "0435",
"value": 54,
"label": "通化"
},
{
"areaCode": "0431",
"value": 55,
"label": "长春"
}
]
},
{
"label": "上海",
"value": "上海",
"children": [
{
"areaCode": "021",
"value": 1,
"label": "上海"
}
]
},
{
"label": "甘肃",
"value": "甘肃",
"children": [
{
"areaCode": "0930",
"value": 293,
"label": "临夏"
},
{
"areaCode": "0931",
"value": 294,
"label": "兰州"
},
{
"areaCode": "0937",
"value": 295,
"label": "嘉峪关"
},
{
"areaCode": "0938",
"value": 296,
"label": "天水"
},
{
"areaCode": "0932",
"value": 297,
"label": "定西"
},
{
"areaCode": "0933",
"value": 298,
"label": "平凉"
},
{
"areaCode": "0934",
"value": 299,
"label": "庆阳"
},
{
"areaCode": "0936",
"value": 300,
"label": "张掖"
},
{
"areaCode": "0935",
"value": 301,
"label": "武威"
},
{
"areaCode": "0941",
"value": 302,
"label": "甘南"
},
{
"areaCode": "0943",
"value": 303,
"label": "白银"
},
{
"areaCode": "0937",
"value": 304,
"label": "酒泉"
},
{
"areaCode": "0937",
"value": 305,
"label": "酒泉嘉峪关"
},
{
"areaCode": "0935",
"value": 306,
"label": "金昌"
},
{
"areaCode": "0935",
"value": 307,
"label": "金昌武威"
},
{
"areaCode": "0939",
"value": 308,
"label": "陇南"
}
]
},
{
"label": "山西",
"value": "山西",
"children": [
{
"areaCode": "0357",
"value": 122,
"label": "临汾"
},
{
"areaCode": "0358",
"value": 123,
"label": "吕梁"
},
{
"areaCode": "0352",
"value": 124,
"label": "大同"
},
{
"areaCode": "0351",
"value": 125,
"label": "太原"
},
{
"areaCode": "0350",
"value": 126,
"label": "忻州"
},
{
"areaCode": "0354",
"value": 127,
"label": "晋中"
},
{
"areaCode": "0356",
"value": 128,
"label": "晋城"
},
{
"areaCode": "0349",
"value": 129,
"label": "朔州"
},
{
"areaCode": "0359",
"value": 130,
"label": "运城"
},
{
"areaCode": "0355",
"value": 131,
"label": "长治"
},
{
"areaCode": "0353",
"value": 132,
"label": "阳泉"
}
]
},
{
"label": "宁夏",
"value": "宁夏",
"children": [
{
"areaCode": "0955",
"value": 81,
"label": "中卫"
},
{
"areaCode": "0953",
"value": 82,
"label": "吴忠"
},
{
"areaCode": "0954",
"value": 83,
"label": "固原"
},
{
"areaCode": "0952",
"value": 84,
"label": "石嘴山"
},
{
"areaCode": "0951",
"value": 85,
"label": "银川"
}
]
},
{
"label": "四川",
"value": "四川",
"children": [
{
"areaCode": "0833",
"value": 56,
"label": "乐山"
},
{
"areaCode": "0832",
"value": 57,
"label": "内江"
},
{
"areaCode": "0834",
"value": 58,
"label": "凉山"
},
{
"areaCode": "0817",
"value": 59,
"label": "南充"
},
{
"areaCode": "0831",
"value": 60,
"label": "宜宾"
},
{
"areaCode": "0827",
"value": 61,
"label": "巴中"
},
{
"areaCode": "0839",
"value": 62,
"label": "广元"
},
{
"areaCode": "0826",
"value": 63,
"label": "广安"
},
{
"areaCode": "0836",
"value": 64,
"label": "康定"
},
{
"areaCode": "0838",
"value": 65,
"label": "德阳"
},
{
"areaCode": "028",
"value": 66,
"label": "成都"
},
{
"areaCode": "028",
"value": 67,
"label": "成都/眉山/资阳"
},
{
"areaCode": "0812",
"value": 68,
"label": "攀枝花"
},
{
"areaCode": "0830",
"value": 69,
"label": "泸州"
},
{
"areaCode": "0836",
"value": 70,
"label": "甘孜"
},
{
"areaCode": "028",
"value": 71,
"label": "眉山"
},
{
"areaCode": "0816",
"value": 72,
"label": "绵阳"
},
{
"areaCode": "0813",
"value": 73,
"label": "自贡"
},
{
"areaCode": "028",
"value": 74,
"label": "资阳"
},
{
"areaCode": "0818",
"value": 75,
"label": "达县"
},
{
"areaCode": "0818",
"value": 76,
"label": "达州"
},
{
"areaCode": "0825",
"value": 77,
"label": "遂宁"
},
{
"areaCode": "0837",
"value": 78,
"label": "阿坝"
},
{
"areaCode": "0835",
"value": 79,
"label": "雅安"
}
]
},
{
"label": "浙江",
"value": "浙江",
"children": [
{
"areaCode": "0578",
"value": 246,
"label": "丽水"
},
{
"areaCode": "0576",
"value": 247,
"label": "台州"
},
{
"areaCode": "0573",
"value": 248,
"label": "嘉兴"
},
{
"areaCode": "0574",
"value": 249,
"label": "宁波"
},
{
"areaCode": "0571",
"value": 250,
"label": "杭州"
},
{
"areaCode": "0577",
"value": 251,
"label": "温州"
},
{
"areaCode": "0572",
"value": 252,
"label": "湖州"
},
{
"areaCode": "0575",
"value": 253,
"label": "绍兴"
},
{
"areaCode": "0580",
"value": 254,
"label": "舟山"
},
{
"areaCode": "0570",
"value": 255,
"label": "衢州"
},
{
"areaCode": "0579",
"value": 256,
"label": "金华"
}
]
},
{
"label": "广西",
"value": "广西",
"children": [
{
"areaCode": "0779",
"value": 154,
"label": "北海"
},
{
"areaCode": "0771",
"value": 155,
"label": "南宁"
},
{
"areaCode": "0771",
"value": 156,
"label": "崇左"
},
{
"areaCode": "0772",
"value": 157,
"label": "来宾"
},
{
"areaCode": "0772",
"value": 158,
"label": "柳州"
},
{
"areaCode": "0773",
"value": 159,
"label": "桂林"
},
{
"areaCode": "0774",
"value": 160,
"label": "梧州"
},
{
"areaCode": "0778",
"value": 161,
"label": "河池"
},
{
"areaCode": "0775",
"value": 162,
"label": "玉林"
},
{
"areaCode": "0776",
"value": 163,
"label": "百色"
},
{
"areaCode": "0775",
"value": 164,
"label": "贵港"
},
{
"areaCode": "0774",
"value": 165,
"label": "贺州"
},
{
"areaCode": "0777",
"value": 166,
"label": "钦州"
},
{
"areaCode": "0770",
"value": 167,
"label": "防城港"
}
]
},
{
"label": "云南",
"value": "云南",
"children": [
{
"areaCode": "0883",
"value": 2,
"label": "临沧"
},
{
"areaCode": "0888",
"value": 3,
"label": "丽江"
},
{
"areaCode": "0875",
"value": 4,
"label": "保山"
},
{
"areaCode": "0872",
"value": 5,
"label": "大理"
},
{
"areaCode": "0692",
"value": 6,
"label": "德宏"
},
{
"areaCode": "0886",
"value": 7,
"label": "怒江"
},
{
"areaCode": "0879",
"value": 8,
"label": "思茅"
},
{
"areaCode": "0876",
"value": 9,
"label": "文山"
},
{
"areaCode": "0871",
"value": 10,
"label": "昆明"
},
{
"areaCode": "0870",
"value": 11,
"label": "昭通"
},
{
"areaCode": "0879",
"value": 12,
"label": "普洱"
},
{
"areaCode": "0874",
"value": 13,
"label": "曲靖"
},
{
"areaCode": "0878",
"value": 14,
"label": "楚雄"
},
{
"areaCode": "0691",
"value": 15,
"label": "版纳"
},
{
"areaCode": "0877",
"value": 16,
"label": "玉溪"
},
{
"areaCode": "0873",
"value": 17,
"label": "红河"
},
{
"areaCode": "0691",
"value": 18,
"label": "西双版纳"
},
{
"areaCode": "0887",
"value": 19,
"label": "迪庆"
}
]
},
{
"label": "内蒙古",
"value": "内蒙古",
"children": [
{
"areaCode": "0478",
"value": 20,
"label": "临河"
},
{
"areaCode": "0474",
"value": 21,
"label": "乌兰察布"
},
{
"areaCode": "0474",
"value": 22,
"label": "乌兰察布市"
},
{
"areaCode": "0482",
"value": 23,
"label": "乌兰浩特"
},
{
"areaCode": "0473",
"value": 24,
"label": "乌海"
},
{
"areaCode": "0482",
"value": 25,
"label": "兴安盟"
},
{
"areaCode": "0472",
"value": 26,
"label": "包头"
},
{
"areaCode": "0470",
"value": 27,
"label": "呼伦贝尔"
},
{
"areaCode": "0470",
"value": 28,
"label": "呼伦贝尔市"
},
{
"areaCode": "0471",
"value": 29,
"label": "呼和浩特"
},
{
"areaCode": "0478",
"value": 30,
"label": "巴彦淖尔"
},
{
"areaCode": "0470",
"value": 31,
"label": "海拉尔"
},
{
"areaCode": "0476",
"value": 32,
"label": "赤峰"
},
{
"areaCode": "0475",
"value": 33,
"label": "通辽"
},
{
"areaCode": "0477",
"value": 34,
"label": "鄂尔多斯"
},
{
"areaCode": "0477",
"value": 35,
"label": "鄂尔多斯市"
},
{
"areaCode": "0479",
"value": 36,
"label": "锡林浩特"
},
{
"areaCode": "0479",
"value": 37,
"label": "锡林郭勒"
},
{
"areaCode": "0479",
"value": 38,
"label": "锡林郭勒盟"
},
{
"areaCode": "0483",
"value": 39,
"label": "阿拉善"
},
{
"areaCode": "0483",
"value": 40,
"label": "阿拉善盟"
},
{
"areaCode": "0483",
"value": 41,
"label": "阿盟"
},
{
"areaCode": "0474",
"value": 42,
"label": "集宁"
}
]
},
{
"label": "辽宁",
"value": "辽宁",
"children": [
{
"areaCode": "0415",
"value": 340,
"label": "丹东"
},
{
"areaCode": "0411",
"value": 341,
"label": "大连"
},
{
"areaCode": "024",
"value": 342,
"label": "抚顺"
},
{
"areaCode": "0421",
"value": 343,
"label": "朝阳"
},
{
"areaCode": "024",
"value": 344,
"label": "本溪"
},
{
"areaCode": "0414",
"value": 345,
"label": "本溪"
},
{
"areaCode": "024",
"value": 346,
"label": "沈阳"
},
{
"areaCode": "024",
"value": 347,
"label": "沈阳/铁岭/抚顺/本溪"
},
{
"areaCode": "0427",
"value": 348,
"label": "盘锦"
},
{
"areaCode": "0417",
"value": 349,
"label": "营口"
},
{
"areaCode": "0429",
"value": 350,
"label": "葫芦岛"
},
{
"areaCode": "0419",
"value": 351,
"label": "辽阳"
},
{
"areaCode": "024",
"value": 352,
"label": "铁岭"
},
{
"areaCode": "0416",
"value": 353,
"label": "锦州"
},
{
"areaCode": "0418",
"value": 354,
"label": "阜新"
},
{
"areaCode": "0412",
"value": 355,
"label": "鞍山"
}
]
},
{
"label": "广东",
"value": "广东",
"children": [
{
"areaCode": "0769",
"value": 133,
"label": "东莞"
},
{
"areaCode": "0760",
"value": 134,
"label": "中山"
},
{
"areaCode": "0766",
"value": 135,
"label": "云浮"
},
{
"areaCode": "0757",
"value": 136,
"label": "佛山"
},
{
"areaCode": "020",
"value": 137,
"label": "广州"
},
{
"areaCode": "0752",
"value": 138,
"label": "惠州"
},
{
"areaCode": "0663",
"value": 139,
"label": "揭阳"
},
{
"areaCode": "0753",
"value": 140,
"label": "梅州"
},
{
"areaCode": "0754",
"value": 141,
"label": "汕头"
},
{
"areaCode": "0660",
"value": 142,
"label": "汕尾"
},
{
"areaCode": "0750",
"value": 143,
"label": "江门"
},
{
"areaCode": "0762",
"value": 144,
"label": "河源"
},
{
"areaCode": "0755",
"value": 145,
"label": "深圳"
},
{
"areaCode": "0763",
"value": 146,
"label": "清远"
},
{
"areaCode": "0759",
"value": 147,
"label": "湛江"
},
{
"areaCode": "0768",
"value": 148,
"label": "潮州"
},
{
"areaCode": "0756",
"value": 149,
"label": "珠海"
},
{
"areaCode": "0758",
"value": 150,
"label": "肇庆"
},
{
"areaCode": "0668",
"value": 151,
"label": "茂名"
},
{
"areaCode": "0662",
"value": 152,
"label": "阳江"
},
{
"areaCode": "0751",
"value": 153,
"label": "韶关"
}
]
},
{
"label": "青海",
"value": "青海",
"children": [
{
"areaCode": "0974",
"value": 371,
"label": "共和"
},
{
"areaCode": "0977",
"value": 372,
"label": "德令哈"
},
{
"areaCode": "0975",
"value": 373,
"label": "果洛"
},
{
"areaCode": "0979",
"value": 374,
"label": "格尔木"
},
{
"areaCode": "0972",
"value": 375,
"label": "海东"
},
{
"areaCode": "0970",
"value": 376,
"label": "海北"
},
{
"areaCode": "0974",
"value": 377,
"label": "海南"
},
{
"areaCode": "0970",
"value": 378,
"label": "海晏"
},
{
"areaCode": "0977",
"value": 379,
"label": "海西"
},
{
"areaCode": "0976",
"value": 380,
"label": "玉树"
},
{
"areaCode": "0971",
"value": 381,
"label": "西宁"
},
{
"areaCode": "0973",
"value": 382,
"label": "黄南"
}
]
},
{
"label": "北京",
"value": "北京",
"children": [
{
"areaCode": "010",
"value": 43,
"label": "北京"
}
]
}
]