| | |
| | | var that = this; |
| | | //重新加载一次页面详情数据,解决新的省市区无法写入问题 |
| | | getclient(this.form.id).then(res => { |
| | | debugger; |
| | | this.form = res.data.data; |
| | | //经纬度替换 |
| | | this.form.wd = val.latitude; |
| | |
| | | } |
| | | //写入新的省市区 |
| | | 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; |
| | | }); |
| | | } |
| | |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | | console.log(params,done) |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |