|
|
@@ -68,7 +68,7 @@ export default { |
|
|
|
townBorderLayerName: "", // 乡镇边界图层名称 |
|
|
|
villageBorderLayerName: "", // 村边界图层名称 |
|
|
|
groupBorderLayerName: "", // 组边界图层名称 |
|
|
|
addrOptions: [], |
|
|
|
addrOptions: [] |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
@@ -200,7 +200,7 @@ export default { |
|
|
|
} else { |
|
|
|
mapCenterLocation = [116.391461, 39.902359]; |
|
|
|
} |
|
|
|
gis = new GisUtils('map') |
|
|
|
gis = new GisUtils('map22222') |
|
|
|
gis.addTianDiTuLayer() |
|
|
|
gis.addAnnotationLayer() |
|
|
|
if (dept.deptLevel === '5') { |
|
|
@@ -229,7 +229,7 @@ export default { |
|
|
|
} |
|
|
|
// 添加坐标点图层 |
|
|
|
if (dept.children) { |
|
|
|
this.addDeptLayer(dept.children, 'yellow.png'); |
|
|
|
this.addDeptLayer(dept.children); |
|
|
|
} |
|
|
|
gis.getView().setCenter(fromLonLat(mapCenterLocation)) |
|
|
|
|
|
|
@@ -243,7 +243,6 @@ export default { |
|
|
|
// 镇级:加载村级坐标点 |
|
|
|
if (feature.get('level') === 'deptPoint') { |
|
|
|
let parentIds = []; |
|
|
|
console.log(feature.get('deptId'), 888); |
|
|
|
this.findParentNodeIds(this.addrOptions, feature.get('deptId'), parentIds); |
|
|
|
this.addrText = parentIds; |
|
|
|
this.selectAddress(parentIds); |
|
|
@@ -313,7 +312,7 @@ export default { |
|
|
|
selectAddress (value, isLocated = true) { // isLocated 控制地图是否跳转 |
|
|
|
this.queryParams.deptId = value[value.length - 1]; |
|
|
|
this.getData(DEPT_CHANGED); |
|
|
|
let node = this.$refs["cascader"].panel.getNodeByValue(value); |
|
|
|
let node = this.$refs["cascader2"].panel.getNodeByValue(value); |
|
|
|
this.drawMap(node, isLocated); |
|
|
|
}, |
|
|
|
|
|
|
|