From 013c4922a3296e95a54c1902c09b44d62a000eb2 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期三, 27 七月 2022 17:14:02 +0800
Subject: [PATCH] Merge branch 'shandong' of ssh://192.168.5.5:29418/web/saas-web into shandong

---
 src/Pool/PollData.ts |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/Pool/PollData.ts b/src/Pool/PollData.ts
index da79eb0..cbd192b 100644
--- a/src/Pool/PollData.ts
+++ b/src/Pool/PollData.ts
@@ -156,10 +156,14 @@
     // 璁$畻绯荤粺淇℃伅
      let res: any
     if(sessionStorage.getItem("clusterId")) {
-      res  = await clusterSysInfo({});
+      res  = await clusterSysInfo({
+        clusterId: "",
+      });
     }
     else {
-      res  = await devicesSysInfo({});
+      res  = await devicesSysInfo({
+        deviceId:[sessionStorage.getItem('devId')],
+      });
     }
     if (res && res.success ) {
       this.CpuUsedPercent =res.data.cpu.usedPercent.toFixed(2)
@@ -178,7 +182,10 @@
       res  = await clusterStatisticRunInfo({});
     }
     else {
-      res  = await deviceStatisticRunInfo({});
+      res  = await deviceStatisticRunInfo({
+        deviceId:[sessionStorage.getItem('devId')],
+        userId:''
+      });
     }
    
     if (res && res.success) {

--
Gitblit v1.8.0