|
@@ -283,10 +283,11 @@ export default {
|
|
},
|
|
},
|
|
// 获取城市列表
|
|
// 获取城市列表
|
|
getCityList (val) {
|
|
getCityList (val) {
|
|
|
|
+ console.log(val)
|
|
this.addrCityList = []
|
|
this.addrCityList = []
|
|
this.addrDistrictList = []
|
|
this.addrDistrictList = []
|
|
- this.form.citySn = undefined
|
|
|
|
- this.form.countySn = undefined
|
|
|
|
|
|
+ this.form.addrCity = undefined
|
|
|
|
+ this.form.addrDistrict = undefined
|
|
if (val) {
|
|
if (val) {
|
|
this.getArea('city', val)
|
|
this.getArea('city', val)
|
|
this.form.addrProvinceName = this.addrProvinceList.find(item => item.areaSn == val).name
|
|
this.form.addrProvinceName = this.addrProvinceList.find(item => item.areaSn == val).name
|
|
@@ -297,7 +298,7 @@ export default {
|
|
// 获取区县列表
|
|
// 获取区县列表
|
|
getAreaList (val) {
|
|
getAreaList (val) {
|
|
this.addrDistrictList = []
|
|
this.addrDistrictList = []
|
|
- this.form.countySn = undefined
|
|
|
|
|
|
+ this.form.addrDistrict = undefined
|
|
if (val) {
|
|
if (val) {
|
|
this.getArea('district', val)
|
|
this.getArea('district', val)
|
|
this.form.addrCityName = this.addrCityList.find(item => item.areaSn == val).name
|
|
this.form.addrCityName = this.addrCityList.find(item => item.areaSn == val).name
|