quanyawei
2024-05-13 1ee177908aaf4cf2474384503404cd238036596c
Merge branch 'feature_1.0'
1 files modified
12 ■■■■ changed files
src/views/list/road.vue 12 ●●●● patch | view | raw | blame | history
src/views/list/road.vue
@@ -386,8 +386,15 @@
  }
  // 显示所有矩形
  showAllPolygon() {
    console.log("this.dataSource", this.dataSource);
    this.dataSource.forEach((item: any) => {
    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);
@@ -397,6 +404,7 @@
        this.map.addOverlay(polygon);
      }
    });
    });
  }
  // 显示矩形
  handleShowPolygon(record: any) {