From c7ec9e17f6e48335912bad1c07df56ba8eb8f662 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期四, 05 五月 2022 13:35:21 +0800
Subject: [PATCH] page subuser

---
 src/views/equipmentManagement/equipmentDetail/components/SettingBox.vue |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/src/views/equipmentManagement/equipmentDetail/components/SettingBox.vue b/src/views/equipmentManagement/equipmentDetail/components/SettingBox.vue
index 23281ed..3e02336 100644
--- a/src/views/equipmentManagement/equipmentDetail/components/SettingBox.vue
+++ b/src/views/equipmentManagement/equipmentDetail/components/SettingBox.vue
@@ -78,9 +78,7 @@
 export default {
   name: "SettingBox",
   props: {
-    device: {
-      type: Object,
-    },
+    id: {},
   },
   created() {
     let mins = [];
@@ -155,8 +153,7 @@
       if (this.every === "close") {
         this.cronText = "";
         const res = await setRestartTask({
-          ip: this.device.ip,
-          port: this.device.port,
+          nodeId: this.id,
           task: "",
         });
         if (res.success) {
@@ -200,8 +197,7 @@
         " " +
         obj.week;
       const res = await setRestartTask({
-        ip: this.device.ip,
-        port: this.device.port,
+        nodeId: this.id,
         task: this.cronText,
       });
 
@@ -220,8 +216,8 @@
     },
     async getTask() {
       const res = await getRestartTask({
-        ip: this.device.ip,
-        port: this.device.port,
+        nodeId: this.id,
+        userId: JSON.parse(sessionStorage.getItem("userInfo")).id,
       });
       this.rebootCron = res.data;
       this.resolveExp();

--
Gitblit v1.8.0