From db4ed65e1d7d43a10b1315cd8fa1f97984555016 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期四, 02 六月 2022 18:30:11 +0800
Subject: [PATCH] 算力管理过滤设备

---
 src/views/hashrate/AlgManage/index.vue |    7 ++++++-
 package.json                           |    1 +
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/package.json b/package.json
index fc667f2..4bdc30e 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
   },
   "dependencies": {
     "@amap/amap-jsapi-loader": "^1.0.1",
+    "@antv/g2": "^4.2.2",
     "@hscmap/vue-window": "^2.4.2",
     "axios": "^0.19.0",
     "core-js": "^2.6.5",
diff --git a/src/views/hashrate/AlgManage/index.vue b/src/views/hashrate/AlgManage/index.vue
index 0b1289c..97f3089 100644
--- a/src/views/hashrate/AlgManage/index.vue
+++ b/src/views/hashrate/AlgManage/index.vue
@@ -187,7 +187,12 @@
     async getEquipment() {
       const res = await findAllSdk();
       if (res && res.success) {
-        this.equipmentArr = res.data;
+        this.equipmentArr = [];
+        res.data.forEach((item, index) => {
+          if (item.sdkList) {
+            this.equipmentArr.push(item);
+          }
+        });
       }
     },
     //鎷栨嫿寮�濮�

--
Gitblit v1.8.0