qinhouyu 2 yıl önce
ebeveyn
işleme
68a00f7776
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 5 5
      src/views/monitor.vue

+ 5 - 5
src/views/monitor.vue

@@ -183,7 +183,7 @@
         this.selectKeyAreaList()
         this.bottomMenuList() //获取底部公共组件消息和任务
         this.getTreeselect()
-        this.deptId = parseInt(Cookies.get("deptId"));
+        this.deptId = Cookies.get("deptId");
 
         //this.getSensorListByDeptIds()
         // this.chuanSet()
@@ -430,7 +430,7 @@
         this.onChuan = false;
         this.localMark = "she";
         this.placeholderMsg = "请输入摄像头名称";
-        // this.deptId = Cookies.get("deptId");
+        this.deptId = Cookies.get("deptId");
         clearInterval(this.cgqTimer);
         this.selectDeviceType();
         // this.getNotCoverPlaces(this.deptId);
@@ -441,7 +441,7 @@
         this.onChuan = false;
         this.localMark = "la";
         this.placeholderMsg = "请输入云广播名称";
-        // this.deptId = Cookies.get("deptId");
+        this.deptId = Cookies.get("deptId");
         clearInterval(this.cgqTimer);
         this.getDlblistBydeptId(null);
       },
@@ -451,7 +451,7 @@
         this.onChuan = true
         this.localMark = 'chuan'
         this.placeholderMsg = "请输入传感器名称"
-        // this.deptId = Cookies.get("deptId")
+        this.deptId = Cookies.get("deptId");
         this.getMonitorDeviceAndDataList(null)
       },
       // 云广播
@@ -459,7 +459,7 @@
         let that = this;
         let markersList = [];
         getDlblistBydeptId(that.deptId).then(function(res) {
-            that.loudspeakerNum = res.data.length
+            // that.loudspeakerNum = res.data.length
             that.visuForestCloudCameraBOListSearch = []
             that.tempList = []
             if (res.data != null && res.data.length > 0) {