|
@@ -1056,6 +1056,7 @@
|
|
|
let that = this
|
|
|
getEventStatusList(eventStatus).then(res => {
|
|
|
that.$refs.supermap.clearM(false)
|
|
|
+ that.$refs.supermap.clearM(true)
|
|
|
that.eventList=res.data.eventList;
|
|
|
that.markersList = [];
|
|
|
let markersMap = {
|
|
@@ -1069,10 +1070,15 @@
|
|
|
isAggregation: false
|
|
|
}
|
|
|
if(res.data.eventList!=null&&res.data.eventList.length>0){
|
|
|
+ if(res.data.eventList.length>500){
|
|
|
+ markersMap.isAggregation = true
|
|
|
+ }
|
|
|
if(eventStatus=="event_event_status_1_2_6"){
|
|
|
markersMap.click = "showEventInfo_Processed"
|
|
|
}else if(eventStatus=="event_event_status_4"){
|
|
|
markersMap.click = "showEventInfo_notProcessed"
|
|
|
+ }else{
|
|
|
+ markersMap.click = "showEventInfo_Processed"
|
|
|
}
|
|
|
for (let i = 0; i < res.data.eventList.length; i++) {
|
|
|
markersMap.parameter = res.data.eventList[i].id
|
|
@@ -1122,6 +1128,7 @@
|
|
|
//点击今日事件后三个按钮列表
|
|
|
let that = this
|
|
|
getEventSourceList(eventSource).then(res => {
|
|
|
+ that.$refs.supermap.clearM(true)
|
|
|
that.$refs.supermap.clearM(false)
|
|
|
that.eventList=res.data.eventList;
|
|
|
that.markersList = [];
|
|
@@ -1135,6 +1142,9 @@
|
|
|
isAggregation: false
|
|
|
}
|
|
|
if(res.data.eventList!=null&&res.data.eventList.length>0){
|
|
|
+ if(res.data.eventList.length>500){
|
|
|
+ markersMap.isAggregation = true
|
|
|
+ }
|
|
|
for (let i = 0; i < res.data.eventList.length; i++) {
|
|
|
markersMap.lng = res.data.eventList[i].longitude
|
|
|
markersMap.lat =res.data.eventList[i].latitude
|
|
@@ -1182,6 +1192,7 @@
|
|
|
//点击事件分类
|
|
|
let that = this
|
|
|
getEventListByDeptIdList(deptId).then(res => {
|
|
|
+ that.$refs.supermap.clearM(true)
|
|
|
that.$refs.supermap.clearM(false)
|
|
|
that.eventList=res.data.eventList;
|
|
|
that.markersList = [];
|
|
@@ -1195,6 +1206,9 @@
|
|
|
isAggregation: false
|
|
|
}
|
|
|
if(res.data.eventList!=null&&res.data.eventList.length>0){
|
|
|
+ if(res.data.eventList.length>500){
|
|
|
+ markersMap.isAggregation = true
|
|
|
+ }
|
|
|
for (let i = 0; i < res.data.eventList.length; i++) {
|
|
|
markersMap.lng = res.data.eventList[i].longitude
|
|
|
markersMap.lat =res.data.eventList[i].latitude
|
|
@@ -1242,6 +1256,7 @@
|
|
|
//点击事件分类
|
|
|
let that = this
|
|
|
getEventListByTypeList(eventType).then(res => {
|
|
|
+ that.$refs.supermap.clearM(true)
|
|
|
that.$refs.supermap.clearM(false)
|
|
|
that.eventList=res.data.eventList;
|
|
|
that.markersList = [];
|
|
@@ -1255,6 +1270,9 @@
|
|
|
isAggregation: false
|
|
|
}
|
|
|
if(res.data.eventList!=null&&res.data.eventList.length>0){
|
|
|
+ if(res.data.eventList.length>500){
|
|
|
+ markersMap.isAggregation = true
|
|
|
+ }
|
|
|
for (let i = 0; i < res.data.eventList.length; i++) {
|
|
|
markersMap.lng = res.data.eventList[i].longitude
|
|
|
markersMap.lat =res.data.eventList[i].latitude
|