|
@@ -672,29 +672,6 @@
|
|
|
that.$set(that.resourcesCountList[index], 'icon', icon);
|
|
|
that.$set(that.resourcesCountList[index], 'bg', getIconBg(icon));
|
|
|
})
|
|
|
- if (that.eventList == undefined) that.eventList = []
|
|
|
- if (that.eventList.length == 0) {
|
|
|
- //数据自动落点开始
|
|
|
- let maxCount = 100; //落点数超过这个数的资源不落点
|
|
|
- let list = res.data;
|
|
|
- let counts = [];
|
|
|
- let points = [];
|
|
|
- let types = [];
|
|
|
- for (let i = 0; i < list.length; i++) { //获取符合要求的类型及数量
|
|
|
- if (list[i].num <= maxCount) {
|
|
|
- counts.push(list[i].num);
|
|
|
- points.push({
|
|
|
- "type": list[i].type,
|
|
|
- "count": list[i].num
|
|
|
- });
|
|
|
- types.push(list[i].type);
|
|
|
- }
|
|
|
- }
|
|
|
- for (let i = 0; i < types.length; i++) {
|
|
|
- that.selectResourcesByLabel(types[i], '所有');
|
|
|
- }
|
|
|
- //数据自动落点结束
|
|
|
- }
|
|
|
})
|
|
|
},
|
|
|
sewageOutletClick(data) {
|
|
@@ -1003,7 +980,6 @@
|
|
|
this.getEventByReportorOrder(day)
|
|
|
this.getExposureStage(day)
|
|
|
this.getSupermap(day);
|
|
|
- this.getResourcesCount();
|
|
|
this.calendarDay = day
|
|
|
},
|
|
|
|
|
@@ -1346,7 +1322,19 @@
|
|
|
} else {
|
|
|
setTimeout(() => {
|
|
|
that.$refs.supermap.clearM()
|
|
|
- this.getResourcesCount();
|
|
|
+ //数据自动落点开始
|
|
|
+ let maxCount = 150; //落点数超过这个数的资源不落点
|
|
|
+ let list = that.resourcesCountList;
|
|
|
+ let types = [];
|
|
|
+ for (let i = 0; i < list.length; i++) { //获取符合要求的类型及数量
|
|
|
+ if (list[i].num <= maxCount) {
|
|
|
+ types.push(list[i].type);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (let i = 0; i < types.length; i++) {
|
|
|
+ that.selectResourcesByLabel(types[i], '所有');
|
|
|
+ }
|
|
|
+ //数据自动落点结束
|
|
|
}, 2000)
|
|
|
}
|
|
|
})
|
|
@@ -1849,4 +1837,4 @@
|
|
|
background-color: #0f3655;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|