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