南昌市物联网技防平台-前端
zengh
2021-04-27 d74734fd32b892c4e71dccc0f85db7f3e9d36f18
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;
            });
          }
@@ -865,6 +871,7 @@
        this.onLoad(this.page);
      },
      searchChange(params, done) {
        console.log(params,done)
        this.query = params;
        this.page.currentPage = 1;
        this.onLoad(this.page, params);