Browse Source

曝光台

彭宇 2 years ago
parent
commit
b14198ef90
2 changed files with 28 additions and 8 deletions
  1. 10 0
      src/api/forest.js
  2. 18 8
      src/views/forest.vue

+ 10 - 0
src/api/forest.js

@@ -31,6 +31,8 @@ export function getWeather(param) {
     data: param
   })
 }
+
+
 // 右侧获取事件列表
 export function getEventList(param) {
   return request({
@@ -39,6 +41,14 @@ export function getEventList(param) {
     data: param
   })
 }
+// 右侧获取曝光台列表
+export function getExposureStage(param) {
+  return request({
+    url: 'center-fire/VisuForestCloudMapController/getExposureStage',
+    method: 'post',
+    data: param
+  })
+}
 
 // 获取事件详情
 export function getEventDetail(param) {

+ 18 - 8
src/views/forest.vue

@@ -160,18 +160,16 @@
                 <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 5">
+                <div class="d-l-con padding-box nowrap" v-for="(item,index) in exposureStageList">
                   <div class="bgt-state">
-                    <div class="bgt-state-frequency">3</div>
-                    <div class="bgt-state-minute">3分钟</div>
+                    <div class="bgt-state-frequency">{{ item.urgeCount }}</div>
+                    <div class="bgt-state-minute">{{item.timeDiff}}分钟</div>
                   </div>
                   <div class="bgt-info">
-                    <div class="bgt-info-name">四平-梨树-三塔分场</div>
+                    <div class="bgt-info-name">{{ item.eventName }}</div>
                     <div class="bgt-info-place">
                       <ul>
-                        <li>四海乡</li>
-                        <li>郭家店</li>
-                        <li>梨树</li>
+                        <li>{{ item.deptNames }}</li>
                       </ul>
                     </div>
                   </div>
@@ -309,7 +307,8 @@ import {
   getWeather,
   getEventList,
   getEventByEventType,
-  getEventByReportorOrder
+  getEventByReportorOrder,
+  getExposureStage
 } from '@/api/forest'
 import supermap from '@/components/supermap' //超图
 import supermapNotProcessed from '@/components/supermap' //超图
@@ -360,6 +359,7 @@ export default {
     this.getEventList(this.getCurrentDataStr())
     this.getEventByEventType(this.getCurrentDataStr())
     this.getEventByReportorOrder(this.getCurrentDataStr())
+    this.getExposureStage(this.getCurrentDataStr())
     /** ----------------------------------weosocket开始------------------------------------- */
     // this.initWebSocket()
     /** ----------------------------------weosocket结束------------------------------------- */
@@ -393,6 +393,8 @@ export default {
       weatherinformationTemperature: '',
       weatherinformationTime: '',
       weatherinformationWeather: '',
+      //右侧曝光台
+      exposureStageList:[],
       //右侧事件列表
       eventList: [],
       eventListnew: [],
@@ -539,6 +541,7 @@ export default {
       this.getEventList(day)
       this.getEventByEventType(day)
       this.getEventByReportorOrder(day)
+      this.getExposureStage(day)
     },
 
     //事件数量统计chart 样例地址http://192.144.199.210:8080/editor/index.html?chart_id=jTXf0Rv4A3oiBONB
@@ -887,6 +890,13 @@ export default {
         }
       })
     },
+    getExposureStage(day) {
+      let that = this
+      //右侧获取曝光台
+      getExposureStage({ day: day }).then(res => {
+          this.exposureStageList = res.data
+      })
+    },
     /** ----------------------------------weosocket开始------------------------------------- */
     initWebSocket() { //初始化weosocket
       const wsuri = 'wss://www.hmzzxc.com:10012/websocket/forest-' + Cookies.get('username')