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