From b79c0124a44b7af9c3c55c5e19617dd4de162497 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 05 三月 2025 16:24:43 +0800 Subject: [PATCH] 污染溯源模块编写中 --- src/components/animation/SatelliteAnimation.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/animation/SatelliteAnimation.vue b/src/components/animation/SatelliteAnimation.vue index b3cfaaf..5680a41 100644 --- a/src/components/animation/SatelliteAnimation.vue +++ b/src/components/animation/SatelliteAnimation.vue @@ -100,12 +100,19 @@ const d = data[index]; // SatelliteProxy.clearText(mapViews); // eslint-disable-next-line vue/no-mutating-props - that.mapViews.textViews = SatelliteProxy.drawDataText( + const { textViews, labelsLayer } = SatelliteProxy.drawDataText( that.mapViews.points, d, that.mapViews.textViews ); - SatelliteProxy.drawColor(that.mapViews.gridViews, d); + // eslint-disable-next-line vue/no-mutating-props + that.mapViews.textViews = textViews; + // eslint-disable-next-line vue/no-mutating-props + that.mapViews.labelsLayer = labelsLayer; + SatelliteProxy.drawColor({ + gridViews: that.mapViews.gridViews, + gridDataDetail: d + }); } ); }, -- Gitblit v1.9.3