From 3cf09ae1b7330a93b544c46e3b2eaefdf3b85d6b Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Sat, 05 Jun 2021 17:46:40 +0800
Subject: [PATCH] 1.客户管理地图选址后修改为不回填行政区
---
src/views/clientManagement/clientManagement.vue | 27 ++++++++-------------------
1 files changed, 8 insertions(+), 19 deletions(-)
diff --git a/src/views/clientManagement/clientManagement.vue b/src/views/clientManagement/clientManagement.vue
index b1efccc..d1eb303 100644
--- a/src/views/clientManagement/clientManagement.vue
+++ b/src/views/clientManagement/clientManagement.vue
@@ -737,17 +737,6 @@
// form是表单或者表格绑定的数据集,v-model='form'
handler(val) {
if (val) {
- var that = this;
- //重新加载一次页面详情数据,解决新的省市区无法写入问题
- //判断是新增还是修改
- if(that.isEdit){
- getclient(this.form.id).then(res => {
- // that.province = res.data.data.province;
- // that.city = res.data.data.city;
- // that.district = res.data.data.district;
- });
- }
-
//经纬度替换
this.form.wd = val.latitude;
this.form.jd = val.longitude;
@@ -759,14 +748,14 @@
if(address.search("区") != -1){
this.form.street = address.substring(address.indexOf("区")+1,address.length);
}
- //写入新的省市区
- that.form.province = val.addressComponent.province;
- if(val.addressComponent.city==""){
- that.form.city = val.addressComponent.province;
- }else{
- that.form.city = val.addressComponent.city;
- }
- that.form.district = val.addressComponent.district;
+ // //写入新的省市区
+ // that.form.province = val.addressComponent.province;
+ // if(val.addressComponent.city==""){
+ // that.form.city = val.addressComponent.province;
+ // }else{
+ // that.form.city = val.addressComponent.city;
+ // }
+ // that.form.district = val.addressComponent.district;
}
},
immediate: true,
--
Gitblit v1.9.3