qinhouyu 1 yıl önce
ebeveyn
işleme
03997614a4
3 değiştirilmiş dosya ile 13 ekleme ve 6 silme
  1. 7 1
      src/api/monitor.js
  2. 1 1
      src/views/forest.vue
  3. 5 4
      src/views/monitor.vue

+ 7 - 1
src/api/monitor.js

@@ -47,7 +47,13 @@ export function getRegionalFlag(id) {
     method: 'get',
   })
 }
-
+export function selectDeviceType_direct(param) {
+  return request({
+    url: '/sooka-middlevisualization/visuMiddleVisualizationController/selectDeviceType',
+    method: 'post',
+    data:param
+  })
+}
 // 获取环保土壤设备列表(目前一样以后可能不一样)
 export function selectListDevice(param) {
   return request({

+ 1 - 1
src/views/forest.vue

@@ -1149,7 +1149,7 @@
         this.eventList = []
         this.eventListAll = []
         //右侧获取事件列表
-        getEventList({
+        getEventList_direct({
           day: this.getCurrentDataStr()
         }).then(res => {
           this.eventList = res.data

+ 5 - 4
src/views/monitor.vue

@@ -223,6 +223,7 @@ import {
   getRegionalFlag,
   getCamerasByDeptId,
   getMonitorDeviceAndDataList,
+  selectDeviceType_direct,
   getCamerasByDeptId_direct,
   getDlblistBydeptId_direct,
   selectKeyAreaList_direct,
@@ -279,7 +280,7 @@ export default {
       this.getMonitorDeviceAndDataLists(this.deptId);
        this.getDlblistBydeptIds(this.deptId);
       // this.chuanSet();
-      this.selectDeviceType(-1);
+      this.selectDeviceType('',-1)
     }, 2000)
 
     this.bottomMenuList(); //获取底部公共组件消息和任务
@@ -291,7 +292,7 @@ export default {
       cgqData: [],
       cgqTimer:null,
       deptName: undefined,
-      deptId: "",
+      deptId: null,
       // 部门树选项
       deptOptions: undefined,
       defaultProps: {
@@ -898,7 +899,7 @@ export default {
       clearInterval(this.cgqTimer);
       this.deptId=Cookies.get("deptId")
       this.placeholderMsg = "请输入摄像头名称";
-      this.selectDeviceType();
+      this.selectDeviceType('',-1);
       this.jkListIcon = 'sj-icon-jkzx'
     },
     laClick() {
@@ -1219,7 +1220,7 @@ export default {
     selectDeviceType() {
       //获取左侧动态感知设备
       let that = this;
-      selectDeviceType(that.deptId).then((res) => {
+      selectDeviceType_direct({deptId:that.deptId,type:4}).then(res => {
         that.cameraMarkersList = [];
         that.visuForestCloudMapDeviceBOList =
           res.data.visuForestCloudMapDeviceBOList;