From 1423fa6ccb0e6d24e7f019cd08699c2dce58f535 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期三, 17 十二月 2025 15:01:41 +0800
Subject: [PATCH] 最新版本541200007
---
admin/src/components/business/OperaJkSketchLineMapWindow.vue | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/admin/src/components/business/OperaJkSketchLineMapWindow.vue b/admin/src/components/business/OperaJkSketchLineMapWindow.vue
index 5c0d87a..6b26a1b 100644
--- a/admin/src/components/business/OperaJkSketchLineMapWindow.vue
+++ b/admin/src/components/business/OperaJkSketchLineMapWindow.vue
@@ -69,6 +69,7 @@
import Pagination from '@/components/common/Pagination'
import GlobalWindow from '@/components/common/GlobalWindow'
import AMapLoader from '@amap/amap-jsapi-loader'
+import greenIcon from '@/assets/icons/location-green.png'
import blueIcon from '@/assets/icons/location-blue.png'
import redIcon from '@/assets/icons/location-red.png'
export default {
@@ -170,7 +171,7 @@
var allsteps = []
allsteps.push([item.startLogitude, item.startLatitude])
const steps = (item.steps || '').split(';')
- if (index != that.dataList.length - 1 || true) {
+ if (index != that.dataList.length - 1) {
steps.forEach(item1 => {
const ll = (item1 || '').split(',')
allsteps.push(ll)
@@ -216,12 +217,13 @@
const icon = new AMap.Icon({
size: new AMap.Size(30, 50), // 鍥炬爣灏哄
- image: index === 0 ? redIcon : blueIcon
+ image: index === 0 ? greenIcon : (index === that.dataList.length - 1 ? redIcon : blueIcon)
})
+ console.log("=====index====",index)
var marker = new AMap.Marker({
position: new AMap.LngLat(item.startLogitude, item.startLatitude),
- icon: index === 0 ? redIcon : blueIcon,
+ icon: icon,
anchor: 'bottom-center',
offset: new AMap.Pixel(0, 0)
})
--
Gitblit v1.9.3