|
|
|
@ -222,7 +222,7 @@ export default { |
|
|
|
for (let index = 0; index < this.dataForm.deptResultDTOS.length; index++) { |
|
|
|
const deptResultDTO = this.dataForm.deptResultDTOS[index] |
|
|
|
if (deptResultDTO.selected === true) { |
|
|
|
this.postDataForm.deptResultDTOS.push(deptResultDTO) |
|
|
|
// this.postDataForm.deptResultDTOS.push(deptResultDTO) |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (val === 10) { |
|
|
|
@ -243,7 +243,7 @@ export default { |
|
|
|
}, |
|
|
|
initBmap (latitude, longitude) { |
|
|
|
this.map = new BMap.Map('map') |
|
|
|
const point = new BMap.Point(120.38821849395045, 36.120219258412966) |
|
|
|
const point = new BMap.Point(longitude, latitude) |
|
|
|
var marker = new BMap.Marker(point) |
|
|
|
this.map.addOverlay(marker) |
|
|
|
this.map.centerAndZoom(point, 13) |
|
|
|
@ -322,6 +322,7 @@ export default { |
|
|
|
}, |
|
|
|
// 表单提交 |
|
|
|
dataFormSubmitHandle: debounce(function () { |
|
|
|
this.postDataForm.deptResultDTOS = [] |
|
|
|
for (let i = 0; i < this.deptResult.length; i++) { |
|
|
|
for (let j = 0; j < this.dataForm.deptResultDTOS.length; j++) { |
|
|
|
if (this.deptResult[i] === this.dataForm.deptResultDTOS[j].deptId) { |
|
|
|
|