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/system/cs.vue |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/src/views/system/cs.vue b/src/views/system/cs.vue
index 2088243..ce960a1 100644
--- a/src/views/system/cs.vue
+++ b/src/views/system/cs.vue
@@ -728,13 +728,15 @@
         // form是表单或者表格绑定的数据集,v-model='form'
         handler(val) {
           if (val) {
-            if (that.isEdit) {
-              getDetail(this.form.id).then((res) => {
-                this.form = res.data.data;
-                this.form.wd = val.latitude;
-                this.form.jd = val.longitude;
-              });
-            }
+            // if (that.isEdit) {
+            //   getDetail(this.form.id).then((res) => {
+            //     this.form = res.data.data;
+                
+            //   });
+            // }
+
+            this.form.wd = val.latitude;
+            this.form.jd = val.longitude;
             //地址截取,从县/区开始截取,并且取从县区第一个出现的位置开始
             var address = val.formattedAddress.toString();
             if (address.search("县") != -1) {
@@ -750,13 +752,13 @@
               );
             }
             //写入新的省市区
-            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