|
@@ -845,7 +845,6 @@
|
|
|
channelCode.push(res.data[i].channelCode);
|
|
|
}
|
|
|
}
|
|
|
- //this.preview("ZgVzqsjwA1DT3G85KJ7HH0");
|
|
|
if(channelCode!=null&&channelCode.length>0){
|
|
|
this.preview(channelCode);
|
|
|
}else{
|
|
@@ -981,18 +980,18 @@
|
|
|
that.todayEventCountList = res.data.eventcountStatus
|
|
|
that.todayEventSourcetList = res.data.eventcountSource
|
|
|
|
|
|
- res.data.eventcountStatus.forEach(function(data, index) {
|
|
|
- that.$set(that.todayEventCountList[0], 'icon', 'sj-icon-wcl');
|
|
|
- that.$set(that.todayEventCountList[1], 'icon', 'sj-icon-clz');
|
|
|
- that.$set(that.todayEventCountList[2], 'icon', 'sj-icon-ywc');
|
|
|
+ res.data.eventcountStatus.forEach(function(data, index) {
|
|
|
+ that.$set(that.todayEventCountList[0], 'icon', 'sj-icon-wcl');
|
|
|
+ that.$set(that.todayEventCountList[1], 'icon', 'sj-icon-clz');
|
|
|
+ that.$set(that.todayEventCountList[2], 'icon', 'sj-icon-ywc');
|
|
|
|
|
|
- });
|
|
|
- res.data.eventcountSource.forEach(function(data, index) {
|
|
|
- that.$set(that.todayEventSourcetList[0], 'icon', 'sj-icon-rg');
|
|
|
- that.$set(that.todayEventSourcetList[1], 'icon', 'sj-icon-hx');
|
|
|
- that.$set(that.todayEventSourcetList[2], 'icon', 'sj-icon-kk');
|
|
|
+ });
|
|
|
+ res.data.eventcountSource.forEach(function(data, index) {
|
|
|
+ that.$set(that.todayEventSourcetList[0], 'icon', 'sj-icon-rg');
|
|
|
+ that.$set(that.todayEventSourcetList[1], 'icon', 'sj-icon-hx');
|
|
|
+ that.$set(that.todayEventSourcetList[2], 'icon', 'sj-icon-kk');
|
|
|
|
|
|
- });
|
|
|
+ });
|
|
|
// 事件分布
|
|
|
that.todayEventCountDeptList = res.data.eventcountDept
|
|
|
// 事件分类
|
|
@@ -1010,7 +1009,7 @@
|
|
|
|
|
|
that.markersList = [];
|
|
|
that.eventList = [];
|
|
|
- if(res.data.eventListAll!=null&&res.data.eventListAll.length>0){
|
|
|
+ if (res.data.eventListAll != null && res.data.eventListAll.length > 0) {
|
|
|
for (let i = 0; i < res.data.eventListAll.length; i++) {
|
|
|
let markersMap = {
|
|
|
lng: 124.59,
|
|
@@ -1022,22 +1021,26 @@
|
|
|
keepBindPopup: false,
|
|
|
isAggregation: false
|
|
|
}
|
|
|
- if(res.data.eventListAll.length>50){
|
|
|
+ if (res.data.eventListAll.length > 50) {
|
|
|
markersMap.isAggregation = true
|
|
|
}
|
|
|
- if(res.data.eventListAll[i].eventStatus=="event_event_status_1"||res.data.eventListAll[i].eventStatus=="event_event_status_2"||res.data.eventListAll[i].eventStatus=="event_event_status_6"){
|
|
|
+ if (res.data.eventListAll[i].eventStatus == "event_event_status_1" || res.data.eventListAll[i].eventStatus == "event_event_status_2" || res.data.eventListAll[i].eventStatus == "event_event_status_6") {
|
|
|
markersMap.click = "showEventInfo_Processed"
|
|
|
- }else if(res.data.eventListAll[i].eventStatus=="event_event_status_4"){
|
|
|
+ markersMap.icon = "sj-icon-map-clz"
|
|
|
+ } else if (res.data.eventListAll[i].eventStatus == "event_event_status_4") {
|
|
|
markersMap.click = "showEventInfo_notProcessed"
|
|
|
+ markersMap.icon = "sj-icon-map-wcl"
|
|
|
+ } else {
|
|
|
+ markersMap.icon = "sj-icon-map-ywc"
|
|
|
}
|
|
|
markersMap.parameter = res.data.eventListAll[i].id
|
|
|
markersMap.lng = res.data.eventListAll[i].longitude
|
|
|
- markersMap.lat =res.data.eventListAll[i].latitude
|
|
|
+ markersMap.lat = res.data.eventListAll[i].latitude
|
|
|
markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
'<span>' +
|
|
|
' <div class="d-l-con">' +
|
|
|
' <div class="d-l-l-text">' +
|
|
|
- ' <h4>经纬度:' +res.data.eventListAll[i].longitude + ',' +res.data.eventListAll[i]
|
|
|
+ ' <h4>经纬度:' + res.data.eventListAll[i].longitude + ',' + res.data.eventListAll[i]
|
|
|
.latitude + '</h4>' +
|
|
|
' </div>' +
|
|
|
' </div>' +
|
|
@@ -1045,38 +1048,39 @@
|
|
|
'<span>' +
|
|
|
' <div class="d-l-con">' +
|
|
|
' <div class="d-l-l-text">' +
|
|
|
- ' <h4>事件名称:' +res.data.eventListAll[i].eventTitle + '</h4>' +
|
|
|
+ ' <h4>事件名称:' + res.data.eventListAll[i].eventTitle + '</h4>' +
|
|
|
' </div>' +
|
|
|
' </div>' +
|
|
|
' </span>' +
|
|
|
'<span>' +
|
|
|
' <div class="d-l-con">' +
|
|
|
' <div class="d-l-l-text">' +
|
|
|
- ' <h4>事件时间:' +res.data.eventListAll[i].reportTime + '</h4>' +
|
|
|
+ ' <h4>事件时间:' + res.data.eventListAll[i].reportTime + '</h4>' +
|
|
|
' </div>' +
|
|
|
' </div>' +
|
|
|
' </span>' +
|
|
|
'</div>';
|
|
|
that.markersList.push(markersMap)
|
|
|
}
|
|
|
- that.eventList=res.data.eventListAll;
|
|
|
+ that.eventList = res.data.eventListAll;
|
|
|
setTimeout(() => {
|
|
|
that.$refs.supermap.clearM(false)
|
|
|
that.$refs.supermap.clearM(true)
|
|
|
that.$refs.supermap.setMarkers(that.markersList)
|
|
|
- },1000)
|
|
|
+ }, 1000)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
todayEventCountSetMarkers(eventStatus) {
|
|
|
+ if (eventStatus == "event_event_status_3") {
|
|
|
+ return
|
|
|
+ }
|
|
|
//点击今日事件前三个按钮列表
|
|
|
let that = this
|
|
|
getEventStatusList(eventStatus).then(res => {
|
|
|
- that.$refs.supermap.clearM(false)
|
|
|
- that.$refs.supermap.clearM(true)
|
|
|
- that.markersList = [];
|
|
|
that.eventList = [];
|
|
|
- if(res.data.eventList!=null&&res.data.eventList.length>0){
|
|
|
+ that.markersList = [];
|
|
|
+ if (res.data.eventList != null && res.data.eventList.length > 0) {
|
|
|
for (let i = 0; i < res.data.eventList.length; i++) {
|
|
|
let markersMap = {
|
|
|
lng: 124.59,
|
|
@@ -1088,24 +1092,26 @@
|
|
|
keepBindPopup: false,
|
|
|
isAggregation: false
|
|
|
}
|
|
|
- if(res.data.eventList.length>50){
|
|
|
+ if (res.data.eventList.length > 50) {
|
|
|
markersMap.isAggregation = true
|
|
|
}
|
|
|
- if(eventStatus=="event_event_status_1_2_6"){
|
|
|
+ if (eventStatus == "event_event_status_1_2_6") {
|
|
|
markersMap.click = "showEventInfo_Processed"
|
|
|
- }else if(eventStatus=="event_event_status_4"){
|
|
|
+ markersMap.icon = "sj-icon-map-clz"
|
|
|
+ } else if (eventStatus == "event_event_status_4") {
|
|
|
markersMap.click = "showEventInfo_notProcessed"
|
|
|
- }else{
|
|
|
- markersMap.click = "showEventInfo_Processed"
|
|
|
+ markersMap.icon = "sj-icon-map-wcl"
|
|
|
+ } else {
|
|
|
+ markersMap.icon = "sj-icon-map-ywc"
|
|
|
}
|
|
|
markersMap.parameter = res.data.eventList[i].id
|
|
|
markersMap.lng = res.data.eventList[i].longitude
|
|
|
- markersMap.lat =res.data.eventList[i].latitude
|
|
|
+ markersMap.lat = res.data.eventList[i].latitude
|
|
|
markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
'<span>' +
|
|
|
' <div class="d-l-con">' +
|
|
|
' <div class="d-l-l-text">' +
|
|
|
- ' <h4>经纬度:' +res.data.eventList[i].longitude + ',' +res.data.eventList[i]
|
|
|
+ ' <h4>经纬度:' + res.data.eventList[i].longitude + ',' + res.data.eventList[i]
|
|
|
.latitude + '</h4>' +
|
|
|
' </div>' +
|
|
|
' </div>' +
|
|
@@ -1113,33 +1119,27 @@
|
|
|
'<span>' +
|
|
|
' <div class="d-l-con">' +
|
|
|
' <div class="d-l-l-text">' +
|
|
|
- ' <h4>事件名称:' +res.data.eventList[i].eventTitle + '</h4>' +
|
|
|
+ ' <h4>事件名称:' + res.data.eventList[i].eventTitle + '</h4>' +
|
|
|
' </div>' +
|
|
|
' </div>' +
|
|
|
' </span>' +
|
|
|
'<span>' +
|
|
|
' <div class="d-l-con">' +
|
|
|
' <div class="d-l-l-text">' +
|
|
|
- ' <h4>事件时间:' +res.data.eventList[i].reportTime + '</h4>' +
|
|
|
+ ' <h4>事件时间:' + res.data.eventList[i].reportTime + '</h4>' +
|
|
|
' </div>' +
|
|
|
' </div>' +
|
|
|
' </span>' +
|
|
|
'</div>';
|
|
|
that.markersList.push(markersMap)
|
|
|
}
|
|
|
- that.eventList=res.data.eventList;
|
|
|
- that.$refs.supermap.setMarkers(that.markersList)
|
|
|
+ that.eventList = res.data.eventList;
|
|
|
}
|
|
|
- // eventCode: "718b040cf1f747eb8ab4ffc6db643ca0"
|
|
|
- // eventContent: "集安-东明-可见光2022-06-27 02:42:04烟雾报警"
|
|
|
- // eventSource: "event_source_2"
|
|
|
- // eventStatus: "event_event_status_4"
|
|
|
- // eventTitle: "集安-东明点位2022-06-27 02:42:04烟雾报警"
|
|
|
- // id: "01458301eb834f3da5be16a75cd38bb6"
|
|
|
- // latitude: "43.85618180244526"
|
|
|
- // longitude: "125.31971797326736"
|
|
|
- // reportBy: "集安-东明点位"
|
|
|
- // reportTime: "2022-06-27 02:42:04"
|
|
|
+ setTimeout(() => {
|
|
|
+ that.$refs.supermap.clearM(true)
|
|
|
+ that.$refs.supermap.clearM(false)
|
|
|
+ that.$refs.supermap.setMarkers(that.markersList)
|
|
|
+ }, 500)
|
|
|
})
|
|
|
},
|
|
|
todayEventSourcetSetMarkers(eventSource) {
|
|
@@ -1150,26 +1150,32 @@
|
|
|
that.$refs.supermap.clearM(false)
|
|
|
that.eventList = [];
|
|
|
that.markersList = [];
|
|
|
- let markersMap = {
|
|
|
- lng: 124.59,
|
|
|
- lat: 43.02,
|
|
|
- icon: 'marker',
|
|
|
- bindPopupHtml: '',
|
|
|
- click: '',
|
|
|
- keepBindPopup: false,
|
|
|
- isAggregation: false
|
|
|
- }
|
|
|
+
|
|
|
if(res.data.eventList!=null&&res.data.eventList.length>0){
|
|
|
- if(res.data.eventList.length>50){
|
|
|
- markersMap.isAggregation = true
|
|
|
- }
|
|
|
for (let i = 0; i < res.data.eventList.length; i++) {
|
|
|
+ let markersMap = {
|
|
|
+ lng: 124.59,
|
|
|
+ lat: 43.02,
|
|
|
+ icon: 'marker',
|
|
|
+ bindPopupHtml: '',
|
|
|
+ click: '',
|
|
|
+ keepBindPopup: false,
|
|
|
+ isAggregation: false
|
|
|
+ }
|
|
|
+ if(res.data.eventList.length>50){
|
|
|
+ markersMap.isAggregation = true
|
|
|
+ }
|
|
|
+ if(eventSource="event_source_1_3"){
|
|
|
+ markersMap.icon = "sj-icon-map-rg"
|
|
|
+ }else if(eventSource="camera_type_1"){
|
|
|
+ markersMap.icon = "sj-icon-map-hx"
|
|
|
+ }else{
|
|
|
+ markersMap.icon = "sj-icon-map-kk"
|
|
|
+ }
|
|
|
if(res.data.eventList[i].eventStatus=="event_event_status_1"||res.data.eventList[i].eventStatus=="event_event_status_2"||res.data.eventList[i].eventStatus=="event_event_status_6"){
|
|
|
markersMap.click = "showEventInfo_Processed"
|
|
|
}else if(res.data.eventList[i].eventStatus=="event_event_status_4"){
|
|
|
markersMap.click = "showEventInfo_notProcessed"
|
|
|
- }else{
|
|
|
- markersMap.click = "showEventInfo_Processed"
|
|
|
}
|
|
|
markersMap.lng = res.data.eventList[i].longitude
|
|
|
markersMap.lat =res.data.eventList[i].latitude
|
|
@@ -1202,16 +1208,6 @@
|
|
|
that.eventList=res.data.eventList;
|
|
|
that.$refs.supermap.setMarkers(that.markersList)
|
|
|
}
|
|
|
- // eventCode: "718b040cf1f747eb8ab4ffc6db643ca0"
|
|
|
- // eventContent: "集安-东明-可见光2022-06-27 02:42:04烟雾报警"
|
|
|
- // eventSource: "event_source_2"
|
|
|
- // eventStatus: "event_event_status_4"
|
|
|
- // eventTitle: "集安-东明点位2022-06-27 02:42:04烟雾报警"
|
|
|
- // id: "01458301eb834f3da5be16a75cd38bb6"
|
|
|
- // latitude: "43.85618180244526"
|
|
|
- // longitude: "125.31971797326736"
|
|
|
- // reportBy: "集安-东明点位"
|
|
|
- // reportTime: "2022-06-27 02:42:04"
|
|
|
})
|
|
|
},
|
|
|
todayEventByDeptIdList(deptId) {
|
|
@@ -1222,21 +1218,29 @@
|
|
|
that.$refs.supermap.clearM(false)
|
|
|
that.markersList = [];
|
|
|
that.eventList = [];
|
|
|
- let markersMap = {
|
|
|
- lng: 124.59,
|
|
|
- lat: 43.02,
|
|
|
- icon: 'marker',
|
|
|
- bindPopupHtml: '',
|
|
|
- click: '',
|
|
|
- keepBindPopup: false,
|
|
|
- isAggregation: false
|
|
|
- }
|
|
|
if(res.data.eventList!=null&&res.data.eventList.length>0){
|
|
|
- if(res.data.eventList.length>50){
|
|
|
- markersMap.isAggregation = true
|
|
|
- }
|
|
|
for (let i = 0; i < res.data.eventList.length; i++) {
|
|
|
-
|
|
|
+ let markersMap = {
|
|
|
+ lng: 124.59,
|
|
|
+ lat: 43.02,
|
|
|
+ icon: 'marker',
|
|
|
+ bindPopupHtml: '',
|
|
|
+ click: '',
|
|
|
+ keepBindPopup: false,
|
|
|
+ isAggregation: false
|
|
|
+ }
|
|
|
+ if(res.data.eventList.length>50){
|
|
|
+ markersMap.isAggregation = true
|
|
|
+ }
|
|
|
+ if(res.data.eventList[i].eventStatus=="event_event_status_1"||res.data.eventList[i].eventStatus=="event_event_status_2"||res.data.eventList[i].eventStatus=="event_event_status_6"){
|
|
|
+ markersMap.click = "showEventInfo_Processed"
|
|
|
+ markersMap.icon = "sj-icon-map-clz"
|
|
|
+ }else if(res.data.eventList[i].eventStatus=="event_event_status_4"){
|
|
|
+ markersMap.click = "showEventInfo_notProcessed"
|
|
|
+ markersMap.icon = "sj-icon-map-wcl"
|
|
|
+ }else{
|
|
|
+ markersMap.icon = "sj-icon-map-ywc"
|
|
|
+ }
|
|
|
markersMap.lng = res.data.eventList[i].longitude
|
|
|
markersMap.lat =res.data.eventList[i].latitude
|
|
|
markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
@@ -1268,16 +1272,6 @@
|
|
|
that.eventList=res.data.eventList;
|
|
|
that.$refs.supermap.setMarkers(that.markersList)
|
|
|
}
|
|
|
- // eventCode: "718b040cf1f747eb8ab4ffc6db643ca0"
|
|
|
- // eventContent: "集安-东明-可见光2022-06-27 02:42:04烟雾报警"
|
|
|
- // eventSource: "event_source_2"
|
|
|
- // eventStatus: "event_event_status_4"
|
|
|
- // eventTitle: "集安-东明点位2022-06-27 02:42:04烟雾报警"
|
|
|
- // id: "01458301eb834f3da5be16a75cd38bb6"
|
|
|
- // latitude: "43.85618180244526"
|
|
|
- // longitude: "125.31971797326736"
|
|
|
- // reportBy: "集安-东明点位"
|
|
|
- // reportTime: "2022-06-27 02:42:04"
|
|
|
})
|
|
|
},
|
|
|
todayEventByTypeList(eventType) {
|
|
@@ -1302,6 +1296,15 @@
|
|
|
if(res.data.eventList.length>50){
|
|
|
markersMap.isAggregation = true
|
|
|
}
|
|
|
+ if(res.data.eventList[i].eventStatus=="event_event_status_1"||res.data.eventList[i].eventStatus=="event_event_status_2"||res.data.eventList[i].eventStatus=="event_event_status_6"){
|
|
|
+ markersMap.click = "showEventInfo_Processed"
|
|
|
+ markersMap.icon = "sj-icon-map-clz"
|
|
|
+ }else if(res.data.eventList[i].eventStatus=="event_event_status_4"){
|
|
|
+ markersMap.click = "showEventInfo_notProcessed"
|
|
|
+ markersMap.icon = "sj-icon-map-wcl"
|
|
|
+ }else{
|
|
|
+ markersMap.icon = "sj-icon-map-ywc"
|
|
|
+ }
|
|
|
markersMap.lng = res.data.eventList[i].longitude
|
|
|
markersMap.lat =res.data.eventList[i].latitude
|
|
|
markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
@@ -1333,16 +1336,6 @@
|
|
|
that.$refs.supermap.setMarkers(that.markersList)
|
|
|
}
|
|
|
that.eventList=res.data.eventList;
|
|
|
- // eventCode: "718b040cf1f747eb8ab4ffc6db643ca0"
|
|
|
- // eventContent: "集安-东明-可见光2022-06-27 02:42:04烟雾报警"
|
|
|
- // eventSource: "event_source_2"
|
|
|
- // eventStatus: "event_event_status_4"
|
|
|
- // eventTitle: "集安-东明点位2022-06-27 02:42:04烟雾报警"
|
|
|
- // id: "01458301eb834f3da5be16a75cd38bb6"
|
|
|
- // latitude: "43.85618180244526"
|
|
|
- // longitude: "125.31971797326736"
|
|
|
- // reportBy: "集安-东明点位"
|
|
|
- // reportTime: "2022-06-27 02:42:04"
|
|
|
})
|
|
|
},
|
|
|
dropLocation(lat,lng) {
|