From f20a554bdb24e9dfde9dc6a69d78595944f61d15 Mon Sep 17 00:00:00 2001
From: mark <mark18340872469@163.com>
Date: 星期二, 25 十月 2022 14:53:57 +0800
Subject: [PATCH] 设备管理 样式调整

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

diff --git a/src/views/equipmentManagement/equipmentDetail/components/SettingBox.vue b/src/views/equipmentManagement/equipmentDetail/components/SettingBox.vue
index 23281ed..f576e9c 100644
--- a/src/views/equipmentManagement/equipmentDetail/components/SettingBox.vue
+++ b/src/views/equipmentManagement/equipmentDetail/components/SettingBox.vue
@@ -7,7 +7,7 @@
       <el-select
         v-model="every"
         placeholder="璇烽�夋嫨"
-        popper-class="industrySelect"
+        popper-class="equipmentSelect"
       >
         <el-option
           v-for="item in periodOptions"
@@ -35,7 +35,7 @@
       <el-select
         v-model="cronValueObj.week"
         placeholder="璇烽�夋嫨"
-        popper-class="industrySelect"
+        popper-class="equipmentSelect"
       >
         <el-option
           v-for="item in weeks"
@@ -52,7 +52,7 @@
       <el-select
         v-model="cronValueObj.day"
         placeholder="璇烽�夋嫨"
-        popper-class="industrySelect"
+        popper-class="equipmentSelect"
       >
         <el-option
           v-for="item in days"
@@ -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();
@@ -372,7 +368,7 @@
     right: 20px;
     bottom: 20px;
     display: flex;
-    justify-content: end;
+    justify-content: flex-end;
     text-align: center;
     line-height: 40px;
 
@@ -404,7 +400,7 @@
 </style>
 
 <style lang="scss">
-.industrySelect.el-select-dropdown.el-popper {
+.equipmentSelect.el-select-dropdown.el-popper {
   margin: 0;
 
   .el-scrollbar {

--
Gitblit v1.8.0