|
@@ -24,7 +24,7 @@
|
|
</div>
|
|
</div>
|
|
</dv-border-box-13>
|
|
</dv-border-box-13>
|
|
</div>
|
|
</div>
|
|
- <!-- 2 事件统计-->
|
|
|
|
|
|
+ <!-- 2 事件统计11-->
|
|
<div class="forthis">
|
|
<div class="forthis">
|
|
<dv-border-box-13 :color="['#0e7957', '#0da24c']" backgroundColor="#09140e" style="padding-bottom: 1rem;">
|
|
<dv-border-box-13 :color="['#0e7957', '#0da24c']" backgroundColor="#09140e" style="padding-bottom: 1rem;">
|
|
<img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
|
|
<img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
|
|
@@ -279,7 +279,7 @@
|
|
<div class="d-l-con padding-box nowrap" v-for="(item,index) in eventList"
|
|
<div class="d-l-con padding-box nowrap" v-for="(item,index) in eventList"
|
|
@click="dropLocation(item.latitude,item.longitude)">
|
|
@click="dropLocation(item.latitude,item.longitude)">
|
|
<div class="bgt-img">
|
|
<div class="bgt-img">
|
|
- <img v-if="item.picturePath!=null&&item.picturePath!=''&& isAssetTypeAnImage(item.picturePath)"
|
|
|
|
|
|
+ <img v-if="item.picturePath!=null&&item.picturePath!=''&& item.pictureType=='image'"
|
|
:src="item.picturePath"
|
|
:src="item.picturePath"
|
|
style="width: 93px;height: 64px"/>
|
|
style="width: 93px;height: 64px"/>
|
|
<img v-else src="../assets/images/integrated/event-img-sub.png" style="width: 93px;height: 64px"/>
|
|
<img v-else src="../assets/images/integrated/event-img-sub.png" style="width: 93px;height: 64px"/>
|
|
@@ -373,7 +373,7 @@
|
|
<dv-decoration-3 style="width:150px;height:15px;margin-right: 1rem;"/>
|
|
<dv-decoration-3 style="width:150px;height:15px;margin-right: 1rem;"/>
|
|
</div>
|
|
</div>
|
|
<div class="i-list-con small-bottom-margin h-19">
|
|
<div class="i-list-con small-bottom-margin h-19">
|
|
- <dv-scroll-ranking-board :config="reportList" style="width: 100%;height: 20vh; padding:.5rem 1rem"/>
|
|
|
|
|
|
+ <dv-scroll-ranking-board :config="reportList" style="width: 100%;height: 300px; padding:.5rem 1rem"/>
|
|
</div>
|
|
</div>
|
|
</dv-border-box-13>
|
|
</dv-border-box-13>
|
|
</div>
|
|
</div>
|
|
@@ -559,27 +559,27 @@ export default {
|
|
keepBindPopup: false,
|
|
keepBindPopup: false,
|
|
isAggregation: false
|
|
isAggregation: false
|
|
}
|
|
}
|
|
- if (this.eventList.length > 50) {
|
|
|
|
|
|
+ if (this.eventList.length > 200) {
|
|
markersMap.isAggregation = true
|
|
markersMap.isAggregation = true
|
|
}
|
|
}
|
|
if (this.eventList[i].eventStatusValue == 'forest_event_status_1' && this.eventList[i].urgeCount == 0) {
|
|
if (this.eventList[i].eventStatusValue == 'forest_event_status_1' && this.eventList[i].urgeCount == 0) {
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.icon = 'sj-icon-map-xinshangbao'
|
|
markersMap.icon = 'sj-icon-map-xinshangbao'
|
|
- markersMap.isAggregation = false
|
|
|
|
}
|
|
}
|
|
if (this.eventList[i].eventStatusValue == 'forest_event_status_1' && this.eventList[i].urgeCount > 0) {
|
|
if (this.eventList[i].eventStatusValue == 'forest_event_status_1' && this.eventList[i].urgeCount > 0) {
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.icon = 'sj-icon-map-cuiban'
|
|
markersMap.icon = 'sj-icon-map-cuiban'
|
|
- markersMap.isAggregation = false
|
|
|
|
} else if (this.eventList[i].eventStatusValue == 'forest_event_status_2') {
|
|
} else if (this.eventList[i].eventStatusValue == 'forest_event_status_2') {
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.icon = 'sj-icon-map-qianshou'
|
|
markersMap.icon = 'sj-icon-map-qianshou'
|
|
|
|
+ markersMap.isAggregation = false
|
|
} else if (this.eventList[i].eventStatusValue == 'forest_event_status_5') {
|
|
} else if (this.eventList[i].eventStatusValue == 'forest_event_status_5') {
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
|
|
+ markersMap.isAggregation = false
|
|
} else if (this.eventList[i].eventStatusValue == 'forest_event_status_6') {
|
|
} else if (this.eventList[i].eventStatusValue == 'forest_event_status_6') {
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.click = 'showEventDialog'
|
|
- markersMap.icon = 'sj-icon-map-guidnag'
|
|
|
|
|
|
+ markersMap.icon = 'sj-icon-map-guidang'
|
|
}
|
|
}
|
|
markersMap.parameter = this.eventList[i].eventCode
|
|
markersMap.parameter = this.eventList[i].eventCode
|
|
markersMap.lng = this.eventList[i].longitude
|
|
markersMap.lng = this.eventList[i].longitude
|
|
@@ -606,7 +606,7 @@ export default {
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </span>'
|
|
' </span>'
|
|
- if (this.eventList[i].picturePath != null && this.eventList[i].picturePath != '' && this.isAssetTypeAnImage(this.eventList[i].picturePath)) {
|
|
|
|
|
|
+ if (this.eventList[i].picturePath != null && this.eventList[i].picturePath != '' && this.eventList[i].pictureType=='image') {
|
|
markersMap.bindPopupHtml += '<span>' +
|
|
markersMap.bindPopupHtml += '<span>' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-l-text">' +
|
|
' <div class="d-l-l-text">' +
|
|
@@ -918,27 +918,30 @@ export default {
|
|
keepBindPopup: false,
|
|
keepBindPopup: false,
|
|
isAggregation: false
|
|
isAggregation: false
|
|
}
|
|
}
|
|
- if (this.eventList.length > 50) {
|
|
|
|
|
|
+ if (this.eventList.length > 200) {
|
|
markersMap.isAggregation = true
|
|
markersMap.isAggregation = true
|
|
}
|
|
}
|
|
if (this.eventList[i].eventStatusValue == 'forest_event_status_1' && this.eventList[i].urgeCount == 0) {
|
|
if (this.eventList[i].eventStatusValue == 'forest_event_status_1' && this.eventList[i].urgeCount == 0) {
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.icon = 'sj-icon-map-xinshangbao'
|
|
markersMap.icon = 'sj-icon-map-xinshangbao'
|
|
- markersMap.isAggregation = false
|
|
|
|
|
|
+ markersMap.isAggregation = true
|
|
}
|
|
}
|
|
if (this.eventList[i].eventStatusValue == 'forest_event_status_1' && this.eventList[i].urgeCount > 0) {
|
|
if (this.eventList[i].eventStatusValue == 'forest_event_status_1' && this.eventList[i].urgeCount > 0) {
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.icon = 'sj-icon-map-cuiban'
|
|
markersMap.icon = 'sj-icon-map-cuiban'
|
|
- markersMap.isAggregation = false
|
|
|
|
|
|
+ markersMap.isAggregation = true
|
|
} else if (this.eventList[i].eventStatusValue == 'forest_event_status_2') {
|
|
} else if (this.eventList[i].eventStatusValue == 'forest_event_status_2') {
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.icon = 'sj-icon-map-qianshou'
|
|
markersMap.icon = 'sj-icon-map-qianshou'
|
|
|
|
+ markersMap.isAggregation = false
|
|
} else if (this.eventList[i].eventStatusValue == 'forest_event_status_5') {
|
|
} else if (this.eventList[i].eventStatusValue == 'forest_event_status_5') {
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
|
|
+ markersMap.isAggregation = false
|
|
} else if (this.eventList[i].eventStatusValue == 'forest_event_status_6') {
|
|
} else if (this.eventList[i].eventStatusValue == 'forest_event_status_6') {
|
|
markersMap.click = 'showEventDialog'
|
|
markersMap.click = 'showEventDialog'
|
|
- markersMap.icon = 'sj-icon-map-guidnag'
|
|
|
|
|
|
+ markersMap.icon = 'sj-icon-map-guidang'
|
|
|
|
+ markersMap.isAggregation = true
|
|
}
|
|
}
|
|
markersMap.parameter = this.eventList[i].eventCode
|
|
markersMap.parameter = this.eventList[i].eventCode
|
|
markersMap.lng = this.eventList[i].longitude
|
|
markersMap.lng = this.eventList[i].longitude
|
|
@@ -965,7 +968,7 @@ export default {
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </span>'
|
|
' </span>'
|
|
- if (this.eventList[i].picturePath != null && this.eventList[i].picturePath != '' && this.isAssetTypeAnImage(this.eventList[i].picturePath)) {
|
|
|
|
|
|
+ if (this.eventList[i].picturePath != null && this.eventList[i].picturePath != '' && this.eventList[i].pictureType=='image') {
|
|
markersMap.bindPopupHtml += '<span>' +
|
|
markersMap.bindPopupHtml += '<span>' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-l-text">' +
|
|
' <div class="d-l-l-text">' +
|
|
@@ -990,15 +993,6 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 判断是否为图片
|
|
|
|
- isAssetTypeAnImage(filePath) {
|
|
|
|
- //获取最后一个.的位置
|
|
|
|
- var index = filePath.lastIndexOf('.')
|
|
|
|
- //获取后缀
|
|
|
|
- var ext = filePath.substr(index + 1)
|
|
|
|
- let aa = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
|
|
|
|
- return aa
|
|
|
|
- },
|
|
|
|
getEventByEventType(day) {
|
|
getEventByEventType(day) {
|
|
let that = this
|
|
let that = this
|
|
//右侧获取事件分类
|
|
//右侧获取事件分类
|