From 7eb2abf43167d9db3fca2e7958b90ff1bea0cead Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期一, 03 三月 2025 13:54:31 +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