Commit 51cd2d6b by 张杰

修复bug

1 parent 5bd77316
......@@ -862,16 +862,16 @@ export default {
let filterList = items.filter((item) => {
return !this.monitorList[item.sn];
});
let arr = this.monitorList.itemArr || [];
console.log(arr.length)
console.log(arr.length);
filterList.forEach((item) => {
item.eLocateType = "gpsLocation";
this.monitorList[item.sn] = item;
this.monitorList.count++;
arr.unshift(item.sn);
});
console.log(arr)
console.log(arr);
this.$set(this.monitorList, "itemArr", arr);
this.getPositionData();
}
......@@ -888,7 +888,9 @@ export default {
this.monitorList.itemArr = list.filter((k) => k != item.sn);
//this.monitorList.itemArr.splice(this.monitorList.itemArr.indexOf(item.sn||item), 1)
this.monitorList = Object.assign({}, obj);
this.monitorList.count--;
if (this.monitorList.count > 0) {
this.monitorList.count--;
}
console.log(item);
EventBus.$emit(
"uiMap.monitor.destroy",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!