Browse Source

数据中心

彭宇 2 năm trước cách đây
mục cha
commit
bf9d618f27
3 tập tin đã thay đổi với 551 bổ sung830 xóa
  1. 17 0
      src/api/monitor.js
  2. 3 6
      src/views/event.vue
  3. 531 824
      src/views/monitor.vue

+ 17 - 0
src/api/monitor.js

@@ -0,0 +1,17 @@
+import request from '@/utils/request'
+
+// 获取左侧动态感知设备
+export function selectDeviceType() {
+  return request({
+    url: '/center-fire/VisuForestMonitorCenterController/selectDeviceType',
+    method: 'post',
+  })
+}
+// 根据设备类型查看列表
+export function selectCameraByDeptId(deptId) {
+  return request({
+    url: '/center-fire/VisuForestMonitorCenterController/selectCameraByDeptId',
+    method: 'post',
+    data:{"deptId":deptId}
+  })
+}

+ 3 - 6
src/views/event.vue

@@ -69,7 +69,8 @@
           </div>
           <div class="i-list-con h-73">
             <div class="d-l-con d-evnet-list-con" v-for="(item,index) in eventList" v-on:click="dropLocation(item.latitude,item.longitude)">
-              <img :src="item.picturePath" class="event-list-img">
+              <img :src="item.picturePath" v-if="item.picturePath!=null&&item.picturePath!=''" class="event-list-img">
+              <img src="@/assets/images/visual/img-sample.png" v-else class="event-list-img">
               <div class="event-list-text">
                 <h3>{{item.eventTitle}}</h3>
 <!--                <h4><span-->
@@ -964,7 +965,6 @@
           that.eventList = [];
           if(res.data.eventList!=null&&res.data.eventList.length>0){
             for (let i = 0; i < res.data.eventList.length; i++) {
-              res.data.eventList[i].picturePath=res.data.attach[i].attachPath
               let markersMap = {
                 lng: 124.59,
                 lat: 43.02,
@@ -1051,8 +1051,6 @@
               markersMap.isAggregation = true
             }
             for (let i = 0; i < res.data.eventList.length; i++) {
-              res.data.eventList[i].picturePath=res.data.attach[i].attachPath
-
               if(res.data.eventList[i].eventStatus=="event_event_status_1"||res.data.eventList[i].eventStatus=="event_event_status_2"||res.data.eventList[i].eventStatus=="event_event_status_6"){
                 markersMap.click = "showEventInfo_Processed"
               }else if(res.data.eventList[i].eventStatus=="event_event_status_4"){
@@ -1125,7 +1123,7 @@
               markersMap.isAggregation = true
             }
             for (let i = 0; i < res.data.eventList.length; i++) {
-              res.data.eventList[i].picturePath=res.data.attach[i].attachPath
+
               markersMap.lng = res.data.eventList[i].longitude
               markersMap.lat =res.data.eventList[i].latitude
               markersMap.bindPopupHtml = '<div class="map-tip">' +
@@ -1179,7 +1177,6 @@
           that.eventList = [];
           if(res.data.eventList!=null&&res.data.eventList.length>0){
             for (let i = 0; i < res.data.eventList.length; i++) {
-              res.data.eventList[i].picturePath=res.data.attach[i].attachPath
               let markersMap = {
                 lng: 124.59,
                 lat: 43.02,

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 531 - 824
src/views/monitor.vue