| | |
| | | },], |
| | | // search: true, |
| | | }, |
| | | |
| | | { |
| | | parent: false, |
| | | width: 156, |
| | | overHidden: true, |
| | | label: "所属社区", |
| | | prop: "communityCode", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | prop: "communityName", |
| | | search: true, |
| | | searchSpan: 4, |
| | | width: 150, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择所属社区", |
| | | trigger: "blur", |
| | | }], |
| | | }, |
| | | |
| | | { |
| | | label: "所属社区", |
| | | hide: true, |
| | | parent: false, |
| | | prop: "communityCode", |
| | | search: false, |
| | | type: "tree", |
| | | dicUrl: "/api/blade-system/region/tree", |
| | | props: { |
| | | label: "name", |
| | | value: "id" |
| | | value: "id", |
| | | }, |
| | | rules: [ |
| | | { |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | { |
| | | label: "数据来源", |
| | | prop: "source", |
| | |
| | | }, |
| | | |
| | | { |
| | | width: 110, |
| | | label: "现场图片", |
| | | prop: "imageUrls", |
| | | width: 80, |
| | | type: "upload", |
| | | listType: "picture-card", |
| | | dataType: "string", |
| | |
| | | // form是表单或者表格绑定的数据集,v-model='form' |
| | | handler (val) { |
| | | if (typeof val == "string") { |
| | | console.log(val, 7777) |
| | | var arr = val.split(",") |
| | | console.log(val, 88888) |
| | | //经纬度替换 |
| | | this.form.lat = arr[1] |
| | | this.form.lng = arr[0] |
| | | // this.form.location = arr[2]; |
| | | this.form.address = arr[2] |
| | | } |
| | | }, |
| | | immediate: true, |