From 1ee177908aaf4cf2474384503404cd238036596c Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Mon, 13 May 2024 09:05:24 +0800
Subject: [PATCH] Merge branch 'feature_1.0'
---
src/views/list/road.vue | 28 ++++++++++++++++++----------
1 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/src/views/list/road.vue b/src/views/list/road.vue
index b302774..48ba8b9 100644
--- a/src/views/list/road.vue
+++ b/src/views/list/road.vue
@@ -386,16 +386,24 @@
}
// ������������������
showAllPolygon() {
- console.log("this.dataSource", this.dataSource);
- this.dataSource.forEach((item: any) => {
- if (item.bdValues) {
- let pointList = item.bdValues.map((item: any) => {
- return new BMapGL.Point(item.lng, item.lat);
- });
- let polygon = new BMapGL.Polygon([...pointList]);
- console.log("polygon", polygon);
- this.map.addOverlay(polygon);
- }
+ let macType = null;
+ if (this.carvalue !== "������������������") {
+ macType = this.carvalue;
+ }
+ get("coordinate/selectCruiserRoad", {
+ name: this.selectLuName,
+ mac: macType,
+ }).then((res) => {
+ res.data.data.forEach((item: any) => {
+ if (item.bdValues) {
+ let pointList = item.bdValues.map((item: any) => {
+ return new BMapGL.Point(item.lng, item.lat);
+ });
+ let polygon = new BMapGL.Polygon([...pointList]);
+ console.log("polygon", polygon);
+ this.map.addOverlay(polygon);
+ }
+ });
});
}
// ������������
--
Gitblit v1.8.0