|
|
@ -305,7 +305,8 @@ export default {
|
|
|
|
value: dataItem.value,
|
|
|
|
value: dataItem.value,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return res;
|
|
|
|
return res;
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -313,6 +314,7 @@ export default {
|
|
|
|
this.setOptionsTitle();
|
|
|
|
this.setOptionsTitle();
|
|
|
|
this.setOptionsText();
|
|
|
|
this.setOptionsText();
|
|
|
|
this.setOptionsPoint();
|
|
|
|
this.setOptionsPoint();
|
|
|
|
|
|
|
|
this.setOptionsColor();
|
|
|
|
this.setOptionsData();
|
|
|
|
this.setOptionsData();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 标题设置
|
|
|
|
// 标题设置
|
|
|
@ -336,7 +338,7 @@ export default {
|
|
|
|
this.options.title = title;
|
|
|
|
this.options.title = title;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 地图字体设置
|
|
|
|
// 地图字体设置
|
|
|
|
setOptionsText(){
|
|
|
|
setOptionsText() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const lable = this.options.series[2].label;
|
|
|
|
const lable = this.options.series[2].label;
|
|
|
|
const normal = {
|
|
|
|
const normal = {
|
|
|
@ -349,17 +351,33 @@ export default {
|
|
|
|
lable["normal"] = normal;
|
|
|
|
lable["normal"] = normal;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 地图点设置
|
|
|
|
// 地图点设置
|
|
|
|
setOptionsPoint(){
|
|
|
|
setOptionsPoint() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const series = this.options.series[2];
|
|
|
|
const series = this.options.series[2];
|
|
|
|
pointSize = optionsSetup.pointSize
|
|
|
|
pointSize = optionsSetup.pointSize
|
|
|
|
const itemStyle= {
|
|
|
|
const itemStyle = {
|
|
|
|
normal: {
|
|
|
|
normal: {
|
|
|
|
color: optionsSetup.pointColor,
|
|
|
|
color: optionsSetup.pointColor,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
series["itemStyle"] = itemStyle;
|
|
|
|
series["itemStyle"] = itemStyle;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 地图颜色设置
|
|
|
|
|
|
|
|
setOptionsColor() {
|
|
|
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
|
|
|
|
const itemStyle = {
|
|
|
|
|
|
|
|
normal: {
|
|
|
|
|
|
|
|
// 地图的颜色
|
|
|
|
|
|
|
|
areaColor: optionsSetup.blockColor,
|
|
|
|
|
|
|
|
borderColor: optionsSetup.borderColor,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
emphasis: {
|
|
|
|
|
|
|
|
// 地图块颜色
|
|
|
|
|
|
|
|
areaColor: optionsSetup.highlightColor,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
this.options.geo["itemStyle"] = itemStyle;
|
|
|
|
|
|
|
|
},
|
|
|
|
//数据解析
|
|
|
|
//数据解析
|
|
|
|
setOptionsData() {
|
|
|
|
setOptionsData() {
|
|
|
|
const optionsData = this.optionsData; // 数据类型 静态 or 动态
|
|
|
|
const optionsData = this.optionsData; // 数据类型 静态 or 动态
|
|
|
|