Regarding the three-level linkage package of provinces, cities and counties in the drop-down list, the pure front-end is realized through the el-cascader selector zip code, which can realize the linkage of level one, two and three

Insert picture description here
Insert picture description here
content:

     import cityDataList from 'utils/cityData'
      <el-cascader v-model="addModel.code" :show-all-levels="true" :props="{ checkStrictly: true }" :options="options" placeholder="请选择或搜索" clearable filterable ></el-cascader>
      绑定数据在data() {return {options:cityDataList}},
      具体数据封装在另一篇文章里面

Link: https://pan.baidu.com/s/1ABhRx6UsIBDY4mBVvtugZQ Extraction code: 3aw4 After copying this content, open the Baidu Netdisk mobile phone App, the operation is more convenient

Guess you like

Origin blog.csdn.net/qq_33573589/article/details/109305349