| | |
| | | // trigger: "blur", |
| | | // }, |
| | | // ], |
| | | // }, |
| | | // }, |
| | | { |
| | | label: "标准地址", |
| | | search: true, |
| | |
| | | formatter: (row) => { |
| | | return row.addressName |
| | | // if (!row.districtName) return '' |
| | | // return row.districtName + '-' + row.unit + row.building + row.room |
| | | // return row.districtName + '-' + row.unit + row.building + row.room |
| | | }, |
| | | onLoad: ({ page, value, data }, callback) => { |
| | | //首次加载去查询对应的值 |
| | |
| | | value: 'addressCode' |
| | | } |
| | | }, |
| | | |
| | | |
| | | { |
| | | label: "现场图片", |
| | | prop: "imageUrls", |
| | |
| | | }, |
| | | span: 24, |
| | | }, |
| | | |
| | | |
| | | { |
| | | label: "事件简述", |
| | | prop: "remark", |
| | |
| | | "form.location": { |
| | | // form是表单或者表格绑定的数据集,v-model='form' |
| | | handler(val) { |
| | | |
| | | |
| | | var that = this; |
| | | if (val) { |
| | | if (typeof val == "string") { |
| | | console.log(val,7777) |
| | | var arr = val.split(","); |
| | | console.log(val,88888) |
| | | //经纬度替换 |
| | | this.form.lat = arr[0]; |
| | | this.form.lng = arr[1]; |
| | | this.form.lat = arr[1]; |
| | | this.form.lng = arr[0]; |
| | | // this.form.location = arr[2]; |
| | | } |
| | | }, |