王通 1 рік тому
батько
коміт
dc892c2b07
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      src/views/monitor.vue

+ 3 - 3
src/views/monitor.vue

@@ -268,7 +268,7 @@ export default {
     setTimeout(() => {
       this.selectKeyAreaList();
       this.getTreeselect();
-      this.deptId = Cookies.get("deptId");
+      this.deptId = parseInt(Cookies.get("deptId"));
       // this.getSensorListByDeptIds()
       this.getMonitorDeviceAndDataLists(this.deptId);
        this.getDlblistBydeptIds(this.deptId);
@@ -919,7 +919,7 @@ export default {
       this.localMark = "la";
       this.placeholderMsg = "请输入云广播名称";
       clearInterval(this.cgqTimer);
-      this.deptId = Cookies.get("deptId");
+      // this.deptId = Cookies.get("deptId");
       this.getDlblistBydeptId(this.deptId);
     },
     chuanClick() {
@@ -928,7 +928,7 @@ export default {
       this.onChuan = true;
       this.localMark = "chuan";
       this.placeholderMsg = "请输入传感器名称";
-      this.deptId = Cookies.get("deptId");
+      // this.deptId = Cookies.get("deptId");
       let that = this;
       this.getMonitorDeviceAndDataList(this.deptId);
       clearInterval(this.cgqTimer);