src/views/clientManagement/clientManagement.vue
@@ -687,6 +687,7 @@ var that = this; //重新加载一次页面详情数据,解决新的省市区无法写入问题 getclient(this.form.id).then(res => { debugger; this.form = res.data.data; //经纬度替换 this.form.wd = val.latitude; @@ -701,7 +702,12 @@ } //写入新的省市区 that.form.province = val.addressComponent.province; that.form.city = val.addressComponent.city; if(val.addressComponent.city==""){ that.form.city = val.addressComponent.province; }else{ that.form.city = val.addressComponent.city; } that.form.district = val.addressComponent.district; }); }