From 246772ecc677b15cc9be2fbdd63d50f6216e099f Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期三, 20 四月 2022 16:18:24 +0800
Subject: [PATCH] 注册登录验证码
---
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