Commit 2a61db1c authored by zhanglw's avatar zhanglw

地磅

parent e90645d0
...@@ -78,9 +78,7 @@ export default { ...@@ -78,9 +78,7 @@ export default {
bindingStatus: false, bindingStatus: false,
//绑定的车牌号 //绑定的车牌号
bindingCar: "", bindingCar: "",
userNameList: [ userNameList: []
{value:'xxxxx'}, {value:'eeeeee'}
]
}; };
}, },
created() { created() {
......
...@@ -429,10 +429,6 @@ export default { ...@@ -429,10 +429,6 @@ export default {
this.getAreaInformation(); this.getAreaInformation();
this.getRoadblockInformation(); this.getRoadblockInformation();
}, 120000); }, 120000);
this.getAllOnlineCarPosition();
this.posTimer = setInterval(() => {
this.getAllOnlineCarPosition();
}, 2000);
this.drawNavigation(); this.drawNavigation();
}, },
getRoadblockInformation() { getRoadblockInformation() {
...@@ -556,6 +552,7 @@ export default { ...@@ -556,6 +552,7 @@ export default {
}); });
}, },
getAllOnlineCarPosition() { getAllOnlineCarPosition() {
let that = this
httpGet(posGetAllOnlineCarPosition).then((res) => { httpGet(posGetAllOnlineCarPosition).then((res) => {
if (res.code == 200) { if (res.code == 200) {
const layer = this.mapDom.getLayer('markerLayer'); const layer = this.mapDom.getLayer('markerLayer');
...@@ -791,11 +788,13 @@ export default { ...@@ -791,11 +788,13 @@ export default {
this.equipmentName = res1.data.content[0].equipmentName; this.equipmentName = res1.data.content[0].equipmentName;
//执行获取位置 //执行获取位置
if (this.equipmentName) { if (this.equipmentName) {
this.getAllOnlineCarPosition();
this.posTimer = setInterval(() => {
this.getAllOnlineCarPosition();
}, 2000);
this.zongTimer3 = setInterval(() => { this.zongTimer3 = setInterval(() => {
// this.getCarLoaction2();
this.getSerialReceiveIndex(); this.getSerialReceiveIndex();
}, 2000); }, 2000);
// this.getCarLoaction1();
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment