| | |
| | | { |
| | | label: "经度", |
| | | hide: true, |
| | | addDisplay: false, |
| | | prop: "jd", |
| | | }, |
| | | { |
| | | label: "纬度", |
| | | hide: true, |
| | | addDisplay: false, |
| | | prop: "wd", |
| | | }, |
| | | { |
| | |
| | | "form.map": { |
| | | // form是表单或者表格绑定的数据集,v-model='form' |
| | | handler(val) { |
| | | |
| | | |
| | | if (val) { |
| | | this.form.wd = val.latitude; |
| | | this.form.jd = val.longitude; |
| | |
| | | "form.oneId":{ |
| | | handler(val) { |
| | | var that = this; |
| | | getBaTree(val).then(res => { |
| | | if (res) { |
| | | that.form.onePhone = res.data.data.records[0].phone; |
| | | that.form.oneContacts = res.data.data.records[0].name; |
| | | } |
| | | }); |
| | | if (val != null && val !=""){ |
| | | getBaTree(val).then(res => { |
| | | if (res) { |
| | | that.form.onePhone = res.data.data.records[0].phone; |
| | | that.form.oneContacts = res.data.data.records[0].name; |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | } |
| | | }, |