瀏覽代碼

传感器落点

qinhouyu 2 年之前
父節點
當前提交
01dcd681cb
共有 2 個文件被更改,包括 17 次插入16 次删除
  1. 1 1
      src/views/bigdata/chart-gridStaff.vue
  2. 16 15
      src/views/monitor.vue

+ 1 - 1
src/views/bigdata/chart-gridStaff.vue

@@ -73,7 +73,7 @@
         //   });
         // }
 
-        var max = getMax(arr, 'amount'),
+        var max = getMax(arr, 'value'),
           angleAxisData = getValArr(arr, 'name');
         $.each(arr, function(i, e) {
           e.value = (e.amount / max * 100).toFixed(2);

+ 16 - 15
src/views/monitor.vue

@@ -376,21 +376,24 @@
         }
       },
       sheClick() {
-        this.onLa = false
-        this.onShe = true
-        this.onChuan = false
-        this.localMark = 'she'
-        this.placeholderMsg = "请输入摄像头名称"
-        this.selectDeviceType()
+        this.onLa = false;
+        this.onShe = true;
+        this.onChuan = false;
+        this.localMark = "she";
+        this.placeholderMsg = "请输入摄像头名称";
+        this.deptId = Cookies.get("deptId");
+        clearInterval(this.cgqTimer);
+        this.selectDeviceType();
       },
       laClick() {
-        this.onLa = true
-        this.onShe = false
-        this.onChuan = false
-        this.localMark = 'la'
-        this.placeholderMsg = "请输入云广播名称"
-        this.deptId = Cookies.get("deptId")
-        this.getDlblistBydeptId()
+        this.onLa = true;
+        this.onShe = false;
+        this.onChuan = false;
+        this.localMark = "la";
+        this.placeholderMsg = "请输入云广播名称";
+        this.deptId = Cookies.get("deptId");
+        clearInterval(this.cgqTimer);
+        this.getDlblistBydeptId();
       },
       chuanClick() {
         this.onLa = false
@@ -399,9 +402,7 @@
         this.localMark = 'chuan'
         this.placeholderMsg = "请输入传感器名称"
         this.deptId = Cookies.get("deptId")
-        //this.getSensorListByDeptId()
         this.getMonitorDeviceAndDataList()
-
       },
       // 云广播
       getDlblistBydeptId() {