省市区 修改
This commit is contained in:
parent
b63b8c5756
commit
186d0556a5
@ -279,7 +279,7 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="form.streetName"
|
||||
v-model="form.areaCode"
|
||||
clearable
|
||||
placeholder="请选择街道"
|
||||
style="width: 129px; margin-left: 10px"
|
||||
@ -753,12 +753,11 @@ export default {
|
||||
//点击街道
|
||||
clickstreet(item) {
|
||||
this.form.areaCode = item.areaCode;
|
||||
this.value3 = item.areaCode;
|
||||
console.log(this.form);
|
||||
},
|
||||
//点击区县城
|
||||
clickarea(item) {
|
||||
this.value3 = "";
|
||||
this.form.areaCode = "";
|
||||
console.log(item);
|
||||
getSecondaryLevelInfo(item.id).then((res) => {
|
||||
console.log(res);
|
||||
@ -767,8 +766,8 @@ export default {
|
||||
},
|
||||
//点击市
|
||||
clickcity(item) {
|
||||
this.value2 = "";
|
||||
this.value3 = "";
|
||||
this.form.regionName = "";
|
||||
this.form.areaCode = "";
|
||||
console.log(item);
|
||||
getSecondaryLevelInfo(item.id).then((res) => {
|
||||
console.log(res);
|
||||
@ -779,10 +778,7 @@ export default {
|
||||
province(item) {
|
||||
this.form.cityName = "";
|
||||
this.form.regionName = "";
|
||||
this.form.streetName = "";
|
||||
// this.value1 = "";
|
||||
// this.value2 = "";
|
||||
// this.value3 = "";
|
||||
this.form.areaCode = "";
|
||||
getSecondaryLevelInfo(item.id).then((res) => {
|
||||
this.citylist = res.data;
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user