|
@@ -114,11 +114,9 @@ export default {
|
|
this.echart_7();
|
|
this.echart_7();
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- echart_7(pam={
|
|
|
|
- country: 100000,
|
|
|
|
- // province:"广东省",
|
|
|
|
- // city: "广州市"
|
|
|
|
- }) {
|
|
|
|
|
|
+ echart_7(pam={
|
|
|
|
+ country: 100000, // province:"广东省", // city: "广州市"
|
|
|
|
+ }) {
|
|
var that = this;
|
|
var that = this;
|
|
if (that.myChart) {
|
|
if (that.myChart) {
|
|
that.myChart.dispose();
|
|
that.myChart.dispose();
|
|
@@ -147,13 +145,14 @@ export default {
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
areaColor: cityColors[city],
|
|
areaColor: cityColors[city],
|
|
- borderColor: 'rgba(0,0,0,0)'
|
|
|
|
|
|
+ borderColor: 'none'
|
|
},
|
|
},
|
|
emphasis: {
|
|
emphasis: {
|
|
areaColor: cityColors[city],
|
|
areaColor: cityColors[city],
|
|
- borderColor: 'rgba(0,0,0,0)'
|
|
|
|
|
|
+ borderColor: 'none'
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ silent: true
|
|
};
|
|
};
|
|
});
|
|
});
|
|
// 配置项
|
|
// 配置项
|
|
@@ -169,7 +168,7 @@ export default {
|
|
center: center,
|
|
center: center,
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
- areaColor: 'rgba(0,0,0,0)',
|
|
|
|
|
|
+ areaColor: 'none',
|
|
borderColor: '#096DF3'
|
|
borderColor: '#096DF3'
|
|
},
|
|
},
|
|
emphasis: {
|
|
emphasis: {
|
|
@@ -198,6 +197,7 @@ export default {
|
|
data: seriesData
|
|
data: seriesData
|
|
}]
|
|
}]
|
|
};
|
|
};
|
|
|
|
+
|
|
// 使用配置项生成图表
|
|
// 使用配置项生成图表
|
|
that.myChart.setOption(option);
|
|
that.myChart.setOption(option);
|
|
|
|
|
|
@@ -211,29 +211,45 @@ export default {
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
areaColor: 'red',
|
|
areaColor: 'red',
|
|
- borderColor: 'rgba(0,0,0,0)'
|
|
|
|
|
|
+ borderColor: 'none'
|
|
},
|
|
},
|
|
emphasis: {
|
|
emphasis: {
|
|
areaColor: 'none',
|
|
areaColor: 'none',
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ silent: true
|
|
};
|
|
};
|
|
} else {
|
|
} else {
|
|
return {
|
|
return {
|
|
name: item.name,
|
|
name: item.name,
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
- areaColor: cityColors[item.name] || 'rgba(0,0,0,0)',
|
|
|
|
- borderColor: 'rgba(0,0,0,0)'
|
|
|
|
|
|
+ areaColor: cityColors[item.name] || 'none',
|
|
|
|
+ borderColor: 'none'
|
|
},
|
|
},
|
|
emphasis: {
|
|
emphasis: {
|
|
areaColor: 'none',
|
|
areaColor: 'none',
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ silent: true
|
|
};
|
|
};
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+ if(!updatedSeriesData.find(item=>item.name === params.name)){
|
|
|
|
+ updatedSeriesData.push({
|
|
|
|
+ name: params.name,
|
|
|
|
+ itemStyle: {
|
|
|
|
+ normal: {
|
|
|
|
+ areaColor: 'red',
|
|
|
|
+ borderColor: 'none'
|
|
|
|
+ },
|
|
|
|
+ emphasis: {
|
|
|
|
+ areaColor: 'none',
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ silent: true
|
|
|
|
+ })
|
|
|
|
+ };
|
|
// 更新图表
|
|
// 更新图表
|
|
that.myChart.setOption({
|
|
that.myChart.setOption({
|
|
geo: {
|
|
geo: {
|