|
@@ -106,7 +106,7 @@
|
|
<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" ></supermap>
|
|
|
|
|
|
+ @showEventDialog="showEventDialog"></supermap>
|
|
<!-- 右侧 -->
|
|
<!-- 右侧 -->
|
|
<div class="rightbar rightbar-index" ref="right">
|
|
<div class="rightbar rightbar-index" ref="right">
|
|
<div class="right-item1">
|
|
<div class="right-item1">
|
|
@@ -388,14 +388,14 @@
|
|
<div class="forthis">
|
|
<div class="forthis">
|
|
<dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
|
|
<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;"/>
|
|
<img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
|
|
- <div class="this-title"
|
|
|
|
|
|
+ <div class="this-title" style="cursor: pointer"
|
|
@click="setEventTypeId({eventTypeIdDl: [], eventTypeId: []})">
|
|
@click="setEventTypeId({eventTypeIdDl: [], eventTypeId: []})">
|
|
<span>事件分类</span>
|
|
<span>事件分类</span>
|
|
<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">
|
|
<chart v-if="showEventKind" :config="eventKind" @setEventTypeId="setEventTypeId"
|
|
<chart v-if="showEventKind" :config="eventKind" @setEventTypeId="setEventTypeId"
|
|
- style="width: 90%;height: 18vh; padding:.5rem 1rem"></chart>
|
|
|
|
|
|
+ style="width: 90%;height: 18vh; padding:.5rem 1rem"/>
|
|
</div>
|
|
</div>
|
|
</dv-border-box-13>
|
|
</dv-border-box-13>
|
|
</div>
|
|
</div>
|
|
@@ -440,94 +440,98 @@
|
|
import Cookies from 'js-cookie'
|
|
import Cookies from 'js-cookie'
|
|
/** ----------------------------------weosocket结束------------------------------------- */
|
|
/** ----------------------------------weosocket结束------------------------------------- */
|
|
|
|
|
|
- import {
|
|
|
|
- getBaseInfo,
|
|
|
|
- getTodayEvents,
|
|
|
|
- getDeptEventCount,
|
|
|
|
- getWeather,
|
|
|
|
- getEventList,
|
|
|
|
- getEventByEventType,
|
|
|
|
- getEventByReportorOrder,
|
|
|
|
- getExposureStage
|
|
|
|
- } from '@/api/forest'
|
|
|
|
- import {
|
|
|
|
- getNearEvent
|
|
|
|
- } from '@/api/event'
|
|
|
|
- import supermap from '@/components/supermap' //超图
|
|
|
|
- // import supermapNotProcessed from '@/components/supermap' //超图
|
|
|
|
- // import supermapProcessed from '@/components/supermap' //超图
|
|
|
|
- import vheader from '@/components/v-header.vue' //一体化共用头部
|
|
|
|
- import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
|
|
|
|
- import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
|
|
|
|
- import TVWall from '@/components/TVWall.vue' //电视墙弹窗
|
|
|
|
- import wrj from '@/components/wrj.vue' //无人机
|
|
|
|
- import eventdetailsdialog from '@/views/eventdetailsdialog.vue' //事件详情弹窗
|
|
|
|
- import firespread from '@/views/firespread.vue' //事件详情弹窗
|
|
|
|
|
|
+import {
|
|
|
|
+ getMenuEventType,
|
|
|
|
+ getBaseInfo,
|
|
|
|
+ getTodayEvents,
|
|
|
|
+ getEventPush,
|
|
|
|
+ getDeptEventCount,
|
|
|
|
+ getWeather,
|
|
|
|
+ getEventList,
|
|
|
|
+ getEventByEventType,
|
|
|
|
+ getEventByReportorOrder,
|
|
|
|
+ getExposureStage
|
|
|
|
+} from '@/api/forest'
|
|
|
|
+import {
|
|
|
|
+ getNearEvent
|
|
|
|
+} from '@/api/event'
|
|
|
|
+import supermap from '@/components/supermap' //超图
|
|
|
|
+// import supermapNotProcessed from '@/components/supermap' //超图
|
|
|
|
+// import supermapProcessed from '@/components/supermap' //超图
|
|
|
|
+import vheader from '@/components/v-header.vue' //一体化共用头部
|
|
|
|
+import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
|
|
|
|
+import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
|
|
|
|
+import TVWall from '@/components/TVWall.vue' //电视墙弹窗
|
|
|
|
+import wrj from '@/components/wrj.vue' //无人机
|
|
|
|
+import eventdetailsdialog from '@/views/eventdetailsdialog.vue' //事件详情弹窗
|
|
|
|
+import firespread from '@/views/firespread.vue' //事件详情弹窗
|
|
|
|
+import chart from './from/dvCapsuleChart.vue'
|
|
|
|
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
import { getDahuaVideoServer } from '@/api/dahua/dahua'
|
|
import { getDahuaVideoServer } from '@/api/dahua/dahua'
|
|
import DHWs from '@/dahua/lib/DHWs'
|
|
import DHWs from '@/dahua/lib/DHWs'
|
|
import Firespread from "./firespread";
|
|
import Firespread from "./firespread";
|
|
|
|
|
|
- /** ----------------------------------摄像头预览结束------------------------------------- */
|
|
|
|
- import chart from "./from/dvCapsuleChart.vue";
|
|
|
|
- let echarts = require('echarts')
|
|
|
|
- export default {
|
|
|
|
- components: {
|
|
|
|
- Firespread,
|
|
|
|
- supermap,
|
|
|
|
- // supermapNotProcessed,
|
|
|
|
- // supermapProcessed,
|
|
|
|
- vheader,
|
|
|
|
- vBottomMenu,
|
|
|
|
- eventLocation,
|
|
|
|
- chart,
|
|
|
|
- TVWall,
|
|
|
|
- wrj,
|
|
|
|
- dateChoose,
|
|
|
|
- eventdetailsdialog,
|
|
|
|
- firespread
|
|
|
|
- },
|
|
|
|
- created() {
|
|
|
|
- /** ----------------------------------底部按钮公用组件开始------------------------------------- */
|
|
|
|
- window.showDialog = this.showDialog
|
|
|
|
- window.choseLayerSwitching = this.choseLayerSwitching
|
|
|
|
- window.choseLayerSwitchingList = this.choseLayerSwitchingList
|
|
|
|
- window.choseLayerSwitchingList_Data = this.choseLayerSwitchingList_Data
|
|
|
|
- /** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
|
|
- const DHWsInstance = DHWs.getInstance();
|
|
|
|
- this.ws = DHWsInstance;
|
|
|
|
- },
|
|
|
|
- mounted() {
|
|
|
|
- this.getBaseInfo()
|
|
|
|
- this.getTodayEvents(this.getCurrentDataStr())
|
|
|
|
- this.getDeptEventCount(this.getCurrentDataStr())
|
|
|
|
- this.getWeather(this.getCurrentDataStr())
|
|
|
|
- this.getEventList(this.getCurrentDataStr(), this.pageSize, this.pageNum)
|
|
|
|
- this.getEventByEventType(this.getCurrentDataStr())
|
|
|
|
- this.getEventByReportorOrder(this.getCurrentDataStr())
|
|
|
|
- this.getExposureStage(this.getCurrentDataStr())
|
|
|
|
- this.getSupermap(this.getCurrentDataStr())
|
|
|
|
- /** ----------------------------------weosocket开始------------------------------------- */
|
|
|
|
- // this.initWebSocket()
|
|
|
|
- /** ----------------------------------weosocket结束------------------------------------- */
|
|
|
|
- setInterval(() => {
|
|
|
|
- if (this.calendarDay == this.getCurrentDataStr()) {
|
|
|
|
- this.getTodayEvents(this.getCurrentDataStr(), true);
|
|
|
|
- this.getDeptEventCount(this.getCurrentDataStr(), true);
|
|
|
|
- this.getEventList(this.getCurrentDataStr(), this.pageSize, this.pageNum, '', true);
|
|
|
|
- this.getEventByEventType(this.getCurrentDataStr(), true);
|
|
|
|
- this.getEventByReportorOrder(this.getCurrentDataStr(), true);
|
|
|
|
- this.getExposureStage(this.getCurrentDataStr(), true);
|
|
|
|
- this.getSupermap(this.getCurrentDataStr(), true);
|
|
|
|
- }
|
|
|
|
- }, 4000)
|
|
|
|
- this.bottomMenuList() //获取底部公共组件消息和任务
|
|
|
|
- },
|
|
|
|
- data() {
|
|
|
|
- return {
|
|
|
|
- //警报MP3文件
|
|
|
|
- audioSrc: require('@/assets/jingbao.mp3'),
|
|
|
|
|
|
+/** ----------------------------------摄像头预览结束------------------------------------- */
|
|
|
|
+
|
|
|
|
+let echarts = require('echarts')
|
|
|
|
+export default {
|
|
|
|
+ components: {
|
|
|
|
+ Firespread,
|
|
|
|
+ chart,
|
|
|
|
+ supermap,
|
|
|
|
+ // supermapNotProcessed,
|
|
|
|
+ // supermapProcessed,
|
|
|
|
+ vheader,
|
|
|
|
+ vBottomMenu,
|
|
|
|
+ eventLocation,
|
|
|
|
+ TVWall,
|
|
|
|
+ wrj,
|
|
|
|
+ dateChoose,
|
|
|
|
+ eventdetailsdialog,
|
|
|
|
+ firespread
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+ /** ----------------------------------底部按钮公用组件开始------------------------------------- */
|
|
|
|
+ window.showDialog = this.showDialog
|
|
|
|
+ window.choseLayerSwitching = this.choseLayerSwitching
|
|
|
|
+ window.choseLayerSwitchingList = this.choseLayerSwitchingList
|
|
|
|
+ window.choseLayerSwitchingList_Data = this.choseLayerSwitchingList_Data
|
|
|
|
+ /** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
|
|
+ const DHWsInstance = DHWs.getInstance();
|
|
|
|
+ this.ws = DHWsInstance;
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
+ this.getBaseInfo()
|
|
|
|
+ this.getTodayEvents(this.getCurrentDataStr())
|
|
|
|
+ this.getDeptEventCount(this.getCurrentDataStr())
|
|
|
|
+ this.getWeather(this.getCurrentDataStr())
|
|
|
|
+ this.getEventList(this.getCurrentDataStr(), this.pageSize, this.pageNum)
|
|
|
|
+ this.getEventByEventType(this.getCurrentDataStr())
|
|
|
|
+ this.getEventByReportorOrder(this.getCurrentDataStr())
|
|
|
|
+ this.getExposureStage(this.getCurrentDataStr())
|
|
|
|
+ this.getSupermap(this.getCurrentDataStr())
|
|
|
|
+ this.getMenuEventType()
|
|
|
|
+ /** ----------------------------------weosocket开始------------------------------------- */
|
|
|
|
+ // this.initWebSocket()
|
|
|
|
+ /** ----------------------------------weosocket结束------------------------------------- */
|
|
|
|
+ setInterval(() => {
|
|
|
|
+ if (this.calendarDay == this.getCurrentDataStr()) {
|
|
|
|
+ this.getTodayEvents(this.getCurrentDataStr(), true);
|
|
|
|
+ this.getDeptEventCount(this.getCurrentDataStr(), true);
|
|
|
|
+ // this.getEventList(this.getCurrentDataStr(), this.pageSize, this.pageNum, '', true);
|
|
|
|
+ this.getEventByEventType(this.getCurrentDataStr(), true);
|
|
|
|
+ this.getEventByReportorOrder(this.getCurrentDataStr(), true);
|
|
|
|
+ this.getExposureStage(this.getCurrentDataStr(), true);
|
|
|
|
+ // this.getSupermap(this.getCurrentDataStr(), true);
|
|
|
|
+ }
|
|
|
|
+ }, 30000)
|
|
|
|
+ this.bottomMenuList() //获取底部公共组件消息和任务
|
|
|
|
+ },
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ //警报MP3文件
|
|
|
|
+ audioSrc: require('@/assets/jingbao.mp3'),
|
|
|
|
|
|
calendarDay: this.getCurrentDataStr(),
|
|
calendarDay: this.getCurrentDataStr(),
|
|
//基本情况
|
|
//基本情况
|
|
@@ -581,6 +585,11 @@
|
|
weosocket: false,
|
|
weosocket: false,
|
|
websock: '',
|
|
websock: '',
|
|
setIntervalWesocketPush: null,
|
|
setIntervalWesocketPush: null,
|
|
|
|
+ websockSid: {
|
|
|
|
+ userId: '',
|
|
|
|
+ eventTypeDl: '',
|
|
|
|
+ eventType: '',
|
|
|
|
+ },
|
|
/** ----------------------------------weosocket结束------------------------------------- */
|
|
/** ----------------------------------weosocket结束------------------------------------- */
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
activePanel: 'key1',
|
|
activePanel: 'key1',
|
|
@@ -602,6 +611,16 @@
|
|
},
|
|
},
|
|
/** ----------------------------------weosocket结束------------------------------------- */
|
|
/** ----------------------------------weosocket结束------------------------------------- */
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getMenuEventType() {
|
|
|
|
+ let that = this
|
|
|
|
+ getMenuEventType().then(res => {
|
|
|
|
+ that.websockSid.userId = Cookies.get('userId')
|
|
|
|
+ that.websockSid.eventTypeDl = res.data.eventTypeDl
|
|
|
|
+ that.websockSid.eventType = res.data.eventType
|
|
|
|
+ that.initWebSocket(that.websockSid.userId, that.websockSid.eventTypeDl, that.websockSid.eventType)
|
|
|
|
+ console.log(that.websockSid)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
setEventTypeId(data) {
|
|
setEventTypeId(data) {
|
|
// let data = {eventTypeIdDl: [], eventTypeId: []}
|
|
// let data = {eventTypeIdDl: [], eventTypeId: []}
|
|
// let data = {eventTypeIdDl: that.eventTypeIdDl, eventTypeId: that.eventTypeId}
|
|
// let data = {eventTypeIdDl: that.eventTypeIdDl, eventTypeId: that.eventTypeId}
|