|
@@ -5,38 +5,10 @@
|
|
<vheader></vheader>
|
|
<vheader></vheader>
|
|
<!--主体-->
|
|
<!--主体-->
|
|
<div class="visual-body">
|
|
<div class="visual-body">
|
|
-<!-- <!– 左侧 –>-->
|
|
|
|
-<!-- <div class="leftbar" ref="left">-->
|
|
|
|
-<!-- <!– 3 组织机构 –>-->
|
|
|
|
-<!-- <div class="forthis">-->
|
|
|
|
-<!-- <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">-->
|
|
|
|
-<!-- <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>-->
|
|
|
|
-<!-- <div class="i-list-con h-80" style="padding-left: 1rem;">-->
|
|
|
|
-<!-- <el-collapse accordion>-->
|
|
|
|
-<!-- <el-collapse-item v-for="(item,index) in villageTypeXlList" :key="index">-->
|
|
|
|
-<!-- <template slot="title">-->
|
|
|
|
-<!-- <div class="d-l-con sj-collapse" :class="{on:listCurrentIndex1==item.id}"-->
|
|
|
|
-<!-- v-on:click="getAllDanger(calendarDay,item.parentId,item.id)">-->
|
|
|
|
-<!-- <div class="d-l-l-text">-->
|
|
|
|
-<!-- <h4 class="collapse-title">{{ item.name }}</h4>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- <div class="d-l-l-count">{{ item.value }}</div>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- </template>-->
|
|
|
|
-<!-- </el-collapse-item>-->
|
|
|
|
-<!-- </el-collapse>-->
|
|
|
|
-<!-- <div class="i-list-con small-bottom-margin h-30">-->
|
|
|
|
-
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- </dv-border-box-13>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
- <!-- 地图 -->
|
|
|
|
<supermap ref="supermap" style="width: 100%;height: 100vh;" class="indexSupermapClass" :mapDiv="'forestMap'"
|
|
<supermap ref="supermap" style="width: 100%;height: 100vh;" class="indexSupermapClass" :mapDiv="'forestMap'"
|
|
:dynamicPlotting="false"
|
|
:dynamicPlotting="false"
|
|
:mapSite="{doubleClickZoom:false}" :codes="['9fa5']" :isSideBySide="false"
|
|
:mapSite="{doubleClickZoom:false}" :codes="['9fa5']" :isSideBySide="false"
|
|
- @showEventDialog="showEventDialog"/>
|
|
|
|
|
|
+ @showDangerDialog="showDangerDialog"/>
|
|
<!-- 右侧 -->
|
|
<!-- 右侧 -->
|
|
<div class="rightbar rightbar-index" ref="right">
|
|
<div class="rightbar rightbar-index" ref="right">
|
|
<div class="right-item1">
|
|
<div class="right-item1">
|
|
@@ -136,11 +108,11 @@
|
|
<vBottomMenu ref="bottomMenu" @stopAudio="stopAudio" ></vBottomMenu>
|
|
<vBottomMenu ref="bottomMenu" @stopAudio="stopAudio" ></vBottomMenu>
|
|
</div>
|
|
</div>
|
|
<audio id="resource" ref="up" :src="audioSrc" controls style="display: none;"></audio>
|
|
<audio id="resource" ref="up" :src="audioSrc" controls style="display: none;"></audio>
|
|
- <eventdetailsdialog ref="eventdetailsdialog" :calendarDay="calendarDay"
|
|
|
|
|
|
+ <dangerdetailsdialog ref="dangerdetailsdialog" :calendarDay="calendarDay"
|
|
:bigEventTypeId="bigEventTypeId" :smallEventTypeId="smallEventTypeId"
|
|
:bigEventTypeId="bigEventTypeId" :smallEventTypeId="smallEventTypeId"
|
|
- @getAllDanger="getAllDanger"></eventdetailsdialog>
|
|
|
|
|
|
+ @getAllDanger="getAllDanger"></dangerdetailsdialog>
|
|
|
|
|
|
- <firespread ref="firespread" :calendarDay="calendarDay" @getAllDanger="getAllDanger" @showEventDialog="showEventDialog"></firespread>
|
|
|
|
|
|
+ <firespread ref="firespread" :calendarDay="calendarDay" @getAllDanger="getAllDanger" @showDangerDialog="showDangerDialog"></firespread>
|
|
<eventLocation ref="eventLocation"></eventLocation>
|
|
<eventLocation ref="eventLocation"></eventLocation>
|
|
<TVWall ref="TVWall"></TVWall>
|
|
<TVWall ref="TVWall"></TVWall>
|
|
</div>
|
|
</div>
|
|
@@ -164,10 +136,10 @@ import supermapNotProcessed from '@/components/supermap' //超图
|
|
import supermapProcessed from '@/components/supermap' //超图
|
|
import supermapProcessed from '@/components/supermap' //超图
|
|
import vheader from '@/components/v-header.vue' //一体化共用头部
|
|
import vheader from '@/components/v-header.vue' //一体化共用头部
|
|
import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
|
|
import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
|
|
-import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
|
|
|
|
|
|
+import eventLocation from '@/components/eventLocation.vue' //隐患定位弹窗
|
|
import TVWall from '@/components/TVWall.vue' //电视墙弹窗
|
|
import TVWall from '@/components/TVWall.vue' //电视墙弹窗
|
|
-import eventdetailsdialog from '@/views/eventdetailsdialog.vue' //事件详情弹窗
|
|
|
|
-import firespread from '@/views/firespread.vue' //事件详情弹窗
|
|
|
|
|
|
+import dangerdetailsdialog from '@/views/dangerdetailsdialog.vue' //隐患详情弹窗
|
|
|
|
+import firespread from '@/views/firespread.vue' //隐患详情弹窗
|
|
|
|
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
import {
|
|
import {
|
|
@@ -188,7 +160,7 @@ export default {
|
|
eventLocation,
|
|
eventLocation,
|
|
TVWall,
|
|
TVWall,
|
|
dateChoose,
|
|
dateChoose,
|
|
- eventdetailsdialog,
|
|
|
|
|
|
+ dangerdetailsdialog,
|
|
firespread
|
|
firespread
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -222,7 +194,7 @@ export default {
|
|
//警报MP3文件
|
|
//警报MP3文件
|
|
audioSrc:require('@/assets/jingbao.mp3'),
|
|
audioSrc:require('@/assets/jingbao.mp3'),
|
|
calendarDay: this.getCurrentDataStr(),
|
|
calendarDay: this.getCurrentDataStr(),
|
|
- //左侧部门事件数量
|
|
|
|
|
|
+ //左侧部门隐患数量
|
|
villageTypeXlList: [],
|
|
villageTypeXlList: [],
|
|
//右侧隐患列表
|
|
//右侧隐患列表
|
|
dangerList: [],
|
|
dangerList: [],
|
|
@@ -283,29 +255,23 @@ export default {
|
|
keepBindPopup: false,
|
|
keepBindPopup: false,
|
|
isAggregation: false
|
|
isAggregation: false
|
|
}
|
|
}
|
|
- if (this.dangerList.length > 200) {
|
|
|
|
- markersMap.isAggregation = true
|
|
|
|
- }
|
|
|
|
|
|
+ markersMap.click = 'showDangerDialog'
|
|
|
|
+ markersMap.parameter = this.dangerList[i].id
|
|
|
|
+ markersMap.isAggregation = true
|
|
if (this.dangerList[i].eventStatusValue == 'forest_event_status_1' && this.dangerList[i].urgeCount == 0) {
|
|
if (this.dangerList[i].eventStatusValue == 'forest_event_status_1' && this.dangerList[i].urgeCount == 0) {
|
|
- markersMap.click = 'showEventDialog'
|
|
|
|
markersMap.icon = 'sj-icon-map-xinshangbao'
|
|
markersMap.icon = 'sj-icon-map-xinshangbao'
|
|
}
|
|
}
|
|
if (this.dangerList[i].eventStatusValue == 'forest_event_status_1' && this.dangerList[i].urgeCount > 0) {
|
|
if (this.dangerList[i].eventStatusValue == 'forest_event_status_1' && this.dangerList[i].urgeCount > 0) {
|
|
- markersMap.click = 'showEventDialog'
|
|
|
|
markersMap.icon = 'sj-icon-map-cuiban'
|
|
markersMap.icon = 'sj-icon-map-cuiban'
|
|
} else if (this.dangerList[i].eventStatusValue == 'forest_event_status_2') {
|
|
} else if (this.dangerList[i].eventStatusValue == 'forest_event_status_2') {
|
|
- markersMap.click = 'showEventDialog'
|
|
|
|
markersMap.icon = 'sj-icon-map-qianshou'
|
|
markersMap.icon = 'sj-icon-map-qianshou'
|
|
markersMap.isAggregation = false
|
|
markersMap.isAggregation = false
|
|
} else if (this.dangerList[i].eventStatusValue == 'forest_event_status_5') {
|
|
} else if (this.dangerList[i].eventStatusValue == 'forest_event_status_5') {
|
|
- markersMap.click = 'showEventDialog'
|
|
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
markersMap.isAggregation = false
|
|
markersMap.isAggregation = false
|
|
} else if (this.dangerList[i].eventStatusValue == 'forest_event_status_6') {
|
|
} else if (this.dangerList[i].eventStatusValue == 'forest_event_status_6') {
|
|
- markersMap.click = 'showEventDialog'
|
|
|
|
markersMap.icon = 'sj-icon-map-guidang'
|
|
markersMap.icon = 'sj-icon-map-guidang'
|
|
}
|
|
}
|
|
- markersMap.parameter = this.dangerList[i].eventCode
|
|
|
|
markersMap.lng = this.dangerList[i].longitude
|
|
markersMap.lng = this.dangerList[i].longitude
|
|
markersMap.lat = this.dangerList[i].latitude
|
|
markersMap.lat = this.dangerList[i].latitude
|
|
markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
@@ -319,14 +285,14 @@ export default {
|
|
'<span>' +
|
|
'<span>' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-l-text">' +
|
|
' <div class="d-l-l-text">' +
|
|
- ' <h4>事件名称:' + this.dangerList[i].eventName + '</h4>' +
|
|
|
|
|
|
+ ' <h4>隐患名称:' + this.dangerList[i].eventName + '</h4>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </span>' +
|
|
' </span>' +
|
|
'<span>' +
|
|
'<span>' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-l-text">' +
|
|
' <div class="d-l-l-text">' +
|
|
- ' <h4>事件时间:' + this.dangerList[i].createTime + '</h4>' +
|
|
|
|
|
|
+ ' <h4>隐患时间:' + this.dangerList[i].createTime + '</h4>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </span>'
|
|
' </span>'
|
|
@@ -357,12 +323,12 @@ export default {
|
|
dropLocation(lat, lng) {
|
|
dropLocation(lat, lng) {
|
|
this.$refs.supermap.dropLocation(lat, lng)
|
|
this.$refs.supermap.dropLocation(lat, lng)
|
|
},
|
|
},
|
|
- showEventDialog(eventCode) {
|
|
|
|
- //事件信息弹出
|
|
|
|
- this.$refs.eventdetailsdialog.showEventDialog(eventCode)
|
|
|
|
|
|
+ showDangerDialog(dangerId) {
|
|
|
|
+ //隐患信息弹出
|
|
|
|
+ this.$refs.dangerdetailsdialog.showDangerDialog(dangerId)
|
|
},
|
|
},
|
|
getFirespread(eventCode){
|
|
getFirespread(eventCode){
|
|
- this.$refs.firespread.showEventDialog(eventCode);
|
|
|
|
|
|
+ this.$refs.firespread.showDangerDialog(eventCode);
|
|
},
|
|
},
|
|
getCurrentDataStr() {
|
|
getCurrentDataStr() {
|
|
let date = new Date()
|
|
let date = new Date()
|
|
@@ -384,7 +350,7 @@ export default {
|
|
},
|
|
},
|
|
// getEventByEventType(day,loading) {
|
|
// getEventByEventType(day,loading) {
|
|
// let that = this
|
|
// let that = this
|
|
- // //左侧获取事件部门数量
|
|
|
|
|
|
+ // //左侧获取隐患部门数量
|
|
// getEventByEventType({ day: day },loading).then(res => {
|
|
// getEventByEventType({ day: day },loading).then(res => {
|
|
// this.villageTypeXlList = res.data
|
|
// this.villageTypeXlList = res.data
|
|
// })
|
|
// })
|
|
@@ -395,7 +361,7 @@ export default {
|
|
this.dangerListAll = []
|
|
this.dangerListAll = []
|
|
//右侧获取隐患列表
|
|
//右侧获取隐患列表
|
|
getAllDanger({
|
|
getAllDanger({
|
|
- createTime: day+" 00:00:00"
|
|
|
|
|
|
+ createDate: day
|
|
},loading).then(res => {
|
|
},loading).then(res => {
|
|
this.dangerList = res.data
|
|
this.dangerList = res.data
|
|
this.dangerListAll = res.data
|
|
this.dangerListAll = res.data
|
|
@@ -416,29 +382,23 @@ export default {
|
|
keepBindPopup: false,
|
|
keepBindPopup: false,
|
|
isAggregation: false
|
|
isAggregation: false
|
|
}
|
|
}
|
|
- if (this.dangerList.length > 200) {
|
|
|
|
markersMap.isAggregation = true
|
|
markersMap.isAggregation = true
|
|
- }
|
|
|
|
|
|
+ markersMap.click = 'showDangerDialog'
|
|
|
|
+ markersMap.parameter = this.dangerList[i].id
|
|
if (this.dangerList[i].eventStatusValue == 'forest_event_status_1' && this.dangerList[i].urgeCount == 0) {
|
|
if (this.dangerList[i].eventStatusValue == 'forest_event_status_1' && this.dangerList[i].urgeCount == 0) {
|
|
- markersMap.click = 'showEventDialog'
|
|
|
|
markersMap.icon = 'sj-icon-map-xinshangbao'
|
|
markersMap.icon = 'sj-icon-map-xinshangbao'
|
|
}
|
|
}
|
|
if (this.dangerList[i].eventStatusValue == 'forest_event_status_1' && this.dangerList[i].urgeCount > 0) {
|
|
if (this.dangerList[i].eventStatusValue == 'forest_event_status_1' && this.dangerList[i].urgeCount > 0) {
|
|
- markersMap.click = 'showEventDialog'
|
|
|
|
markersMap.icon = 'sj-icon-map-cuiban'
|
|
markersMap.icon = 'sj-icon-map-cuiban'
|
|
} else if (this.dangerList[i].eventStatusValue == 'forest_event_status_2') {
|
|
} else if (this.dangerList[i].eventStatusValue == 'forest_event_status_2') {
|
|
- markersMap.click = 'showEventDialog'
|
|
|
|
markersMap.icon = 'sj-icon-map-qianshou'
|
|
markersMap.icon = 'sj-icon-map-qianshou'
|
|
markersMap.isAggregation = false
|
|
markersMap.isAggregation = false
|
|
} else if (this.dangerList[i].eventStatusValue == 'forest_event_status_5') {
|
|
} else if (this.dangerList[i].eventStatusValue == 'forest_event_status_5') {
|
|
- markersMap.click = 'showEventDialog'
|
|
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
markersMap.icon = 'sj-icon-map-banjie'
|
|
markersMap.isAggregation = false
|
|
markersMap.isAggregation = false
|
|
} else if (this.dangerList[i].eventStatusValue == 'forest_event_status_6') {
|
|
} else if (this.dangerList[i].eventStatusValue == 'forest_event_status_6') {
|
|
- markersMap.click = 'showEventDialog'
|
|
|
|
markersMap.icon = 'sj-icon-map-guidang'
|
|
markersMap.icon = 'sj-icon-map-guidang'
|
|
}
|
|
}
|
|
- markersMap.parameter = this.dangerList[i].eventCode
|
|
|
|
markersMap.lng = this.dangerList[i].longitude
|
|
markersMap.lng = this.dangerList[i].longitude
|
|
markersMap.lat = this.dangerList[i].latitude
|
|
markersMap.lat = this.dangerList[i].latitude
|
|
markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
@@ -452,14 +412,28 @@ export default {
|
|
'<span>' +
|
|
'<span>' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-l-text">' +
|
|
' <div class="d-l-l-text">' +
|
|
- ' <h4>事件名称:' + this.dangerList[i].eventName + '</h4>' +
|
|
|
|
|
|
+ ' <h4>隐患名称:' + this.dangerList[i].dangerTitle + '</h4>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </span>' +
|
|
' </span>' +
|
|
'<span>' +
|
|
'<span>' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-l-text">' +
|
|
' <div class="d-l-l-text">' +
|
|
- ' <h4>事件时间:' + this.dangerList[i].createTime + '</h4>' +
|
|
|
|
|
|
+ ' <h4>隐患时间:' + this.dangerList[i].createTime + '</h4>' +
|
|
|
|
+ ' </div>' +
|
|
|
|
+ ' </div>' +
|
|
|
|
+ ' </span>'+
|
|
|
|
+ '<span>' +
|
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
|
+ ' <h4>隐患状态:' + this.dangerList[i].dangerStatusLabel + '</h4>' +
|
|
|
|
+ ' </div>' +
|
|
|
|
+ ' </div>' +
|
|
|
|
+ ' </span>'+
|
|
|
|
+ '<span>' +
|
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
|
+ ' <h4>隐患企业:' + this.dangerList[i].enterpriseName + '</h4>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </span>'
|
|
' </span>'
|
|
@@ -606,11 +580,11 @@ export default {
|
|
},
|
|
},
|
|
/** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
/** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
|
|
|
|
- /** ----------------------------------事件弹窗开始------------------------------------- */
|
|
|
|
|
|
+ /** ----------------------------------隐患弹窗开始------------------------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- /** ----------------------------------事件弹窗结束------------------------------------- */
|
|
|
|
|
|
+ /** ----------------------------------隐患弹窗结束------------------------------------- */
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
alertLogin: function() {
|
|
alertLogin: function() {
|
|
this.$modal.msg('登录中....')
|
|
this.$modal.msg('登录中....')
|