From fa9d2b5117227f263ad9aa15b71bddb3fe64ac81 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 29 七月 2025 13:21:28 +0800
Subject: [PATCH] 新增巡查任务编辑功能

---
 src/utils/map/marks.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/utils/map/marks.js b/src/utils/map/marks.js
index a72dcdf..0b1ccce 100644
--- a/src/utils/map/marks.js
+++ b/src/utils/map/marks.js
@@ -25,7 +25,7 @@
     for (let i = 0; i < lnglats.length; i++) {
       data.push({
         lnglat: lnglats[i], //鐐规爣璁颁綅缃�
-        name: `${fDatas.times[i]}<br/>${_factor.factorName}: ${_factor.datas[i].factorData} mg/m鲁`,
+        name: `${fDatas.times[i]}<br/>${_factor.factorName}: ${_factor.datas[i].factorData} 渭g/m鲁`,
         id: i
       });
     }
@@ -86,7 +86,7 @@
    * @param {boolean} collision 鏍囨敞閬胯
    * @returns
    */
-  createLabelMarks(img, dataList, collision = true) {
+  createLabelMarks(img, dataList, collision = true, showTxt = true) {
     // eslint-disable-next-line no-undef
     const layer = new AMap.LabelsLayer({
       zooms: [3, 20],
@@ -119,7 +119,7 @@
           retina: true
         },
         text: {
-          content: data.name,
+          content: showTxt ? data.name : '',
           direction: 'top',
           offset: [0, -5],
           style: {

--
Gitblit v1.9.3