Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jfpt-Vue
| | |
| | | this.form.street = address.substring(address.indexOf("区")+1,address.length); |
| | | } |
| | | |
| | | that.form.province = val.addressComponent.province; |
| | | that.form.city = val.addressComponent.city; |
| | | that.form.district = val.addressComponent.district; |
| | | // that.form.province = val.addressComponent.province; |
| | | // that.form.city = val.addressComponent.city; |
| | | // that.form.district = val.addressComponent.district; |
| | | } |
| | | }, |
| | | immediate: true, |
| | |
| | | labelWidth: "0", |
| | | className: "cityClass3", |
| | | }, |
| | | { |
| | | label: "地址", |
| | | prop: "map", |
| | | hide: true, |
| | | span: 24, |
| | | component: "AvueMap", |
| | | }, |
| | | { |
| | | label: "地址", |
| | | prop: "address", |
| | | span:10, |
| | | // labelWidth: '60', |
| | | hide: true, |
| | | }, |
| | | { |
| | | label: null, |
| | | prop: "map", |
| | | labelWidth: "0", |
| | | searchSpan:0, |
| | | maxlength:0, |
| | | hide: true, |
| | | span: 2, |
| | | // display:false, |
| | | component: "AvueMap" |
| | | }, |
| | | { |
| | | label: "纬度", |
| | | hide: true, |
| | | addDisplay: false, |
| | | prop: "wd", |
| | | span:6 |
| | | }, |
| | | { |
| | | label: "经度", |
| | | labelWidth: "50", |
| | | hide: true, |
| | | addDisplay: false, |
| | | prop: "jd", |
| | | span:5 |
| | | }, |
| | | { |
| | | label: "账号额度", |
| | |
| | | if (val) { |
| | | this.form.wd = val.latitude; |
| | | this.form.jd = val.longitude; |
| | | //地址截取,从县/区开始截取,并且取从县区第一个出现的位置开始 |
| | | var address = val.formattedAddress.toString(); |
| | | if(address.search("县") != -1){ |
| | | this.form.address = address.substring(address.indexOf("县")+1,address.length); |
| | | } |
| | | if(address.search("区") != -1){ |
| | | this.form.address = address.substring(address.indexOf("区")+1,address.length); |
| | | } |
| | | } |
| | | }, |
| | | immediate: true, |