fix:修改病害对比注释

This commit is contained in:
SunTao 2025-01-03 10:11:38 +08:00
parent 63016e8726
commit b7f3afd8b0

View File

@ -74,7 +74,10 @@ export default {
mounted() {}, mounted() {},
created() {}, created() {},
methods: { methods: {
/* 绘制点位 */ /**
* @description: 绘制点位
* @return {void}
*/
drawMapPoints() { drawMapPoints() {
this.$refs.contentMap.clearMapFeature(); this.$refs.contentMap.clearMapFeature();
const features = []; const features = [];
@ -159,12 +162,20 @@ export default {
}); });
} }
}, },
/* 清除地图图层 */
/**
* @description: 清除地图图层
* @return {void}
*/
cleanLayer() { cleanLayer() {
this.$emit("clearMap"); this.$emit("clearMap");
this.$refs.contentMap.clearMapFeature(); this.$refs.contentMap.clearMapFeature();
}, },
/* 图层点击事件 */
/**
* @description: 图层点击事件
* @return {void}
*/
featureClick(feature) { featureClick(feature) {
if (feature && feature.get("type")) { if (feature && feature.get("type")) {
this.$emit("send-img", { this.$emit("send-img", {
@ -173,7 +184,11 @@ export default {
}); });
} }
}, },
/* 绘制柱状图 */
/**
* @description: 绘制柱状图
* @return {void}
*/
initEchart() { initEchart() {
const xData = this.mapObject.scale.map((item) => { const xData = this.mapObject.scale.map((item) => {
return item.label; return item.label;