From 415b47b4f79859691f4affb4173471df00e1364c Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Fri, 09 Apr 2021 17:10:36 +0800
Subject: [PATCH] 数据模式跳转

---
 src/views/supervisoryConsole/data.vue |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/src/views/supervisoryConsole/data.vue b/src/views/supervisoryConsole/data.vue
index dfb658d..440211c 100644
--- a/src/views/supervisoryConsole/data.vue
+++ b/src/views/supervisoryConsole/data.vue
@@ -306,6 +306,16 @@
         ],
       };
       myChart.setOption(option);
+      myChart.on('click', function (params) {
+        if (params.name == "正常"){
+          //跳转在线设备
+          that.StartEquipment({dxtype:1});
+        }else {
+          //跳转离线设备
+          that.StartEquipment({dxtype:0});
+        }
+
+      });
     },
 
     drawLine(result) {
@@ -465,7 +475,15 @@
       };
       myChart.setOption(option);
     },
+    //在线设备分页数据
+    StartEquipment(data) {
+      this.$router.push({
+        path: `/clientManagement/index`,
+        query: data,
+      });
+    },
   },
+
 };
 </script>
 
@@ -727,4 +745,4 @@
     border-bottom: 0px !important;
   }
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3