qinhouyu %!s(int64=2) %!d(string=hai) anos
pai
achega
a53c802bfc
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      src/views/monitor.vue

+ 5 - 4
src/views/monitor.vue

@@ -203,7 +203,7 @@
         this.selectKeyAreaList()
         this.bottomMenuList() //获取底部公共组件消息和任务
         this.getTreeselect()
-        this.deptId = parseInt(Cookies.get("deptId"));
+        this.deptId = Cookies.get("deptId");
 
         // this.chuanSet()
         this.getMonitorDeviceAndDataLists()
@@ -450,6 +450,7 @@
         this.onChuan = false
         this.localMark = 'she'
         this.placeholderMsg = "请输入摄像头名称"
+        this.deptId = Cookies.get("deptId");
         this.selectDeviceType()
         // this.getNotCoverPlaces(this.deptId);
       },
@@ -459,7 +460,7 @@
         this.onChuan = false
         this.localMark = 'la'
         this.placeholderMsg = "请输入云广播名称"
-        // this.deptId = Cookies.get("deptId")
+        this.deptId = Cookies.get("deptId");
         this.getDlblistBydeptId()
         // this.$refs.supermap.clearG();
       },
@@ -469,7 +470,7 @@
         this.onChuan = true
         this.localMark = 'chuan'
         this.placeholderMsg = "请输入传感器名称"
-        // this.deptId = Cookies.get("deptId")
+        this.deptId = Cookies.get("deptId");
         this.getMonitorDeviceAndDataList()
         // this.$refs.supermap.clearG();
       },
@@ -493,7 +494,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) {