|
@@ -271,38 +271,38 @@ export default {
|
|
|
this.addrCityList = []
|
|
|
this.addrDistrictList = []
|
|
|
this.queryParam.dealerCitySn = undefined
|
|
|
- this.queryParam.districtSn = undefined
|
|
|
+ this.queryParam.dealerCountySn = undefined
|
|
|
this.getArea('city', val)
|
|
|
},
|
|
|
// 获取区县列表
|
|
|
getAreaList (val) {
|
|
|
this.addrDistrictList = []
|
|
|
- this.queryParam.districtSn = undefined
|
|
|
+ this.queryParam.dealerCountySn = undefined
|
|
|
this.getArea('district', val)
|
|
|
},
|
|
|
// 省/市/区
|
|
|
- getArea (type, sn) {
|
|
|
+ getArea (leve, sn) {
|
|
|
let params
|
|
|
- if (type == 'province') {
|
|
|
- params = { level: '1' }
|
|
|
+ if (leve == 'province') {
|
|
|
+ params = { type: '2' }
|
|
|
} else {
|
|
|
- params = { psn: sn }
|
|
|
+ params = { parentId: sn, type: leve == 'city' ? '3' : '4' }
|
|
|
}
|
|
|
getArea(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- if (type == 'province') {
|
|
|
+ if (leve == 'province') {
|
|
|
this.addrProvinceList = res.data || []
|
|
|
- } else if (type == 'city') {
|
|
|
+ } else if (leve == 'city') {
|
|
|
this.addrCityList = res.data || []
|
|
|
- } else if (type == 'district') {
|
|
|
+ } else if (leve == 'district') {
|
|
|
this.addrDistrictList = res.data || []
|
|
|
}
|
|
|
} else {
|
|
|
- if (type == 'province') {
|
|
|
+ if (leve == 'province') {
|
|
|
this.addrProvinceList = []
|
|
|
- } else if (type == 'city') {
|
|
|
+ } else if (leve == 'city') {
|
|
|
this.addrCityList = []
|
|
|
- } else if (type == 'district') {
|
|
|
+ } else if (leve == 'district') {
|
|
|
this.addrDistrictList = []
|
|
|
}
|
|
|
}
|