|
@@ -10,10 +10,10 @@
|
|
|
<!-- 1 基本情况 -->
|
|
|
<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;"/>
|
|
|
+ <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
|
|
|
<div class="this-title">
|
|
|
<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 class="i-list-con h-14">
|
|
|
<div class="d-l-con no_hover">
|
|
@@ -27,7 +27,7 @@
|
|
|
<!-- 2 事件统计-->
|
|
|
<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;"/>
|
|
|
+ <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
|
|
|
<div class="i-list-con h-29-5">
|
|
|
<div class="d-l-con no_hover">
|
|
|
<div class="event-count">
|
|
@@ -37,8 +37,7 @@
|
|
|
<div class="count-number">{{ totalStr.charAt(3) }}</div>
|
|
|
<div class="count-number">{{ totalStr.charAt(4) }}</div>
|
|
|
<div class="count-number">{{ totalStr.charAt(5) }}</div>
|
|
|
- <dv-decoration-5
|
|
|
- style="width:81%;height:15px;position: absolute; top:4.2rem;z-index: 0; "/>
|
|
|
+ <dv-decoration-5 style="width:81%;height:15px;position: absolute; top:4.2rem;z-index: 0; " />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="d-l-con-icon">
|
|
@@ -48,7 +47,7 @@
|
|
|
{{ newReport_pre }}%
|
|
|
</dv-decoration-9>
|
|
|
<div class="e-state"
|
|
|
- :style="{'background-image':`url(${require('@/assets/images/integrated/state-bg.png')})`}">
|
|
|
+ :style="{ 'background-image': `url(${require('@/assets/images/integrated/state-bg.png')})` }">
|
|
|
<span>新上报</span> <span>{{ newReport }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -58,7 +57,7 @@
|
|
|
{{ readySure_pre }}%
|
|
|
</dv-decoration-9>
|
|
|
<div class="e-state"
|
|
|
- :style="{'background-image':`url(${require('@/assets/images/integrated/state-bg.png')})`}">
|
|
|
+ :style="{ 'background-image': `url(${require('@/assets/images/integrated/state-bg.png')})` }">
|
|
|
<span>处理中</span> <span>{{ readySure }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -68,7 +67,7 @@
|
|
|
{{ readyFinish_pre }}%
|
|
|
</dv-decoration-9>
|
|
|
<div class="e-state"
|
|
|
- :style="{'background-image':`url(${require('@/assets/images/integrated/state-bg.png')})`}">
|
|
|
+ :style="{ 'background-image': `url(${require('@/assets/images/integrated/state-bg.png')})` }">
|
|
|
<span>已完成</span> <span>{{ readyFinish }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -82,14 +81,14 @@
|
|
|
<!-- 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;"/>
|
|
|
+ <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
|
|
|
<div class="i-list-con h-27" style="padding-left: 1rem;">
|
|
|
<el-collapse accordion>
|
|
|
- <el-collapse-item v-for="(item,index) in forestFarm" :key="index">
|
|
|
+ <el-collapse-item v-for="(item, index) in forestFarm" :key="index">
|
|
|
<!-- deptId -->
|
|
|
<template slot="title">
|
|
|
- <div class="d-l-con sj-collapse" :class="{on:listCurrentIndex1==item.deptId}"
|
|
|
- v-on:click="selectCameraByDeptId(item.deptId)">
|
|
|
+ <div class="d-l-con sj-collapse" :class="{ on: listCurrentIndex1 == item.deptId }"
|
|
|
+ v-on:click="selectCameraByDeptId(item.deptId)">
|
|
|
<div class="d-l-l-text">
|
|
|
<h4 class="collapse-title">{{ item.deptName }}</h4>
|
|
|
</div>
|
|
@@ -104,100 +103,86 @@
|
|
|
</div>
|
|
|
<!-- 地图 -->
|
|
|
<supermap ref="supermap" style="width: 100%;height: 100vh;" class="indexSupermapClass" :mapDiv="'forestMap'"
|
|
|
- :dynamicPlotting="false"
|
|
|
- :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" :isSideBySide="false"
|
|
|
- @showEventDialog="showEventDialog"></supermap>
|
|
|
+ :dynamicPlotting="false" :mapSite="{ doubleClickZoom: false }" :codes="['9fa5']" :isSideBySide="false"
|
|
|
+ @showEventDialog="showEventDialog"></supermap>
|
|
|
<!-- 右侧 -->
|
|
|
<div class="rightbar rightbar-index" ref="right">
|
|
|
<div class="right-item1">
|
|
|
<!-- 天气 -->
|
|
|
<div class="forthis">
|
|
|
<dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)">
|
|
|
- <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="i-list-con small-bottom-margin h-18">
|
|
|
<el-row :gutter="20" v-if="todatWeather">
|
|
|
<el-col :span="9">
|
|
|
<div class="weather-img">
|
|
|
- <img v-if="weatherinformationWeather==1"
|
|
|
- src="../assets/images/integrated/weather/qing-1.png">
|
|
|
- <img v-if="weatherinformationWeather==2"
|
|
|
- src="../assets/images/integrated/weather/duoyun-2.png">
|
|
|
- <img v-if="weatherinformationWeather==3"
|
|
|
- src="../assets/images/integrated/weather/yin-3.png">
|
|
|
- <img v-if="weatherinformationWeather==4"
|
|
|
- src="../assets/images/integrated/weather/zhenyu-4.png">
|
|
|
- <img v-if="weatherinformationWeather==5"
|
|
|
- src="../assets/images/integrated/weather/leizhenyu-5.png">
|
|
|
- <img v-if="weatherinformationWeather==6"
|
|
|
- src="../assets/images/integrated/weather/leizhenyubingbao-6.png">
|
|
|
- <img v-if="weatherinformationWeather==7"
|
|
|
- src="../assets/images/integrated/weather/yujiaxue-7.png">
|
|
|
- <img v-if="weatherinformationWeather==8"
|
|
|
- src="../assets/images/integrated/weather/xiaoyu-8.png">
|
|
|
- <img v-if="weatherinformationWeather==9||weatherinformationWeather==22"
|
|
|
- src="../assets/images/integrated/weather/zhongyu-9.png">
|
|
|
- <img v-if="weatherinformationWeather==10||weatherinformationWeather==23"
|
|
|
- src="../assets/images/integrated/weather/dayu-10.png">
|
|
|
- <img v-if="weatherinformationWeather==11||weatherinformationWeather==24"
|
|
|
- src="../assets/images/integrated/weather/baoyu-11.png">
|
|
|
- <img v-if="weatherinformationWeather==12||weatherinformationWeather==25"
|
|
|
- src="../assets/images/integrated/weather/dabaoyu-12.png">
|
|
|
- <img v-if="weatherinformationWeather==13||weatherinformationWeather==26"
|
|
|
- src="../assets/images/integrated/weather/tedabaoyu-13.png">
|
|
|
- <img v-if="weatherinformationWeather==14"
|
|
|
- src="../assets/images/integrated/weather/zhenxue-14.png">
|
|
|
- <img v-if="weatherinformationWeather==15"
|
|
|
- src="../assets/images/integrated/weather/xiaoxue-15.png">
|
|
|
- <img v-if="weatherinformationWeather==16||weatherinformationWeather==27"
|
|
|
- src="../assets/images/integrated/weather/zhongxue-16.png">
|
|
|
- <img v-if="weatherinformationWeather==17||weatherinformationWeather==28"
|
|
|
- src="../assets/images/integrated/weather/daxue-17.png">
|
|
|
- <img v-if="weatherinformationWeather==18||weatherinformationWeather==29"
|
|
|
- src="../assets/images/integrated/weather/baoxue-18.png">
|
|
|
- <img v-if="weatherinformationWeather==19"
|
|
|
- src="../assets/images/integrated/weather/wu-19.png">
|
|
|
- <img v-if="weatherinformationWeather==20"
|
|
|
- src="../assets/images/integrated/weather/dongyu-20.png">
|
|
|
- <img v-if="weatherinformationWeather==21"
|
|
|
- src="../assets/images/integrated/weather/shachenbao-21.png">
|
|
|
- <img v-if="weatherinformationWeather==30"
|
|
|
- src="../assets/images/integrated/weather/fuchen-30.png">
|
|
|
- <img v-if="weatherinformationWeather==31"
|
|
|
- src="../assets/images/integrated/weather/yangsha-31.png">
|
|
|
- <img v-if="weatherinformationWeather==32"
|
|
|
- src="../assets/images/integrated/weather/qiangshachenbao-32.png">
|
|
|
- <span v-if="weatherinformationWeather==1">晴</span>
|
|
|
- <span v-if="weatherinformationWeather==2">多云</span>
|
|
|
- <span v-if="weatherinformationWeather==3">阴</span>
|
|
|
- <span v-if="weatherinformationWeather==4">阵雨</span>
|
|
|
- <span v-if="weatherinformationWeather==5">雷阵雨</span>
|
|
|
- <span v-if="weatherinformationWeather==6">雷阵雨伴有冰雹</span>
|
|
|
- <span v-if="weatherinformationWeather==7">雨夹雪</span>
|
|
|
- <span v-if="weatherinformationWeather==8">小雨</span>
|
|
|
- <span v-if="weatherinformationWeather==9">中雨</span>
|
|
|
- <span v-if="weatherinformationWeather==10">大雨</span>
|
|
|
- <span v-if="weatherinformationWeather==11">暴雨</span>
|
|
|
- <span v-if="weatherinformationWeather==12">大暴雨</span>
|
|
|
- <span v-if="weatherinformationWeather==13">特大暴雨</span>
|
|
|
- <span v-if="weatherinformationWeather==14">阵雪</span>
|
|
|
- <span v-if="weatherinformationWeather==15">小雪</span>
|
|
|
- <span v-if="weatherinformationWeather==16">中雪</span>
|
|
|
- <span v-if="weatherinformationWeather==17">大雪</span>
|
|
|
- <span v-if="weatherinformationWeather==18">暴雪</span>
|
|
|
- <span v-if="weatherinformationWeather==19">雾</span>
|
|
|
- <span v-if="weatherinformationWeather==20">冻雨</span>
|
|
|
- <span v-if="weatherinformationWeather==21">沙尘暴</span>
|
|
|
- <span v-if="weatherinformationWeather==22">小雨—中雨</span>
|
|
|
- <span v-if="weatherinformationWeather==23">中雨—大雨</span>
|
|
|
- <span v-if="weatherinformationWeather==24">大雨—暴雨</span>
|
|
|
- <span v-if="weatherinformationWeather==25">暴雨—大暴雨</span>
|
|
|
- <span v-if="weatherinformationWeather==26">大暴雨—特大暴雨</span>
|
|
|
- <span v-if="weatherinformationWeather==27">小雪—中雪</span>
|
|
|
- <span v-if="weatherinformationWeather==28">中雪—大雪</span>
|
|
|
- <span v-if="weatherinformationWeather==29">大雪—暴雪</span>
|
|
|
- <span v-if="weatherinformationWeather==30">浮尘</span>
|
|
|
- <span v-if="weatherinformationWeather==31">扬沙</span>
|
|
|
- <span v-if="weatherinformationWeather==32">强沙尘暴</span>
|
|
|
+ <img v-if="weatherinformationWeather == 1" src="../assets/images/integrated/weather/qing-1.png">
|
|
|
+ <img v-if="weatherinformationWeather == 2" src="../assets/images/integrated/weather/duoyun-2.png">
|
|
|
+ <img v-if="weatherinformationWeather == 3" src="../assets/images/integrated/weather/yin-3.png">
|
|
|
+ <img v-if="weatherinformationWeather == 4" src="../assets/images/integrated/weather/zhenyu-4.png">
|
|
|
+ <img v-if="weatherinformationWeather == 5" src="../assets/images/integrated/weather/leizhenyu-5.png">
|
|
|
+ <img v-if="weatherinformationWeather == 6"
|
|
|
+ src="../assets/images/integrated/weather/leizhenyubingbao-6.png">
|
|
|
+ <img v-if="weatherinformationWeather == 7" src="../assets/images/integrated/weather/yujiaxue-7.png">
|
|
|
+ <img v-if="weatherinformationWeather == 8" src="../assets/images/integrated/weather/xiaoyu-8.png">
|
|
|
+ <img v-if="weatherinformationWeather == 9 || weatherinformationWeather == 22"
|
|
|
+ src="../assets/images/integrated/weather/zhongyu-9.png">
|
|
|
+ <img v-if="weatherinformationWeather == 10 || weatherinformationWeather == 23"
|
|
|
+ src="../assets/images/integrated/weather/dayu-10.png">
|
|
|
+ <img v-if="weatherinformationWeather == 11 || weatherinformationWeather == 24"
|
|
|
+ src="../assets/images/integrated/weather/baoyu-11.png">
|
|
|
+ <img v-if="weatherinformationWeather == 12 || weatherinformationWeather == 25"
|
|
|
+ src="../assets/images/integrated/weather/dabaoyu-12.png">
|
|
|
+ <img v-if="weatherinformationWeather == 13 || weatherinformationWeather == 26"
|
|
|
+ src="../assets/images/integrated/weather/tedabaoyu-13.png">
|
|
|
+ <img v-if="weatherinformationWeather == 14" src="../assets/images/integrated/weather/zhenxue-14.png">
|
|
|
+ <img v-if="weatherinformationWeather == 15" src="../assets/images/integrated/weather/xiaoxue-15.png">
|
|
|
+ <img v-if="weatherinformationWeather == 16 || weatherinformationWeather == 27"
|
|
|
+ src="../assets/images/integrated/weather/zhongxue-16.png">
|
|
|
+ <img v-if="weatherinformationWeather == 17 || weatherinformationWeather == 28"
|
|
|
+ src="../assets/images/integrated/weather/daxue-17.png">
|
|
|
+ <img v-if="weatherinformationWeather == 18 || weatherinformationWeather == 29"
|
|
|
+ src="../assets/images/integrated/weather/baoxue-18.png">
|
|
|
+ <img v-if="weatherinformationWeather == 19" src="../assets/images/integrated/weather/wu-19.png">
|
|
|
+ <img v-if="weatherinformationWeather == 20" src="../assets/images/integrated/weather/dongyu-20.png">
|
|
|
+ <img v-if="weatherinformationWeather == 21"
|
|
|
+ src="../assets/images/integrated/weather/shachenbao-21.png">
|
|
|
+ <img v-if="weatherinformationWeather == 30" src="../assets/images/integrated/weather/fuchen-30.png">
|
|
|
+ <img v-if="weatherinformationWeather == 31" src="../assets/images/integrated/weather/yangsha-31.png">
|
|
|
+ <img v-if="weatherinformationWeather == 32"
|
|
|
+ src="../assets/images/integrated/weather/qiangshachenbao-32.png">
|
|
|
+ <span v-if="weatherinformationWeather == 1">晴</span>
|
|
|
+ <span v-if="weatherinformationWeather == 2">多云</span>
|
|
|
+ <span v-if="weatherinformationWeather == 3">阴</span>
|
|
|
+ <span v-if="weatherinformationWeather == 4">阵雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 5">雷阵雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 6">雷阵雨伴有冰雹</span>
|
|
|
+ <span v-if="weatherinformationWeather == 7">雨夹雪</span>
|
|
|
+ <span v-if="weatherinformationWeather == 8">小雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 9">中雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 10">大雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 11">暴雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 12">大暴雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 13">特大暴雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 14">阵雪</span>
|
|
|
+ <span v-if="weatherinformationWeather == 15">小雪</span>
|
|
|
+ <span v-if="weatherinformationWeather == 16">中雪</span>
|
|
|
+ <span v-if="weatherinformationWeather == 17">大雪</span>
|
|
|
+ <span v-if="weatherinformationWeather == 18">暴雪</span>
|
|
|
+ <span v-if="weatherinformationWeather == 19">雾</span>
|
|
|
+ <span v-if="weatherinformationWeather == 20">冻雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 21">沙尘暴</span>
|
|
|
+ <span v-if="weatherinformationWeather == 22">小雨—中雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 23">中雨—大雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 24">大雨—暴雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 25">暴雨—大暴雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 26">大暴雨—特大暴雨</span>
|
|
|
+ <span v-if="weatherinformationWeather == 27">小雪—中雪</span>
|
|
|
+ <span v-if="weatherinformationWeather == 28">中雪—大雪</span>
|
|
|
+ <span v-if="weatherinformationWeather == 29">大雪—暴雪</span>
|
|
|
+ <span v-if="weatherinformationWeather == 30">浮尘</span>
|
|
|
+ <span v-if="weatherinformationWeather == 31">扬沙</span>
|
|
|
+ <span v-if="weatherinformationWeather == 32">强沙尘暴</span>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="15">
|
|
@@ -205,14 +190,14 @@
|
|
|
<ul>
|
|
|
<li>风力:{{ weatherinformationPower }}级</li>
|
|
|
<li>低温:{{ weatherinformationLow }}℃</li>
|
|
|
- <li v-if="weatherinformationDirection==1">风向:东风</li>
|
|
|
- <li v-if="weatherinformationDirection==2">风向:东南风</li>
|
|
|
- <li v-if="weatherinformationDirection==3">风向:南风</li>
|
|
|
- <li v-if="weatherinformationDirection==4">风向:西南风</li>
|
|
|
- <li v-if="weatherinformationDirection==5">风向:西风</li>
|
|
|
- <li v-if="weatherinformationDirection==6">风向:西北风</li>
|
|
|
- <li v-if="weatherinformationDirection==7">风向:北风</li>
|
|
|
- <li v-if="weatherinformationDirection==8">风向:东北风</li>
|
|
|
+ <li v-if="weatherinformationDirection == 1">风向:东风</li>
|
|
|
+ <li v-if="weatherinformationDirection == 2">风向:东南风</li>
|
|
|
+ <li v-if="weatherinformationDirection == 3">风向:南风</li>
|
|
|
+ <li v-if="weatherinformationDirection == 4">风向:西南风</li>
|
|
|
+ <li v-if="weatherinformationDirection == 5">风向:西风</li>
|
|
|
+ <li v-if="weatherinformationDirection == 6">风向:西北风</li>
|
|
|
+ <li v-if="weatherinformationDirection == 7">风向:北风</li>
|
|
|
+ <li v-if="weatherinformationDirection == 8">风向:东北风</li>
|
|
|
<li>高温:{{ weatherinformationHigh }}℃</li>
|
|
|
<li>火险:{{ weatherinformationLevelValue }}
|
|
|
</li>
|
|
@@ -230,19 +215,19 @@
|
|
|
</el-row>
|
|
|
<div class="firestate" v-if="todatWeather">
|
|
|
<div
|
|
|
- :class="weatherinformationLevel=='forest_weatherinformation_level_1'? 'state-block1 state-on':'state-block1'">
|
|
|
+ :class="weatherinformationLevel == 'forest_weatherinformation_level_1' ? 'state-block1 state-on' : 'state-block1'">
|
|
|
</div>
|
|
|
<div
|
|
|
- :class="weatherinformationLevel=='forest_weatherinformation_level_2'? 'state-block2 state-on':'state-block2'">
|
|
|
+ :class="weatherinformationLevel == 'forest_weatherinformation_level_2' ? 'state-block2 state-on' : 'state-block2'">
|
|
|
</div>
|
|
|
<div
|
|
|
- :class="weatherinformationLevel=='forest_weatherinformation_level_3'? 'state-block3 state-on':'state-block3'">
|
|
|
+ :class="weatherinformationLevel == 'forest_weatherinformation_level_3' ? 'state-block3 state-on' : 'state-block3'">
|
|
|
</div>
|
|
|
<div
|
|
|
- :class="weatherinformationLevel=='forest_weatherinformation_level_4'? 'state-block4 state-on':'state-block4'">
|
|
|
+ :class="weatherinformationLevel == 'forest_weatherinformation_level_4' ? 'state-block4 state-on' : 'state-block4'">
|
|
|
</div>
|
|
|
<div
|
|
|
- :class="weatherinformationLevel=='forest_weatherinformation_level_5'? 'state-block5 state-on':'state-block5'">
|
|
|
+ :class="weatherinformationLevel == 'forest_weatherinformation_level_5' ? 'state-block5 state-on' : 'state-block5'">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -251,13 +236,13 @@
|
|
|
<!-- 曝光台 -->
|
|
|
<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;"/>
|
|
|
+ <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
|
|
|
<div class="this-title">
|
|
|
- <span>曝光台</span>
|
|
|
- <dv-decoration-3 style="width:150px;height:15px;margin-right: 1rem;"/>
|
|
|
+ <span>超期事件</span>
|
|
|
+ <dv-decoration-3 style="width:150px;height:15px;margin-right: 1rem;" />
|
|
|
</div>
|
|
|
<div class="i-list-con small-bottom-margin h-18">
|
|
|
- <div class="d-l-con padding-box nowrap" v-for="(item,index) in exposureStageList">
|
|
|
+ <div class="d-l-con padding-box nowrap" v-for="(item, index) in exposureStageList">
|
|
|
<div class="bgt-state">
|
|
|
<div class="bgt-state-frequency">{{ item.urgeCount }}</div>
|
|
|
<div class="bgt-state-minute">{{ item.timeDiff }}分钟</div>
|
|
@@ -278,77 +263,68 @@
|
|
|
<!-- 事件列表 -->
|
|
|
<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;"/>
|
|
|
+ <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
|
|
|
<div class="this-title">
|
|
|
<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 class="i-list-con small-bottom-margin" style="height: 30vh;">
|
|
|
<div class="event-list-search">
|
|
|
<el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="eventSearch"
|
|
|
- @change="getEventList(calendarDay,10,1,eventSearch)">
|
|
|
+ @change="getEventList(calendarDay, 10, 1, eventSearch)">
|
|
|
</el-input>
|
|
|
</div>
|
|
|
- <div class="d-l-con padding-box nowrap" v-for="(item,index) in eventList"
|
|
|
- @click="dropLocation(item.latitude,item.longitude)" data-html2canvas-ignore>
|
|
|
+ <div class="d-l-con padding-box nowrap" v-for="(item, index) in eventList"
|
|
|
+ @click="dropLocation(item.latitude, item.longitude,item.eventCode)" data-html2canvas-ignore>
|
|
|
<div class="bgt-img">
|
|
|
- <img v-if="item.picturePath!=null&&item.picturePath!=''&& item.pictureType=='image'"
|
|
|
- :src="item.picturePath" style="width: 93px;height: 64px" loading="lazy"/>
|
|
|
- <img v-else src="../assets/images/integrated/event-img-sub.png"
|
|
|
- style="width: 93px;height: 64px"/>
|
|
|
+ <img v-if="item.picturePath != null && item.picturePath != '' && item.pictureType == 'image'"
|
|
|
+ :src="item.picturePath" style="width: 93px;height: 64px" loading="lazy" />
|
|
|
+ <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">
|
|
|
+ <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">
|
|
|
+ <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">
|
|
|
+ <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">
|
|
|
+ <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">
|
|
|
+ <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">
|
|
|
+ <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">
|
|
|
+ <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 v-if="item.eventStatusValue=='forest_event_status_7'"
|
|
|
- class="event-state-qr">
|
|
|
+ <div v-if="item.eventStatusValue == 'forest_event_status_7'" class="event-state-qr">
|
|
|
<i class="el-icon-caret-left"></i>
|
|
|
<div class="event-list-state-qr">
|
|
|
确认
|
|
@@ -365,10 +341,10 @@
|
|
|
</div>
|
|
|
<!--分页-->
|
|
|
<div class="paging">
|
|
|
- <el-button type="button" @click="getEventList(calendarDay,10,pageNum-1)">上一页
|
|
|
+ <el-button type="button" @click="getEventList(calendarDay, 10, pageNum - 1)">上一页
|
|
|
</el-button>
|
|
|
<!-- <span>第0页</span> -->
|
|
|
- <el-button type="button" @click="getEventList(calendarDay,10,pageNum+1)">下一页
|
|
|
+ <el-button type="button" @click="getEventList(calendarDay, 10, pageNum + 1)">下一页
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</dv-border-box-13>
|
|
@@ -378,7 +354,7 @@
|
|
|
<!-- 日历 -->
|
|
|
<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;"/>
|
|
|
+ <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
|
|
|
<div class="i-list-con small-bottom-margin h-30">
|
|
|
<dateChoose @selectDay="selectDay"></dateChoose>
|
|
|
</div>
|
|
@@ -387,28 +363,28 @@
|
|
|
<!-- 事件分类 -->
|
|
|
<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="this-title">
|
|
|
+ <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
|
|
|
+ <div class="this-title" style="cursor: pointer"
|
|
|
+ @click="setEventTypeId({ eventTypeIdDl: [], eventTypeId: [] })">
|
|
|
<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 class="i-list-con small-bottom-margin h-19">
|
|
|
- <dv-capsule-chart v-if="showEventKind" :config="eventKind"
|
|
|
- style="width: 90%;height: 18vh; padding:.5rem 1rem"/>
|
|
|
+ <chart v-if="showEventKind" :config="eventKind" @setEventTypeId="setEventTypeId"
|
|
|
+ style="width: 90%;height: 18vh; padding:.5rem 1rem" />
|
|
|
</div>
|
|
|
</dv-border-box-13>
|
|
|
</div>
|
|
|
<!-- 上报排行 -->
|
|
|
<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;"/>
|
|
|
+ <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
|
|
|
<div class="this-title">
|
|
|
<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 class="i-list-con small-bottom-margin h-19">
|
|
|
- <dv-scroll-ranking-board :config="reportList"
|
|
|
- style="width: 100%;height: 300px; padding:.5rem 1rem"/>
|
|
|
+ <dv-scroll-ranking-board :config="reportList" style="width: 100%;height: 300px; padding:.5rem 1rem" />
|
|
|
</div>
|
|
|
</dv-border-box-13>
|
|
|
</div>
|
|
@@ -420,12 +396,10 @@
|
|
|
</div>
|
|
|
<audio id="resource" ref="up" :src="audioSrc" controls style="display: none;"></audio>
|
|
|
<eventdetailsdialog ref="eventdetailsdialog" :calendarDay="calendarDay" @getEventList="getEventList"
|
|
|
- @getTodayEvents="getTodayEvents" @getFirespread="getFirespread"
|
|
|
- @getSupermap="getSupermap"></eventdetailsdialog>
|
|
|
+ @getTodayEvents="getTodayEvents" @getFirespread="getFirespread" @getSupermap="getSupermap"></eventdetailsdialog>
|
|
|
|
|
|
- <firespread ref="firespread" :calendarDay="calendarDay" @getEventList="getEventList"
|
|
|
- @getTodayEvents="getTodayEvents" @showEventDialog="showEventDialog"
|
|
|
- @getSupermap="getSupermap"></firespread>
|
|
|
+ <firespread ref="firespread" :calendarDay="calendarDay" @getEventList="getEventList" @getTodayEvents="getTodayEvents"
|
|
|
+ @showEventDialog="showEventDialog" @getSupermap="getSupermap"></firespread>
|
|
|
<eventLocation ref="eventLocation"></eventLocation>
|
|
|
<TVWall ref="TVWall"></TVWall>
|
|
|
</div>
|
|
@@ -438,6 +412,8 @@ import Cookies from 'js-cookie'
|
|
|
/** ----------------------------------weosocket结束------------------------------------- */
|
|
|
|
|
|
import {
|
|
|
+ getMenuEventType,
|
|
|
+ getEventPush,
|
|
|
getBaseInfo,
|
|
|
getTodayEvents,
|
|
|
getDeptEventCount,
|
|
@@ -459,16 +435,16 @@ import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
|
|
|
import TVWall from '@/components/TVWall.vue' //电视墙弹窗
|
|
|
import eventdetailsdialog from '@/views/eventdetailsdialog.vue' //事件详情弹窗
|
|
|
import firespread from '@/views/firespread.vue' //事件详情弹窗
|
|
|
-
|
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
|
import {
|
|
|
getDahuaVideoServer
|
|
|
} from '@/api/dahua/dahua'
|
|
|
// import DHWs from '@/dahua/lib/DHWs'
|
|
|
import Firespread from './firespread'
|
|
|
+import {selectConfigKey} from "@/api/system/config";
|
|
|
|
|
|
/** ----------------------------------摄像头预览结束------------------------------------- */
|
|
|
-
|
|
|
+import chart from "./from/dvCapsuleChart.vue";
|
|
|
let echarts = require('echarts')
|
|
|
export default {
|
|
|
components: {
|
|
@@ -479,6 +455,7 @@ export default {
|
|
|
vheader,
|
|
|
vBottomMenu,
|
|
|
eventLocation,
|
|
|
+ chart,
|
|
|
TVWall,
|
|
|
dateChoose,
|
|
|
eventdetailsdialog,
|
|
@@ -502,20 +479,10 @@ export default {
|
|
|
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)
|
|
|
- }
|
|
|
- }, 10000)
|
|
|
this.bottomMenuList() //获取底部公共组件消息和任务
|
|
|
},
|
|
|
data() {
|
|
@@ -573,7 +540,14 @@ export default {
|
|
|
/** ----------------------------------weosocket开始------------------------------------- */
|
|
|
weosocket: false,
|
|
|
websock: '',
|
|
|
+ eventTypeIdDl: [],
|
|
|
+ eventTypeId: [],
|
|
|
setIntervalWesocketPush: null,
|
|
|
+ websockSid: {
|
|
|
+ userId: '',
|
|
|
+ eventTypeDl: '',
|
|
|
+ eventType: '',
|
|
|
+ },
|
|
|
/** ----------------------------------weosocket结束------------------------------------- */
|
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
|
activePanel: 'key1',
|
|
@@ -595,6 +569,31 @@ export default {
|
|
|
},
|
|
|
/** ----------------------------------weosocket结束------------------------------------- */
|
|
|
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) {
|
|
|
+ // let data = {eventTypeIdDl: [], eventTypeId: []}
|
|
|
+ // let data = {eventTypeIdDl: that.eventTypeIdDl, eventTypeId: that.eventTypeId}
|
|
|
+ let that = this
|
|
|
+ that.eventTypeIdDl = data.eventTypeIdDl
|
|
|
+ that.eventTypeId = data.eventTypeId
|
|
|
+ that.getSupermap(that.calendarDay, false)
|
|
|
+ that.getTodayEvents(that.calendarDay, false)
|
|
|
+ that.getEventByEventType(that.calendarDay, false)
|
|
|
+ that.getExposureStage(that.calendarDay, false)
|
|
|
+ that.getEventByReportorOrder(that.calendarDay, false)
|
|
|
+ that.getDeptEventCount(that.calendarDay, false)
|
|
|
+ that.getEventList(that.calendarDay, that.pageSize, that.pageNum, '', false)
|
|
|
+ },
|
|
|
+
|
|
|
// searchEvent(pageSize,pageNum,eventSearch) {
|
|
|
// this.pageSize = pageSize;
|
|
|
// this.pageNum = pageNum;
|
|
@@ -612,8 +611,9 @@ export default {
|
|
|
// }
|
|
|
// })
|
|
|
// },
|
|
|
- dropLocation(lat, lng) {
|
|
|
- this.$refs.supermap.dropLocation(lat, lng)
|
|
|
+ dropLocation(lat, lng,eventCode) {
|
|
|
+ this.$refs.supermap.dropLocation(lat, lng,18)
|
|
|
+ this.showEventDialog(eventCode)
|
|
|
},
|
|
|
showEventDialog(eventCode) {
|
|
|
//事件信息弹出
|
|
@@ -753,7 +753,7 @@ export default {
|
|
|
show: true,
|
|
|
position: 'inside',
|
|
|
offset: [0, 1],
|
|
|
- formatter: function(obj) {
|
|
|
+ formatter: function (obj) {
|
|
|
return (obj.value).toLocaleString() + '%'
|
|
|
},
|
|
|
textStyle: {
|
|
@@ -799,7 +799,7 @@ export default {
|
|
|
show: true,
|
|
|
position: 'inside',
|
|
|
offset: [0, 1],
|
|
|
- formatter: function(obj) {
|
|
|
+ formatter: function (obj) {
|
|
|
return (obj.value).toLocaleString() + '%'
|
|
|
},
|
|
|
textStyle: {
|
|
@@ -833,7 +833,7 @@ export default {
|
|
|
getTodayEvents(day, loading) {
|
|
|
let that = this
|
|
|
//左侧获取事件信息统计
|
|
|
- getTodayEvents({ day: day }, loading).then(res => {
|
|
|
+ getTodayEvents({ eventTypeIdDl: that.eventTypeIdDl, eventTypeId: that.eventTypeId, day: day }, loading).then(res => {
|
|
|
this.aiTotal = res.data.aiTotal
|
|
|
this.aiTotal_pre = res.data.aiTotal_pre
|
|
|
this.newReport = res.data.newReport
|
|
@@ -852,7 +852,7 @@ export default {
|
|
|
getDeptEventCount(day, loading) {
|
|
|
let that = this
|
|
|
//左侧获取事件部门数量
|
|
|
- getDeptEventCount({ day: day }, loading).then(res => {
|
|
|
+ getDeptEventCount({ eventTypeIdDl: that.eventTypeIdDl, eventTypeId: that.eventTypeId, day: day }, loading).then(res => {
|
|
|
this.forestFarm = res.data
|
|
|
})
|
|
|
},
|
|
@@ -882,7 +882,7 @@ export default {
|
|
|
},
|
|
|
getSupermap(day, loading) {
|
|
|
let that = this
|
|
|
- getNearEvent('', '', day, loading).then(res => {
|
|
|
+ getNearEvent('', '', day, loading, that.eventTypeIdDl, that.eventTypeId).then(res => {
|
|
|
that.markersList = []
|
|
|
if (res.data != null && res.data.length > 0) {
|
|
|
for (let i = 0; i < res.data.length; i++) {
|
|
@@ -981,7 +981,7 @@ export default {
|
|
|
let that = this
|
|
|
this.eventList = []
|
|
|
//右侧获取事件列表
|
|
|
- getEventList({ day: day, pageSize: pageSize, pageNum: pageNum, eventName: eventSearch }, loading).then(res => {
|
|
|
+ getEventList({ eventTypeIdDl: that.eventTypeIdDl, eventTypeId: that.eventTypeId, day: day, pageSize: pageSize, pageNum: pageNum, eventName: eventSearch }, loading).then(res => {
|
|
|
this.eventList = res.data
|
|
|
if (this.eventList != null && this.eventList.length > 0) {
|
|
|
if (this.eventList[0].eventStatusValue == 'forest_event_status_1') {
|
|
@@ -996,7 +996,7 @@ export default {
|
|
|
getEventByEventType(day, loading) {
|
|
|
let that = this
|
|
|
//右侧获取事件分类
|
|
|
- getEventByEventType({ day: day }, loading).then(res => {
|
|
|
+ getEventByEventType({ eventTypeIdDl: that.eventTypeIdDl, eventTypeId: that.eventTypeId, day: day }, loading).then(res => {
|
|
|
if (res.data != null && res.data.length > 0) {
|
|
|
this.showEventKind = true
|
|
|
this.eventKind.data = res.data
|
|
@@ -1013,7 +1013,7 @@ export default {
|
|
|
getEventByReportorOrder(day, loading) {
|
|
|
let that = this
|
|
|
//右侧获取上报排名
|
|
|
- getEventByReportorOrder({ day: day }, loading).then(res => {
|
|
|
+ getEventByReportorOrder({ eventTypeIdDl: that.eventTypeIdDl, eventTypeId: that.eventTypeId, day: day }, loading).then(res => {
|
|
|
if (res.data != null && res.data.length > 0) {
|
|
|
this.reportList.data = res.data
|
|
|
this.reportList = { ...this.reportList }
|
|
@@ -1034,7 +1034,7 @@ export default {
|
|
|
},
|
|
|
getWebSocketEvent(data) {
|
|
|
let that = this
|
|
|
- const event = JSON.parse(data)
|
|
|
+ const event = data
|
|
|
//右侧获取事件列表
|
|
|
that.markersList = []
|
|
|
let markersMap = {
|
|
@@ -1112,19 +1112,20 @@ export default {
|
|
|
getExposureStage(day, loading) {
|
|
|
let that = this
|
|
|
//右侧获取曝光台
|
|
|
- getExposureStage({ day: day }, loading).then(res => {
|
|
|
+ getExposureStage({ eventTypeIdDl: that.eventTypeIdDl, eventTypeId: that.eventTypeId, day: day }, loading).then(res => {
|
|
|
this.exposureStageList = res.data
|
|
|
})
|
|
|
},
|
|
|
/** ----------------------------------weosocket开始------------------------------------- */
|
|
|
- initWebSocket() { //初始化weosocket
|
|
|
- // const wsuri = 'ws://127.0.0.1:10003/webSocket/' + Cookies.get('username')
|
|
|
- const wsuri = 'ws://127.0.0.1:10003/webSocket/admin'
|
|
|
- this.websock = new WebSocket(wsuri)
|
|
|
- console.log('建立websocket连接')
|
|
|
- this.websock.onopen = this.websocketonopen
|
|
|
- this.websock.onmessage = this.websocketonmessage
|
|
|
- this.websock.onerror = this.websocketonerror
|
|
|
+ initWebSocket(userId, eventTypeDl, eventType) { //初始化weosocket
|
|
|
+ selectConfigKey('KSH_SOCKET').then(res => {
|
|
|
+ const wsuri = res.data + userId + '/' + eventTypeDl + '/' + eventType
|
|
|
+ this.websock = new WebSocket(wsuri)
|
|
|
+ console.log('建立websocket连接')
|
|
|
+ this.websock.onopen = this.websocketonopen
|
|
|
+ this.websock.onmessage = this.websocketonmessage
|
|
|
+ this.websock.onerror = this.websocketonerror
|
|
|
+ })
|
|
|
},
|
|
|
websocketonopen() { //连接建立之后执行send方法发送数据
|
|
|
console.log('websocket连接成功')
|
|
@@ -1132,26 +1133,49 @@ export default {
|
|
|
this.sendPing()
|
|
|
},
|
|
|
websocketonerror() { //连接建立失败重连
|
|
|
- this.initWebSocket()
|
|
|
+ this.initWebSocket(this.websockSid.userId, this.websockSid.eventTypeDl, this.websockSid.eventType,)
|
|
|
},
|
|
|
websocketonmessage(e) { //数据接收
|
|
|
console.log('接收数据', e.data)
|
|
|
// let data = "{\"fromId\":\"forest\",\"fromUserId\":\""+Cookies.get('username')+"\",\"toUserId\":\""+Cookies.get('username')+"\"}";
|
|
|
- let data = '{"fromId":"forest","fromUserId":"admin","toUserId":"admin"}'
|
|
|
+ let data = '{"fromId":"emergency"}'
|
|
|
if (this.calendarDay == this.getCurrentDataStr() && data != e.data) {
|
|
|
- this.getWebSocketEvent(e.data)
|
|
|
-
|
|
|
- // this.getEventListNew();
|
|
|
- // this.getTodayEvents(this.getCurrentDataStr());
|
|
|
- // this.getDeptEventCount(this.getCurrentDataStr());
|
|
|
- // this.getEventByEventType(this.getCurrentDataStr());
|
|
|
- // this.getEventByReportorOrder(this.getCurrentDataStr());
|
|
|
+ // 处理收到的消息
|
|
|
+ this.handleWebSoceketEvent(e.data)
|
|
|
|
|
|
- // this.$refs.bottomMenu.updateAlert();
|
|
|
- // this.$refs.up.play();
|
|
|
+ this.getTodayEvents(this.getCurrentDataStr(), true)
|
|
|
+ this.getDeptEventCount(this.getCurrentDataStr(), true)
|
|
|
+ this.getEventByEventType(this.getCurrentDataStr(), true)
|
|
|
+ this.getEventByReportorOrder(this.getCurrentDataStr(), true)
|
|
|
+ this.getExposureStage(this.getCurrentDataStr(), true)
|
|
|
+ this.$refs.bottomMenu.updateAlert();
|
|
|
+ this.$refs.up.play();
|
|
|
// thes.$refs.up.pause();//停止播放音乐
|
|
|
}
|
|
|
},
|
|
|
+ // 处理WebSocket事件
|
|
|
+ handleWebSoceketEvent(val) {
|
|
|
+ let that = this
|
|
|
+ let data = JSON.parse(val)
|
|
|
+ /**
|
|
|
+ * that.markersList.filter( item => data.eventCode == item.parameter).length == 0 如果地图中不存在当前事件则添加
|
|
|
+ * eventPush: 事件列表消息
|
|
|
+ * */
|
|
|
+ if (data.tag == "eventPush" && that.markersList.filter(item => data.eventCode == item.parameter).length == 0) {
|
|
|
+ getEventPush({ eventCode: data.eventCode }).then((res) => {
|
|
|
+ if (res.data != undefined) {
|
|
|
+ //插入到第一条
|
|
|
+ this.eventList.unshift(res.data)
|
|
|
+ // 插入后删除最后一条 保证列表中为10条数据
|
|
|
+ if (this.eventList.length > 9)
|
|
|
+ this.eventList.splice(10, 1)
|
|
|
+ // 将收到的数据在地图上添加
|
|
|
+ this.getWebSocketEvent(res.data)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ console.log(that.eventList[0])
|
|
|
+ },
|
|
|
websocketsend(Data) { //数据发送
|
|
|
this.websock.send(Data)
|
|
|
},
|
|
@@ -1165,16 +1189,14 @@ export default {
|
|
|
* @param {string} ping 心跳名称 默认字符串ping
|
|
|
*/
|
|
|
sendPing(time = 60000, ping = {
|
|
|
- 'fromId': 'forest',
|
|
|
- 'fromUserId': Cookies.get('username'),
|
|
|
- 'toUserId': Cookies.get('username')
|
|
|
+ 'fromId': 'emergency'
|
|
|
}) {
|
|
|
clearInterval(this.setIntervalWesocketPush)
|
|
|
this.setIntervalWesocketPush = setInterval(() => {
|
|
|
if (this.weosocket) {
|
|
|
this.websock.send(JSON.stringify(ping))
|
|
|
} else {
|
|
|
- this.initWebSocket()
|
|
|
+ // this.initWebSocket()
|
|
|
}
|
|
|
}, time)
|
|
|
},
|