all
heyujie
2021-07-21 b5e2e236828b7fbc0e8f2bdbf66651ad8907e3b1
src/pages/vindicate/views/restartSettings.vue
File was renamed from src/pages/maintain/views/restartSettings.vue
@@ -1,5 +1,8 @@
<template>
  <div class="restart">
  <div class="restart"
   v-loading="loading"
      :element-loading-text="loadingText"
  >
    <div class="restart-set">
      <div class="t">重启设置</div>
@@ -94,9 +97,6 @@
  getDevInfo,
  getRebootTask,
  setRebootTask,
  fileUpload,
  doUpgrade,
  deleteDate,
} from "@/api/system";
export default {
  data() {
@@ -106,6 +106,7 @@
      timer: null,
      probeSum: 0,
      cronText: "",
      loading:false,
      cronValueObj: {
        min: "*",
        hour: "*",
@@ -147,7 +148,6 @@
      return arr;
    },
  },
  components: {},
  mounted() {
    this.getRebootCron();
  },
@@ -200,15 +200,16 @@
        cancelButtonClass: "comfirm-class-cancle",
        confirmButtonClass: "comfirm-class-sure",
      }).then(() => {
        // this.loading = true;
        // this.loadingText = "智能计算节点正在重启,请耐心等待..."
        this.loading = true;
        this.loadingText = "智能计算节点正在重启,请耐心等待..."
        rebootServer()
          .then((rsp) => {
            this.probeServer(this.reLogin);
          })
          .catch((err) => {
            if (err.status == 400) {
              // this.loading = false;
              this.loading = false;
              this.$notify({
                type: "error",
                message: "重启计算节点失败",