|
@@ -24,18 +24,65 @@
|
|
|
<el-tab-pane label="周边事件" name="event">
|
|
|
<div class="forthis">
|
|
|
<div class="i-list-con overflow-y" style="height: 50vh;">
|
|
|
- <div class="d-l-con d-evnet-list-con" v-for="(item,index) in eventList"
|
|
|
- v-on:click="dropLocation(item.latitude,item.longitude)">
|
|
|
- <!-- <img :src="" v-if="item.picturePath!=null&&item.picturePath!=''" class="event-list-img"> -->
|
|
|
- <img :src="item.picturePath"
|
|
|
- v-if="item.picturePath!=null&&item.picturePath!=''"
|
|
|
- class="event-list-img">
|
|
|
- <img src="@/assets/images/visual/img-sample.png" v-else
|
|
|
- class="event-list-img">
|
|
|
- <div class="event-list-text">
|
|
|
- <h3>{{item.eventTitle}}</h3>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div class="d-l-con padding-box nowrap" v-for="(item,index) in eventList"
|
|
|
+ @click="dropLocation(item.latitude,item.longitude)">
|
|
|
+ <div class="bgt-img">
|
|
|
+ <img v-if="item.picturePath!=null&&item.picturePath!=''" :src="item.picturePath"
|
|
|
+ style="width: 93px;height: 64px"/>
|
|
|
+ <img v-else src="../assets/images/integrated/event-img-sub.png" style="width: 93px;height: 64px"/>
|
|
|
+ </div>
|
|
|
+ <div class="bgt-info">
|
|
|
+ <div v-if="item.eventStatusValue=='forest_event_status_1'&&item.urgeCount==0"
|
|
|
+ class="event-state-sb">
|
|
|
+ <i class="el-icon-caret-left"></i>
|
|
|
+ <div class="event-list-state-sb">
|
|
|
+ 新上报
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.eventStatusValue=='forest_event_status_1'&&item.urgeCount>0" class="event-state-cb">
|
|
|
+ <i class="el-icon-caret-left"></i>
|
|
|
+ <div class="event-list-state-cb">
|
|
|
+ 催办
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.eventStatusValue=='forest_event_status_2'" class="event-state-qs">
|
|
|
+ <i class="el-icon-caret-left"></i>
|
|
|
+ <div class="event-list-state-qs">
|
|
|
+ 签收
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.eventStatusValue=='forest_event_status_3'" class="event-state-wb">
|
|
|
+ <i class="el-icon-caret-left"></i>
|
|
|
+ <div class="event-list-state-wb">
|
|
|
+ 误报
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.eventStatusValue=='forest_event_status_4'" class="event-state-cf">
|
|
|
+ <i class="el-icon-caret-left"></i>
|
|
|
+ <div class="event-list-state-cf">
|
|
|
+ 重复
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.eventStatusValue=='forest_event_status_5'" class="event-state-bj">
|
|
|
+ <i class="el-icon-caret-left"></i>
|
|
|
+ <div class="event-list-state-bj">
|
|
|
+ 办结
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.eventStatusValue=='forest_event_status_6'" class="event-state-gd">
|
|
|
+ <i class="el-icon-caret-left"></i>
|
|
|
+ <div class="event-list-state-gd">
|
|
|
+ 归档
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="bgt-info-name">{{ item.reportor }} {{ item.eventName }}</div>
|
|
|
+ <div class="bgt-info-place">
|
|
|
+ <ul>
|
|
|
+ <li>{{ item.reportTime }}</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
@@ -531,7 +578,7 @@
|
|
|
this.markersList = []
|
|
|
this.cameraList = []
|
|
|
this.cameraMarkersList = []
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
getNearEvent() {
|
|
|
if (this.longitude == null || this.longitude == "" || this.latitude == null || this.latitude == "") {
|
|
@@ -552,69 +599,88 @@
|
|
|
let that = this
|
|
|
getNearEvent(this.longitude, this.latitude).then(res => {
|
|
|
that.markersList = []
|
|
|
- that.eventList = []
|
|
|
- if (res.data != null && res.data.length > 0) {
|
|
|
- for (let i = 0; i < res.data.length; i++) {
|
|
|
- let markersMap = {
|
|
|
- lng: 124.59,
|
|
|
- lat: 43.02,
|
|
|
- icon: 'marker',
|
|
|
- bindPopupHtml: '',
|
|
|
- click: '',
|
|
|
- parameter: '',
|
|
|
- keepBindPopup: false,
|
|
|
- isAggregation: false
|
|
|
- }
|
|
|
- if (res.data.length > 50) {
|
|
|
- markersMap.isAggregation = true
|
|
|
- }
|
|
|
- if (res.data[i].eventStatus == "event_event_status_1" || res.data[i].eventStatus ==
|
|
|
- "event_event_status_2" || res.data[i].eventStatus == "event_event_status_6") {
|
|
|
- markersMap.click = "showEventInfo_Processed"
|
|
|
- markersMap.icon = "sj-icon-map-clz"
|
|
|
- } else if (res.data[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[i].id
|
|
|
- markersMap.lng = res.data[i].longitude
|
|
|
- markersMap.lat = res.data[i].latitude
|
|
|
- markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>经纬度:' + res.data[i].longitude + ',' + res.data[i]
|
|
|
- .latitude + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>事件名称:' + res.data[i].eventTitle + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>事件时间:' + res.data[i].reportTime + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '</div>'
|
|
|
- that.markersList.push(markersMap)
|
|
|
- }
|
|
|
- that.eventList = res.data
|
|
|
- setTimeout(() => {
|
|
|
- that.$refs.eventLocationSupermap.clearM(true)
|
|
|
- that.$refs.eventLocationSupermap.clearM(false)
|
|
|
- that.$refs.eventLocationSupermap.setMarkers(that.markersList)
|
|
|
- that.$refs.eventLocationSupermap.setMarkers(marker)
|
|
|
- }, 1000)
|
|
|
- }
|
|
|
+ that.eventList=res.data
|
|
|
+ if (this.eventList != null && this.eventList.length > 0) {
|
|
|
+ for (let i = 0; i < this.eventList.length; i++) {
|
|
|
+ let markersMap = {
|
|
|
+ lng: 124.59,
|
|
|
+ lat: 43.02,
|
|
|
+ icon: 'marker',
|
|
|
+ bindPopupHtml: '',
|
|
|
+ click: '',
|
|
|
+ parameter: '',
|
|
|
+ keepBindPopup: false,
|
|
|
+ isAggregation: false
|
|
|
+ }
|
|
|
+ if (this.eventList.length > 50) {
|
|
|
+ markersMap.isAggregation = true
|
|
|
+ }
|
|
|
+ if (this.eventList[i].eventStatusValue == 'forest_event_status_1'&&this.eventList[i].urgeCount==0) {
|
|
|
+ markersMap.click = 'showEventDialog'
|
|
|
+ markersMap.icon = 'sj-icon-map-xinshangbao'
|
|
|
+ markersMap.isAggregation = false
|
|
|
+ }if (this.eventList[i].eventStatusValue == 'forest_event_status_1'&&this.eventList[i].urgeCount>0) {
|
|
|
+ markersMap.click = 'showEventDialog'
|
|
|
+ markersMap.icon = 'sj-icon-map-cuiban'
|
|
|
+ markersMap.isAggregation = false
|
|
|
+ } else if (this.eventList[i].eventStatusValue == 'forest_event_status_2') {
|
|
|
+ markersMap.click = 'showEventDialog'
|
|
|
+ markersMap.icon = 'sj-icon-map-qianshou'
|
|
|
+ }else if (this.eventList[i].eventStatusValue == 'forest_event_status_5') {
|
|
|
+ markersMap.click = 'showEventDialog'
|
|
|
+ markersMap.icon = 'sj-icon-map-banjie'
|
|
|
+ } else if (this.eventList[i].eventStatusValue == 'forest_event_status_6') {
|
|
|
+ markersMap.click = 'showEventDialog'
|
|
|
+ markersMap.icon = 'sj-icon-map-guidnag'
|
|
|
+ }
|
|
|
+ markersMap.parameter = this.eventList[i].eventCode
|
|
|
+ markersMap.lng = this.eventList[i].longitude
|
|
|
+ markersMap.lat = this.eventList[i].latitude
|
|
|
+ markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
+ '<span>' +
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
+ ' <h4>经纬度:' + this.eventList[i].longitude + ',' + this.eventList[i].latitude + '</h4>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </span>' +
|
|
|
+ '<span>' +
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
+ ' <h4>事件名称:' + this.eventList[i].eventName + '</h4>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </span>' +
|
|
|
+ '<span>' +
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
+ ' <h4>事件时间:' + this.eventList[i].reportTime + '</h4>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </span>'
|
|
|
+ if (this.eventList[i].picturePath != null && this.eventList[i].picturePath != '') {
|
|
|
+ markersMap.bindPopupHtml += '<span>' +
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
+ '<img src="' + this.eventList[i].picturePath + '" style="width: 150px;height: 100px"/>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </span>'
|
|
|
+ }
|
|
|
+ markersMap.bindPopupHtml += '</div>'
|
|
|
+ that.markersList.push(markersMap)
|
|
|
+ }
|
|
|
+ setTimeout(() => {
|
|
|
+ that.$refs.eventLocationSupermap.clearM(false)
|
|
|
+ that.$refs.eventLocationSupermap.clearM(true)
|
|
|
+ that.$refs.eventLocationSupermap.setMarkers(that.markersList)
|
|
|
+ }, 2000)
|
|
|
+ } else {
|
|
|
+ setTimeout(() => {
|
|
|
+ that.$refs.eventLocationSupermap.clearM(false)
|
|
|
+ that.$refs.eventLocationSupermap.clearM(true)
|
|
|
+ }, 2000)
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
handleClick(tab, event) {
|