From f14f98a263141d2f8ec0079866a758cc7a1c38d1 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期一, 22 八月 2022 03:20:29 +0800
Subject: [PATCH] 添加用户删除功能

---
 src/views/equipmentManagement/equipmentList/components/InfoCard.vue |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/src/views/equipmentManagement/equipmentList/components/InfoCard.vue b/src/views/equipmentManagement/equipmentList/components/InfoCard.vue
index 6098ced..0e6582a 100644
--- a/src/views/equipmentManagement/equipmentList/components/InfoCard.vue
+++ b/src/views/equipmentManagement/equipmentList/components/InfoCard.vue
@@ -17,7 +17,7 @@
 
       <div class="item">
         <div class="label">璁惧绫诲瀷:</div>
-        <div class="data">{{ node.devType }}</div>
+        <div class="data">{{ node.devDesc }}</div>
       </div>
 
       <div class="item">
@@ -125,12 +125,9 @@
   methods: {
     //鑾峰彇绠楁硶淇℃伅
     async getAlg() {
-      const res = await findAllSdk({
-        ip: this.node.devIp,
-        port: this.node.serverPort,
-      });
+      const res = await findAllSdk({ userId: "", nodeId: this.node.devId });
 
-      res.data.data.forEach((item) => {
+      res.data.forEach((item) => {
         //璁$畻绠楁硶鎬绘暟
         if (item.installed) {
           this.algAll++;
@@ -144,8 +141,8 @@
     //鑾峰彇璁惧鎬ц兘
     async getDevicePerformance() {
       const res = await showSystemStates({
-        ip: this.node.devIp,
-        port: this.node.serverPort,
+        userId: "",
+        nodeId: this.node.devId,
       });
       this.devicePerformance.push({
         data: +res.data.mem.usedPercent.toString().split(".")[0],
@@ -188,9 +185,6 @@
         path: `/${type}`,
         query: {
           id: this.node.devId,
-          ip: this.node.devIp,
-          port: this.node.serverPort,
-          ndid: this.node.id,
         },
       });
     },

--
Gitblit v1.8.0