瀏覽代碼

修复

master
huxinglu 4 年之前
父節點
當前提交
57a901494e
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. +6
    -2
      src/views/command/index.vue

+ 6
- 2
src/views/command/index.vue 查看文件

@@ -180,7 +180,6 @@
me.addBound2();
me.map.setFitView(this.polygonList)
me.getDriver()
me.loading = false
});
},
computed: {
@@ -419,10 +418,14 @@
let me = this
setTimeout(function () {
let marker = me.markerList.find(item => item.childData.id == child.id)
me.questionId=child.id
if (marker) {
me.questionId=child.id
me.InfoWindow.open(me.map, marker.getPosition());
}
let findDriver = me.driverDataList.find(item => item.id == child.driverId)
if (findDriver&&findDriver.pointList&&findDriver.pointList.length>0) {
me.InfoWindow.open(me.map, new AMap.LngLat(findDriver.pointList[0].x, findDriver.pointList[0].y));
}
me.checkDriver(child.driverId)
}, 500)
},
@@ -443,6 +446,7 @@
this.driverList.push(polygons)
}
})
this.loading = false
}).catch(e => {
});
},

Loading…
取消
儲存