From 431519589994d49464afb1199eac4efad555befa Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 09 Apr 2021 17:13:23 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/jfpt-Vue

---
 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 1c84413..6504e09 100644
--- a/src/views/supervisoryConsole/data.vue
+++ b/src/views/supervisoryConsole/data.vue
@@ -312,6 +312,16 @@
         ],
       };
       myChart.setOption(option);
+      myChart.on('click', function (params) {
+        if (params.name == "正常"){
+          //跳转在线设备
+          that.StartEquipment({dxtype:1});
+        }else {
+          //跳转离线设备
+          that.StartEquipment({dxtype:0});
+        }
+
+      });
     },
 
     drawLine(result) {
@@ -471,7 +481,15 @@
       };
       myChart.setOption(option);
     },
+    //在线设备分页数据
+    StartEquipment(data) {
+      this.$router.push({
+        path: `/clientManagement/index`,
+        query: data,
+      });
+    },
   },
+
 };
 </script>
 
@@ -733,4 +751,4 @@
     border-bottom: 0px !important;
   }
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3