|
@@ -314,7 +314,7 @@ export default {
|
|
|
{},
|
|
|
"get"
|
|
|
).then((data) => {
|
|
|
- if (data.code === 200) {
|
|
|
+ if (data) {
|
|
|
const items = data.data.map(obj => ({
|
|
|
areaName: obj.areaName,
|
|
|
id: obj.id,
|
|
@@ -396,6 +396,7 @@ export default {
|
|
|
fixPositionObj.position(points,true)
|
|
|
console.log(fixPositionObj)
|
|
|
},
|
|
|
+ //点击级联,地图飞高亮
|
|
|
setValue(val){
|
|
|
this.clickTree = val.data.areaCode
|
|
|
const fit = new CTMapOl.extend.FitToRegion(this.mapType === "3D" ? this.map : this.map.map, { duration: 300 },errorMsg => {
|