From dd2ff26f240bcb79de082f1de4eaf6d2c973b28e Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 20 十月 2025 08:38:01 +0800
Subject: [PATCH] 2025.10.18 修改嫉妒报告生成逻辑
---
src/components/map/MapScene.vue | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/components/map/MapScene.vue b/src/components/map/MapScene.vue
index 89a665c..9e0fb06 100644
--- a/src/components/map/MapScene.vue
+++ b/src/components/map/MapScene.vue
@@ -42,6 +42,8 @@
import sceneInfoApi from '@/api/sceneInfoApi';
import marks from '@/utils/map/marks';
import MapUtil from '@/utils/map/util';
+import { useToolboxStore } from '@/stores/toolbox';
+import { mapStores } from 'pinia';
const lableMarkMap = new Map();
@@ -56,10 +58,14 @@
sceneMap: new Map()
};
},
+ computed: {
+ ...mapStores(useToolboxStore)
+ },
watch: {
// 褰撳垏鎹㈠尯鍘挎椂锛屾竻绌烘墍鏈夐�夐」
districtCode(nV, oV) {
if (nV != oV) {
+ this.toolboxStore.selectedDistrict = nV;
this.handelCheckAllChange(false);
}
}
@@ -95,7 +101,12 @@
const key = this.districtCode + t;
if (!lableMarkMap.has(key)) {
this.fetchScene(t).then((res) => {
- const layer = marks.createLabelMarks(sceneIcon(t), res);
+ const layer = marks.createLabelMarks(
+ sceneIcon(t),
+ res,
+ false,
+ true
+ );
lableMarkMap.set(key, { show: true, layer });
});
} else {
--
Gitblit v1.9.3