From b7f3afd8b0c0d8975b04bebb55ec0eac53809eb4 Mon Sep 17 00:00:00 2001 From: SunTao <328867980@qq.com> Date: Fri, 3 Jan 2025 10:11:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E7=97=85?= =?UTF-8?q?=E5=AE=B3=E5=AF=B9=E6=AF=94=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/surface-map.vue | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) 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;