ZZJ
2022-04-12 994e5e08cba4e6b9ce321b7cf5cb1ec8d19dfa22
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();